Return the color of a media at position (x,y)
Return the alpha composant value of a media at position (x,y)
Set the color in a media at position (x,y) with 255 for alpha value
Set the alpha composant value in a media at position (x,y)
Set the alpha composant value in a media on borders
Copy a layer from a media to another as alpha layer. ComposantIndexToUse have to be 0(A:default), 1(R), 2(G) or 3(B).
Save Media on jpeg format
Save image in tga format
return 1 if the image has been updated for this loop
Get number of faces of a mesh or a total scene
return the client desktop bounds.
Get the number of screens.
Compute the background in the media.
Convert a pattern of camcam localisation file (.ccm) to a csv file for Excel.
Convert a localisation CSV file to multiple CCM localisation files (one per langage).
Start/Stop the capture of keyboard events under Windows.
Show/Hide the application window.
Compute a draw effect on the media. UpdateHW to 0 if you want to add software effects
Each pixel of the media is set to 0
Change the state of the option (untitled OptionTitle OR with the ID optionID) of the right clic menu.
Get the state (boolean) of the option (untitled OptionTitle OR with the ID optionID) of the right clic menu.
Get driver type 0: OpenGL - 1: Direct3D
if no option is specifyed, return the actual state (1 mean Full screen).
if no option is specifyed, return the actual state (1 mean minimized).
Enable or disable window click focus
Verify if window has focus
Get composant color values in the YCbCr colorspace of the RGB color. Composant colors returned depend on the mask value
1:Y - 2:Cb - 4:Cr
Default mask is 7 to return (Y Cb Cr)
duplicate the frame of the media source in the frame of the media destination
set the rotation (in degree) for next quad with Alpha around [CX,CY]
Specify the rendering region texture for next render quad. could be > 1 if size of ther media is a power of 2
set the rotation (in degree) for next quad aroud AxisAngle with an angle of Lenght AxisAngle in degree. Specify Anchor if you want to fix a global center, else quad will turn arouns their respectiv center. Focal = 0 mean no ratation
set the rotation (in degree) for next quad aroud AxisAngle with an angle of Lenght AxisAngle in degree. Specify DRW_SetQuadRotAnchor if you want to fix a global center, else quad will turn arouns their respectiv center. No argument mean no ratation
HideColor = 1 -> Hide color ; HideAlpha = 1 -> Hide alpha
Compute size of the text according to font
Compute origin of the text
Return ~0 if the driver is used by another application
Filter define the type of file : exemple (Script file|*.TXT;*.FOU;*.LUA)
Filter define the type of file : exemple (Script file|*.TXT;*.FOU;*.LUA)
Load lua script addinig it on script stack, call APP_PopLuaScript() to return to previous script
return to previous script
restart current script
load script, if ClearAll is set, it works like the changeScript menu, else, juste change current script
Get number of object in scene
Get object name by index - LUA Mode, index begins at 1
This will set the option for automatic reset pos.Default is 1 (auto reinit)
if TimeStart and TimeEnd are specified, then it will move smoothly to the specified Position
if TimeStart and TimeEnd are specified, then it will move smoothly to the specified Position
Get Object Bounding Volume min point, in local object coords
Get Object Bounding Volume max point, in local object coords
Get Object Bounding Volume min point, in scene coords
Get Object Bounding Volume max point, in scene coords
Get the object father
Change object I,J,K scale
Work only with material (not with mmt)
Reset all material overload
Force material Lighted
Force material Wired
Force material Backface
Force material Backface Invert
Force material No Z Write
Force material No Z Test
Force material ZEqual
Force material Textured
Force material Hide Color
Force material Hide Alpha
Force use of vertex color
Force material Second Pass
Force material Invert Alpha
Force material Blending Mode
Force material Mapping Mode
Force material Alpha Threshold
Force material Normal Extraction
Force material Invert Alpha
Force Consider material opaque for piking
Force tiling U
Force tiling V
Force skipping layers ...
Force material UV MATRIX
Force use of specific texture
Force use of color multiplier
Set media of a material
Set media of a material
Set material RGBA Multiplier
Get material RGBA Multiplier
Set material use of vertex color
Get material use of vertex color
Set material RGBA Multiplier
Get material RGBA Multiplier
Set material Lighted
Get material Lighted
Set material Wired
Get material Wired
Set material Backface
Get material Backface
Set material Backface Invert
Get material Backface Invert
Set material No Z Write
Get material No Z Write
Set material ZEqual
Get material ZEqual
Set material No Z Test
Get material No Z Test
Set material Textured
Get material Textured
Set material Hide Color
Get material Hide Color
Set material Hide Alpha
Get material Hide Alpha
Set material Second Pass
Get material Second Pass
Set material Invert Alpha
Get material Invert Alpha
Set material Blending Mode
Get material Blending Mode
Set material Mapping Mode
Get material Mapping Mode
Set material Alpha Threshold
Get material Alpha Threshold
Set material Normal Extraction
Get material Normal Extraction
Set material Invert Alpha
Set material Invert Alpha
Set material tiling U
Set material tiling V
Set skip layer
Get skip layer
Get material Invert Alpha
Set material Invert Alpha
Return tiling U flag
Return tiling V flag
Set material number of layer
Get material number of layer
Set material number of layer
Get material number of layer
Concat material
Open MAT file
Open IK file
Set a draw order (smallest = draw first , biggest = draw last)
Get a draw order (smallest = draw first , biggest = draw last)
Get light index from string - for optimisation in other functions, -1 if light not found
Get Light Type // 0 = omni ; 1 = spot ; 2 = direct
Set Light Type // 0 = omni ; 1 = spot ; 2 = direct
Get Light Type
Set Light Type
Get Light Type
Set Light Type
Get Light Type
Set Light Type
Get Light Type
Set Light Type
Get Light Type
Set Light Type
Get Light Type
Set Light Type
Track Test
Render Z
VALUE 1 = FORCE_NO_Z_WRITE,VALUE 2 = FORCE_NO_Z_TEST,VALUE 8 = NO differencial RS (OPTIM = 0)
return the previously SCN_RenderFlagsSet value
Set a viewport
If no parrameters,Set to full screen
Set a clipping quad
If no parrameters,Set to full screen
Get a current(active) viewport
GET the mouse position
DIR: 1->X, 2->Y, 3->XY
Modes:
0- Client mouse pos
1- Mouse position translated in the media, needs media definition
2,3 - Mouse position in REVR plan! Need special config
4- Mouse screen with environement rescale
5- Mouse on total screen pos
return the window params
return the window in screen bounds
return the client window in screen bounds
return the resolution info, Info is a mask value
1: SX - 2: SY
return the screen resolution info, Info is a mask value
1: SX - 2: SY
Force frame buffer update even if GDI not set
Dock to specified window, if no windows is specified, dock to the windows with the focus
Verify if Window is neer
Get windows with the focus by name
Verify is there is a windows with the specified name
Verify the windows is minimized
Verify the windows is maximized
Get external windo rect
Get external windo rect
Remove clip region
Use Specified media to define window region, if no media is set, use current frame buffer media
Component set if the threshhold uses R,G,B or A element (0-4)
get window region
Use Specified media to add window region
Use Specified media to add window region
Make Rect the current Region (on framebuffer window)
Add to Region the specified Rect (on framebuffer window)
Remove to Region the specified Rect (on framebuffer window)
Set Frame buffer diff for gdi update
Set Frame buffer diff for gdi update
Transparent Mode Set/Remove
UseGDI Mode Set/Remove
Load a SRT file as subtitles
Save current version of subtitles in a SRT file
Destroy subtitle from memory
Get the subtitle at second 'time' if there's one or NIL
Get the subtitle at second 'time' if there's one or NIL
Get the subtitle at second 'time' if there's one or NIL
Set the subtitle at second 'time'
Set the subtitle at second 'time'
Return nil if shot is not here
Return error of the tag
Force Vertical Factor (between -1(force negativ) 0(flick artefact) 1(alway vertical))
compute all featureboxes on specified media.
Create a featurebox with specified index.
Return moving vector (delta X,delta Y,delta SCALE). Sould be called after FAST2D_Compute
Return moving vector (delta X,delta Y,delta SCALE). Sould be called after FAST2D_Compute
Set option for FAST2D.
SCAL for scale activation.
TURN for rotation activation.
WIND for set tracking radius outside featurebox
Return quality of tracking between 0 and 1
0 Reye,1 Leye,2 Nose,3 RMouth,4 LMouth,5 UPMouth,6 DonwMouth. Z = 0 mean not found
Create a new scene. Touch nothing if already exist.
Create a new object in scene. Touch nothing if already exist.
Use optizided quad render, Warning this only works with a good created quad 0-3-2-1
Create a new mesh. Touch nothing if already exist.
Create a new material . Touch nothing if already exist.
Create a new light. Touch nothing if already exist.
If available, compute IK in the scene. You can compute IK for several different render
Indicate it in the [instance].
Change mesh draw color
Get mesh status color
Get FPS of media tracking source
Set the scale of the tracking mask
Set better match auto-detect parrams
Create New ID
Change default resolution of camera. Use this before create media camera. Default is 320
Get table of available camera
Warning, if only one camera is avilable, return camera name (no table)
Set default camera
if default camera changed, return true, else return false
Return current camera
Open property calmera page
Remove an ID from camcam (do not delete the file)
Load an ID
Save an ID
Del an ID
Return the current ID used
Set the current ID
The function returns the true new ID
Load an mesh object for ID
copy camera(CP) from SOURCE to DEST
draw the text in current viewport
draw the text in current viewport
draw the text in current viewport with specified font
Font is a media specified by [FontName Size Mode FONT]
Mode is a mix of the options:
B: Bold - I: Italic - U: Underline
A: Antialiased - C: Contour - T: Transparency
Draw a line between (X1,Y1) and (X2,Y2)
Draw a line between P1 and P2 in scene world
Draw triangle with the specified uv
Draw triangle with the specified uv
load 3D
delete 3D
Affect Dummy object to vertex in Scene Object
Link snap dummy to dummy
link snap dummy to dummy adding scale factor
Scale depends on used axes
link snap dummy to dummy adding scale factor
Scale depends on used axes
Render smallscene
Render smallscene
Reverse Render smallscene, ComputeAlpha mean compute alpha according to normale incidence to camera. 0 Will comupte alpha = 1
[.T] = Translation
[.R] = Rotation
[.TR] or nothing = Rotation + translation
restor small scene initial position
Get Root Matrix
Set Root Matrix
Affect a track matrix to a scene
[.TR] mean:
[.T] = Translation
[.R] = Rotation
[.S] = Mask scale
[.TR] or nothing = Rotation + translation
Medianame is used for finding current frame number
Max Status sets allowed track status
Affect trackeur matrix to a small scene
[.TR] mean:
[.T] = Translation
[.R] = Rotation
[.S] = Mask scale
[.TR] or nothing = Rotation + translation
Affect trackeur matrix to an object of a small scene
[.TR] mean:
[.T] = Translation
[.R] = Rotation
[.S] = Mask scale
[Index] object number - Warning begin at 1 !!
[.TR] or nothing = Rotation + translation
Set the tracker matrix
[.TR] mean:
[.T] = Translation
[.R] = Rotation
[.S] = Mask scale
[.TR] or nothing = Rotation + translation
return trackeur matrix
[.TR] mean:
[.T] = Translation
[.R] = Rotation
[.TR] or nothing = Rotation + translation
Use for script Manual Boot, 1-> Begin, 0->End
Affect an animated matrix from a media to a new ID
!Medianame must be inside '<' and '>'
BLENDING MODES: 0=COPY;1=ALPHA;2=ADD;3=ALPHA PREMULT;4=PREVIOUS ALPHA;5=Multiply
!Medianame must be inside '<' and '>' ; Same as DrawQuad, but no ratio correction. Optional parram specify blendingmode
Clear the current viewport
Clear ZBuffer in the current viewport
Set the media as background in current viewport. You can specify blend mode
BLACK -> All is black
WHITE -> All is normal
Default is 255 255 255 255 (white)
define the media where tracker is running
reset current tracker
reset current tracker
reset current tracker
Save track to file
Set current Track
Get the position matrix of the current tracked media previously set
Save a position matrix in current tracked media
If force=1, the track is always saved
If force=0, the track is only saved if it's empty
Save current tracked position in current tracked media
If force=1, the track is always saved
If force=0, the track is only saved if it's empty
Delete tracked position in current tracked media
If [Pos] and [End] are set, delete track from Pos to End
If only [Pos] is set, delete the track at position [Pos]
If neother [Pos] nor [End] are set, remove the current track
Delete tracked position in current tracked media
If [Pos] and [End] are set, delete track from Pos to End
If only [Pos] is set, delete the track at position [Pos]
If neother [Pos] nor [End] are set, remove the current track
Set if there is a cut scene or not
Force current media frame as a cut scene at specified position or current position
Force track as a cut scene at specified position or current position
Return if the frame is a cutscene
Return the number of tracks of the current tracked media
Return the track's name
Set the track's name
Add lost images in tracker
return tracker state, like Islost with more info
0: tracking ok
1: traking on fly
2: traking from scratch
3: combination of 1 and 2
8: no tracker
return SAVED tracker state
If [Track] is Set, returns the tracker save status at specified position
Track States:
0: tracking ok
1: traking on fly
2: traking from scratch
3: combination of 1 and 2
4: null track
8: no track made
Set color in track using
return SAVED tracker color in RGB mode
Set integer data into .TRK
if track index == -1, stocks in descriptor
Get integer data into .TRK
if track index == -1, stocks in descriptor
Set float data into .TRK
if track index == -1, stocks in descriptor
Get float data into .TRK
if track index == -1, stocks in descriptor
Set string (256 max) data into .TRK
if track index == -1, stocks in descriptor
Get string data into .TRK
if track index == -1, stocks in descriptor
Log text on DBG File
Force Error
Return if executable is compiled in user mode
Return if the GameId of the application belongs to the Demo branch
Return false if the application has already been run with an account
Return the 2-character language code
Show/Hide the splashscreen
0 for Opengl, 1 for D3D
Set autorun off application in windows startup
Get autorun off application in windows startup
Test Function - Convert AVI to FLV
Show or hide tray icon
do drag and drop ...
return 1 if one of the key is pressed
unpress the specifyed key(s)
Get current pressed char key
return true if left mouse button is pressed
open explorer at specified path
Set Raster, 0 <= index <= 4
Set Raster, 0 <= index <= 4
Set screen mouse noise threshold, set a small value for a big smooth
Create and config avi file writer
Set Avi writer source if onResultFrame == 1, use total screen, else, use a specific media. DO IT BEFORE START !!!
Add an audio source to Record. DO IT BEFORE START !!!
Seek audio source. DO IT BEFORE START !!!
Start save
Begin AVI Save (need AVISaveConfig)
Pause AVI Save (need AVISaveConfig)
Stop and remove AVI save mode (need AVISaveConfig), after a stop a Config is needed again
Sleep application (time in milliseconds)
Set Lua watch to specified directory (only on watch at the same time), if file is modified, the lua event onDirWatch is send
Get user application data path
Get user My Documents path
Get user My Music path
Get user My Pictures path
Connection To Flight simulator
Connection To Flight simulator
Verify if file exists and can be Opened !
Copy specified file
Delete specified file
Create specified directory
Draw one pixel with the specified color into the media at position X,Y
Modes 0: Paint - 1:Cursor - 2:RemoveCursor
Return actual time in milliseconds
Show or hide WINDOWS cursor
Show a specified cursor
0 - Standard cursor
1 - Hand cursor
2 - Wait cursor
3 - Resize Cursor NWSE
4 - Resize Cursor NESW
5 - Move Cursor
Show the tracked mesh... And return the state
Set or remove collision process
Hide or unhide an object and all his son's.
His nothing do it for all
Tell if object is Hidden
Restore an object initial position all his son's.
his nothing do it for all
Save object states
mask : 1- Flags; 2- LocalMatrix; 4- Draworder
Restore object states
mask : 1- Flags; 2- LocalMatrix; 4- Draworder
Search feature of a media !!! TEST !!!
Warning ! this must be called BEFORE SetTrackMatrix !!
Handle PPJoy
Change track resolution
Set translation factor multiplier
Set rotation factor multiplier
Set rotation factor multiplier
Set translation smooth factor, number between 0 and 1, 1-> no smooth, 0-> no move
Set rotation smooth factor, default 2, the bigger is the number, the smaller is the smooth
Set quat smooth factor, number between 0 and 1, 1-> no smooth, 0-> no rotation
QHold affect non move for small movements, QHold = 1, like 0, no holding, the smaller is QHold the less the rotation is affected
Set translation smooth factor, number between 0 and 1, 1-> no smooth, 0-> no move
Search head using the selected point and 3d mesh points.
if mode == 2, use 2D Search, else, ue 3D serach.
MinOk sets minimum matching points.
If anim does not exist, do nothing.
AnimPlay WILL return 1 if anim is finished.
Basetime is the time (in MS) when anim has started.
PlayFactor is the speed
AnimPlay WILL return 1 if anim is finished.
Basetime is the time (in MS) when anim has started.
Blend is used for blending with existing position (1 is like playanim).
Delete Anim
Load particule generator
Delete particule generator
save particule generator file
if [Generator Name] = 'All', process all generators
Emit a single particle and return it's index, the particle will have specified life in ms
Emit a single particle at the specified position and direction and return it's index
if [Generator Name] = 'All', process all generators
if [Generator Name] = 'All', restart all generators
Get Particle position
Get Particle position
Get Particle position
Get Particle position
Add callback to specific particle when collide, Callback type:
MyCallback(SceneName, ObjectName, AbsolutePos, AbsoluteNormal, UV)
Verify if particle is alive
Kill selected Particle, if -1 kills all living particles, if -2 kill all livings particles and stop generation (if no repeat)
Set or Remove particle repeat mode
Set Particules generator config Options
Get Particules generator config Options
Set Particules generator config Texture Grid
Get Particules generator config Texture Grid
Set Particules generator config Blend Mode
Get Particules generator config Blend Mode
Set Particules generator config Alpha Threshold
Get Particules generator config Alpha Threshold
Set Particules total number
Get Particules total number
Set Particules life in ms
Get Particules life in ms
Set Particules life in ms
Get Particules life in ms
Set Particules life random
Get Particules life random
Set Particules generator config generation speed
Get Particules generator config generation speed
Set Particules generator config generation speed random
Get Particules generator config generation speed random
Set Particules generator config generation angle
Get Particules generator config generation angle
Set Particules generator config generation power
Get Particules generator config generation power
Set Particules generator config generation power random
Get Particules generator config generation power random
Set Particules generator config generation width
Get Particules generator config generation width
Set Particules generator config generation height
Get Particules generator config generation height
Set Particules generator config random size
Get Particules generator config random size
Set Particules generator config generation number
Get Particules generator config generation number
Set Particules generator config Gravity
Get Particules generator config Gravity
Set Particules generator config Frictions
Get Particules generator config Frictions
Set Particules generator config Wind Direction
Get Particules generator config Wind Direction
Set Particules generator config Wind Force
Get Particules generator config Wind Force
Set Particules generator config Rotation Speed
Get Particules generator config Rotation Speed
Set Particules generator config Rotation Random
Get Particules generator config Rotation Random
Set Particules generator config
Get Particules generator config
Set Particules generator config Grow For Time
Get Particules generator config Grow For Time
Set Particules generator config Grow For Init
Get Particules generator config Grow For Init
Set Particules generator config Grow For End
Get Particules generator config Grow For End
Set Particules generator config Grow For Time Random
Get Particules generator config Grow For Time Random
Set Particules generator config Fade For Time
Get Particules generator config Fade For Time
Set Particules generator config Fade For Init
Get Particules generator config Fade For Init
Set Particules generator config Fade For End
Get Particules generator config Fade For End
Set Particules generator config Fade For Time Random
Get Particules generator config Fade For Time Random
Set Particules generator config Grow For Color Time
Get Particules generator config Grow For Color Time
Set Particules generator config Grow For Color Init
Get Particules generator config Grow For Color Init
Set Particules generator config Grow For Color End
Get Particules generator config Grow For Color End
Set Particules generator config Fade For Color Time
Get Particules generator config Fade For Color Time
Set Particules generator config Fade For Color Init
Get Particules generator config Fade For Color Init
Set Particules generator config Fade For Color End
Get Particules generator config Fade For Color End
Set Particules generator config Anim Speed
Get Particules generator config Anim Speed
Set Particules generator config Anim Repeat
Get Particules generator config Anim Repeat
Set Particules generator config AnimInit
Get Particules generator config AnimInit
Set Particules generator config collision Friction
Get Particules generator config collision Friction
Set Particules generator config collision Random Angle
Get Particules generator config collision Random Angle
Get the application path
Set or Remove particle media
Set or Remove particle media
Set or Remove particle mass media
Set or Remove particle mass media
Get particle scene
Set particle scene
Get particle scene object
Set particle scene object
Open PGR file
Change picking Z tolerance
Get current picking Z tolerance
If the name is not empty and different than '0', enable picking (!! Time consuming !! )
This Flag allow you to know when picking happen
Return the pick flag active when picking occurs
Return the pick flag active when picking occurs
Force to keep focus if 1, even if mouse is outside the main window. 0 will release this option
If a small scene has been picked, return LOCAL XYZ else '0'
If a small scene has been picked, return GLOBAL XYZ else '0'
If a small scene has been picked, return SmallScene Name, else '0'
If a small scene has been picked, return SmallScene Object Name, else '0'
If a small scene has been picked, return SmallScene Material Name, else '0'
Transform screen point into the smallescene coordinate
Transform screen point into the smallescene coordinate
If a media was associated to the picking return his name, else '0'
If a media was associated to the picking return his nickname, else '0'
If a media was associated to the picking, return the color of the pick, else '0'
If a media was associated to the picking return the texture coords of the picking point, else '0'
Make grow tolerancy of picking by [SIZE] pixels
Set the alpha picking sensitivity.0 mean pick everything.Range is 0-256
Negative numbers mean ORTHO (ISOMETRIC) Focale
Get the focal of a small scene. Negative numbers mean ORTHO (ISOMETRIC) Focale.
Create Null Vector
Create Indetity quaternion
Create Indetity matrix
Angle is in degree
Angle is in degree
Angle is in degree
Angle is in degree
Angle is in degree
Angle is in degree
Amplify or reduct a rotation matrix
Amplify or reduct a rotation matrix
Amplify or reduct a rotation matrix
Amplify or reduct a rotation matrix
Amplify or reduct a rotation matrix
Inverse the matrix
Zoom is a Factor
Compute back. Store result in alpha channel
Compute back denoise parrams.
Return 0 if tracker has been called
save material
Check IK
Set an empty IK (reset existing or create)
Save IK File
Set Patch number
Get Patch number
Set patch Object
Get patch Object Name
Set Patch Flag
Get Patch Flag
Set Patch HeritageStart
Get Patch HeritageStart
Set Patch SpringStrength
Get Patch SpringStrength
Set Patch VelocityAbsorbtion
Get Patch VelocityAbsorbtion
Set Patch MaxAngle in degrees
Get Patch MaxAngle in degrees
Set Patch Weight
Get Patch Weight
Set Collider number
Get Collider number
Set Collider Object
Get Collider Object Name
Set Collider Radius
Get Collider Radius
Set Collider Center
Get Collider Center
[Number1] Define if sound or not :
[0] : Without sound (=OFF)
[1] My sound is still sent to network, but my reception is closed
[5] Only my sound to me
[10] is to send and listen network's sound (=NETWORK)
[11] Silence In and Out
[Number2] Define treatment on DCT coefficients :
[0] : No compression
[1] : Only DCT compression
[2] : DCT and Gauss compression
[3] : Bit compression
[Number3] On/Off Huffman compression
[Number] : switch On(1) or Off(0) the treatments on sound
Default value is 0(OFF)
Alter voice using DCT frequencies
Alter base voice with specified factor
Get X,Y position on Matrix Effect
Set X,Y position on Matrix Effect
Init Matrix effects
End Sound init to initialize global conversion matrix
Init Matrix effects
Apply gaussian on DCT coefficients
[Number1] Kind of gaussian :
[0] : normal
[1] : right extended (cancel highest coefficients)
[2] : left extended (cancel lowest coefficients)
[Number2] Size (if 12 or more -> crash)
[Number3] Sigma
Switch On/Off all filters
Create filter. Params are :
Switch On(1) / Off(0)
Position of filter in filter tab. First filter have to be declared with 0, the next with 1 etc
CenterPosition can be set for be able to have an non-symetric filter
All other numbers are the values of the filter
Remove suspect value
[Number1] On/Off
[Number2] Sensibility : define suspect value. Variation to average
Remove values Talky Walky mode
[Number1] On/Off
[Number2] Sensibility
[Number] Define volume of sound. Value is x10% of the 'normal' sound volume
Default value is 10 = 100%
To set my ID
To get my ID in interface part Out
Recording wav file
Stop recording wav file
Play wav file. This file must be in the folder \Sounds
load a media
Example
[CM cam1] for a webcam
[CM mr.jpg] for a jpegfile
Set a nick name for picking, usable as an object in the UI
load a media
Example
[CM cam1] for a webcam
[CM mr.jpg] for a jpegfile
Display all media
Destroy all medias
Destroy all medias
Destroy all medias, exept if they are recreated after
When rendering, use MediaNmaeSource instead of MediaNameDst
Must be recall each frame
Can be call several times in a frame
Begin rendering in the media. SaveFrontBuffer to 1 will not affect the front buffer, but will be slower in OpenGL.
End rendering in the media (UpdateSoftBuffer = 1 if needed for streaming for exemple)
Verify if media is defined
return the media's number of frames
return the current Media frame
Set media frame
Set media time in seconds
Set media time in seconds
Get media average FPS
Set media time in seconds
for video and audio. Set media rate (speed) 1-> normal speed
for video and audio. Get media rate (speed) 1-> normal speed
Get the width of the specifyed media in pixels
Get the height of the specifyed media in pixels
masking method: bit1: if set, count media number using nbReferences
bit2: if set do not count virtually destroyed media
Get the bounds of the specifyed text using the specified font (if no font specified, use default one)
Specify the focale of the specifyed media. Default is 2.5
Get the focale of the specifyed media. Default
Play media
Pause media
Stop media (restart at the begining on next play
Return if media is currently playing
Only for WAVE Files !!
ratio of default frequency
ratio of max volume
Play media
Play media
Stock the Avi file into image file
Set the frame per second of AVI media
return 1 if tracked media has detected a movie cut, 0 else
Example:SpecifyBLUR <0 BLUR> <0 REVR> 0.2
define width and height of the reverse rendering map
define the update mask for the revr. If mediamask == mediaindex then desactive masking
return Content of the media if it's a text
Set Content of the media if it's a text
Set the font of the media
Set the keyboard focus to MediaTextIndex
Loose the keyboard focus if any
Get focused media text
pas touche!!
Filers ...
Set the color if Z inferior to Zbuffer (Z superior to ZBuffer set if Z is negative)
Transform color in alpha
Erode white over black
Multiply frame buffer with layer
Set a BW Param
Multiply screen with specifyed color (exemple SEPIA->AE_ColorFilter(1,0.6, 0.3) )
Add screen with specifyed color
Set Contrast (1.0 is the neutral factor)
Set Brighness (1.0 is the neutral factor)
Add a blur after effect the current viewport
Add a motion blur after effect to the current viewport
Add a zoom smooth after effect to the current viewport
CenterX and CenterY are between 0 and 1
Add a GodRay after effect to the current viewport
CenterX and CenterY are between 0 and 1
Invert current screen
Invert Alpha current screen
Multiply screen alpha with screen color
Set a layer for refrash screen if needed
Save current frame buffer into layer index. Set SaveAlpha to 1 if yout want to keep current alpha buffer in the layer
Blend frame buffer with layer and factor opacity
Blend frame buffer with layer and factor opacity
Screen frame buffer with layer and factor opacity
create e ZCC with all the file previously called with ZCC_ADDFILE, and if ALLCURRENT add current LOADED scenes, anims, media and particules
Decompress a ZCC file. if you want to lauch main lua included in the ZCC, set LAUCHLUA to 1. OVERRIDE mode to 1 if you want to overide (ecraser!) files
Get the file contents of a ZCC file in a table.
Add a file that will be packed in the next ZCC_PACK()
Add a scene that will be packed in the next ZCC_PACK()
Clear the previous defined list defined with ZCC_ADDFILE and ZCC_ADDREFSCENE
Update a media of with current frame buffer
Convert a XML data into lua table
Convert a lua table/element into string
Convert a string into lua table/element
Update lua events. Warning, only use it when you add or remove an event.
Get the data on an event:
Mouse events: {x=XXX, y=XXX, keys={control|lbutton|mbutton|rbutton|shift}, value=XXX}
Key events: int value representing VK_ value of a character
onDropFiles: string path
Redefinition of lua dofile
Set the value of a variable in a memory bloc.
Get the value of a variable set in a memory bloc or the default value if it doesnt exist.
Display a message box
Del the value of a variable set in a memory bloc.
Save the contents of a memory bloc in a CCM file.
Destroy IN MEMORY ONLY a CCM.
Set session settings (language code follows ISO 639-1, e.g. 'en')
Log-in to the server, return true in case of success. If Async is true, we just start a background log-in thread; use with APP_GetAsyncLogInProgressState(); no other account operation is permitted until it completes.
Log-in 'anonymously' to the server, using a machine identifier for tracking (see APP_LogIn)
Open login page in browser. If autoLogIn is true, tries to reconnect with the last successful account
Close login page in browser.
Set the pos and dimension of the login browser
Return the progress of the Async APP_LogIn operation: 1-99=InProgress -> 100=Success|-1=Failed -> 0=NotRunning. Use APP_GetCards only after Success.
Return an associative array with the following keys: 'v' (Protocol Number), 'ia' (idAccount)
Return the account error string (valid after an error)
Log-out from the server
Get the cards known/owned by the user, or false in case of error
Get the credits of the account
Add some credits to the account (makes a server request). [TEMP]
Open an external browser to visit an URL (the URL must begin with 'http://', or be empty in which case the YouUp website is open using auto-log-in if possible, and uses optional arg: 0=Profile, 1=Shop, 2=BetaReportTool)
Handle an event in the same way as when coming from a browser. Available events: refresh, closeUploadWindow (see CCamCamAccount::onBrowserEvent() for more). srcBrowserIndex: 0=External, 1=VideoPublishingWindow
Set the pos and dimension of the shop browser
Open or close the shop browser window (if visible=true, you may specify a page)
Change the page in the shop browser window (that must be visible)
Start asynchronously downloading the thumbnail files of the disguise cardType/id, if they are not locally present. If provided, the specified media will automatically be drawn in the background as soon as it is ready.
Start downloading the specified zcc, in the background, if they are not locally present. Return true if no downloading is needed, or false if a download was started. In the latter case, the callback onAssetDownloaded(idZcc) will be called when the download is complete. The zcc files are automatically unpacked after download.
If a file download is pending and the download has not been started yet, this will advance the file to the first position in the queue.
Upload video to website (asynchronous).
Return the upload progress, from 0 to 100 (100=completed) or -1 if cancelled
Send a request to server in the background with controlled streaming frequency
Open Internet Explorer's connection dialog, to allow the user modify the proxy settings
Configure HTTP Client. Proxy: 'default' (use the proxy from the account connection, valid after log-in), 'auto' (auto-detect, can take several seconds on first request if env fails, 'env' (use HTTP_PROXY config var, no fall-back on auto-detect), '' (force direct), '10.1.200.16:3128' (specify proxy host). Auth ex: 'user:password' or ''. Channels: 0=Default NET_HTTP commands; >0=NET_HTTP commands with specified channel; -1=Main thread account client; [future: -2=download thread account client; -3=upload thread Ubitube client;]
Get a HTTP page, either returned as string or written to file (then boolean is returned)
Post params (syntax: a=u&b=v) to a HTTP page, either returned as string or written to file (then boolean is returned)
Post params (syntax: a=u&b=v&c=@filename, where @ indicates a file to be sent) to a HTTP page, either returned as string or written to file (then boolean is returned)
Return the code of the last HTTP operation (200=OK, sup 400=Server error, inf 200=Client/Network error).
For channel -1, with true wantWebServiceErrorCode, returns the application error code (0=OK, sup 0=Known, -1=Unknown)