|
OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
| V3DgetDefaultViewport (viewstr) | |
| Get the default viewport of a 3d view structure. | |
| V3DgetObjectOrientationDeg (obj) | |
| Get an object euler rotation in degree. | |
| V3DsetObjectOrientationDeg (obj, ang) | |
| Set an object euler rotation in degree. | |
| V3DgetObjectGlobalOrientationDeg (obj) | |
| Get an object global euler rotation in degree. | |
| V3DsetObjectGlobalOrientationDeg (obj, ang) | |
| Set an object global euler rotation in degree. | |
| V3DgetSessionView (sessionstr) | |
| Get the V3Dview structure from a V3Dsession structure. | |
| V3DgetObjectByName (sessionstr, name) | |
| Get a 3d object by his name or camera type. | |
| V3DgetObjectTypeByName (name) | |
| Get a 3d object mode by it's name. | |
| V3DgetCameraByType (sessionstr, cam, type) | |
| Get a camera object by type, the camera or the navigation shell. | |
| V3DgetViewportByIndex (viewstr, idx) | |
| Get a viewport structure from it's index in 3d view. | |
| V3DgetViewportCamera (viewportstr) | |
| Get the current viewport camera. | |
| V3DgetViewportIndex (viewstr, viewport) | |
| Get a viewport index in a 3d view structure. | |
| V3DsetViewportColor (viewportstr, color) | |
| Set a viewport backgroung color. | |
| V3DgetViewportColor (viewportstr) | |
| Get a viewport backgroung color. | |
| V3DgetViewportSize (viewstr, viewportstr) | |
| Get a viewport size. | |
| V3DdelViewport (viewstr, viewportstr) | |
| Remove a viewport. | |
| V3DaddViewport (viewstr, x, y, w, h, backcolor) | |
| Add a viewport. | |
| V3DsetViewportPolygonMode (viewportstr, mode) | |
| Set a viewport polygon render mode. | |
| V3DgetViewportPolygonMode (viewportstr) | |
| Get a viewport polygon render mode. | |
| V3DsetViewport (viewstr, viewportstr, camera) | |
| Set a viewport camera and display it. | |
| V3DsetViewportPositionSize (viewportstr, x, y, w, h) | |
| Resize a viewport. | |
| V3DchangeCameraViewport (sessionstr, viewportstr, camera) | |
| Change a viewport camera. | |
| V3DregisterCompositor (viewportstr, compo, scheme) | |
| Add a compositor to a viewport. | |
| V3DunRegisterCompositor (viewportstr, compo) | |
| Remove a compositor from a viewport. | |
| V3DgetCompositorScheme (viewportstr, compo) | |
| Get the scheme name associated with a viewport compositor. | |
| V3DsetCamera (camera, fovlength, fovy, nclip, fclip) | |
| Set a camera settings. | |
| V3DgetDefaultCamera (sessionstr) | |
| Get the current default camera. | |
| V3DsetDefaultCamera (sessionstr, camera) | |
| Set the current default camera. | |
| V3DremoveDefaultCamera (sessionstr, camera) | |
| Remove the default camera. | |
| V3DdelCamera (sessionstr, camera) | |
| Remove a camera. | |
| V3DaddCamera (sessionstr, name) | |
| Add a camera. | |
| V3DaddParticleSystem (sessionstr, name, template) | |
| Add a particle system. | |
| V3DsetLight (light, type, dcolor, scolor, range, const, linear, quadr) | |
| Set a light parameters. | |
| V3DenableLight (light, state) | |
| Enable or Disable a light. | |
| V3DaddLight (sessionstr, name, father, type, dcolor, scolor, range, const, linear, quadr) | |
| Add a light. | |
| V3DaddResource (sessionstr, ressource, group, type) | |
| Add a resource to a scene. | |
| V3DaddMesh (sessionstr, file, name, idx, group, father) | |
| Add a mesh to a scene. | |
| V3DloadMesh (sessionstr, file, name, idx, group, father, cbfun) | |
| Add a mesh to a scene, the mesh is loaded in a background thread. | |
| V3DaddShell (sessionstr, name, idx, father, pos, ang) | |
| Add a shell node to a scene. | |
| V3DsetAmbientLight (sessionstr, color) | |
| Set the scene ambient color. | |
| V3DgetAmbientLight (sessionstr) | |
| Get the scene ambient color. | |
| V3DgetAnimationByName (sessionstr, name) | |
| Get an animation by it's name. | |
| V3DgetAnimationByAnim (sessionstr, anim) | |
| Get an animation structure from the SO3_ANIM object. | |
| V3DaddAnimation (sessionstr, obj, id, basename, name, length, speed, weight, state, loop, transmode, rotmode) | |
| Add an animation to the scene. | |
| V3DaddSequenceAnimation (sessionstr, id, basename, name, speed, weight, state, loop) | |
| Add a sequence animation to the scene. | |
| V3DgetNbAnimationTracks (animstr) | |
| Get the number of animation tracks. | |
| V3DgetNbAnimationTrackKeys (animstr, trackidx) | |
| Get the number of animation track keys. | |
| V3DaddSequenceAnimationTrack (animstr) | |
| Add a sequence animation track. | |
| V3DdelSequenceAnimationTrack (animstr, trackidx) | |
| Remove a sequence animation track. | |
| V3DmoveSequenceAnimationKey (animstr, trackidx, keyidx, newidx) | |
| Move a sequence animation track key. | |
| V3DgetSequenceAnimationKey (animstr, trackidx, keyidx) | |
| Get a sequence animation track key. | |
| V3DgetSequenceAnimationKeyInfos (animstr, trackidx, keyidx) | |
| Get a sequence animation track key infos. | |
| V3DsetSequenceAnimationKeyInfos (animstr, trackidx, keyidx, length, trans, decal) | |
| Set a sequence animation track key infos. | |
| V3DaddSequenceAnimationKey (animstr, trackidx, keyanimstr, length, transition, decal) | |
| Add a sequence animation track key. | |
| V3DdelSequenceAnimationKey (animstr, trackidx, keyidx) | |
| Remove a sequence animation track key. | |
| V3DaddMorphAnimation (sessionstr, anim, obj, id, basename, name, speed, weight, state, loop) | |
| Add a morph animation to the scene. | |
| V3DdelAnimation (sessionstr, animstr) | |
| Delete an animation. | |
| V3DaddAnimationKey (animstr, pos, quat, scale, ftime) | |
| Add an animation node key. | |
| V3DdelAnimationTrack (sessionstr, animstr, trackidx) | |
| Delete an animation track. | |
| V3DsetAnimationWeight (animstr, weight) | |
| Set an animation weight. | |
| V3DgetAnimationWeight (animstr) | |
| Get an animation weight. | |
| V3DsetAnimationState (animstr, state) | |
| Set an animation state. | |
| V3DsetAnimationLoop (animstr, loop) | |
| Set an animation loop. | |
| V3DsetAnimationSpeed (animstr, speed) | |
| Set an animation speed factor. | |
| V3DsetAnimationInterpolationMode (animstr, mode) | |
| Set an animation translation interpolation mode. | |
| V3DsetAnimationRotInterpolationMode (animstr, mode) | |
| Set an animation rotation interpolation mode. | |
| V3DgetAnimationState (animstr) | |
| Get an animation state. | |
| V3DgetAnimationLoop (animstr) | |
| Get an animation loop state. | |
| V3DgetAnimationSpeed (animstr) | |
| Get an animation speed factor. | |
| V3DgetAnimationType (animstr) | |
| Get an animation type. | |
| V3DsetAnimationPosition (animstr, pos) | |
| Set an animation position. | |
| V3DgetAnimationPosition (animstr) | |
| Get an animation position. | |
| V3DgetAnimationLength (animstr) | |
| Get an animation length. | |
| V3DgetAnimationEnable (animstr) | |
| Get an animation enable state. | |
| V3DresetAnimation (animstr) | |
| Reset an animation. | |
| V3DresetAnimations (sessionstr) | |
| Reset all scene animations. | |
| V3DpauseAnimation (animstr) | |
| Pause an animation. | |
| V3DplayAnimation (animstr) | |
| Play an animation. | |
| V3DplayAnimationFromPos (animstr, startpos) | |
| Play an animation from a position. | |
| V3DstopAnimation (animstr) | |
| Stop an animation. | |
| V3DenableAnimation (animstr, state) | |
| Set an animation enable state. | |
| V3DanimationSetSkipFrame (animstr, state) | |
| Set an animation skip frame state. | |
| V3DanimationGetSkipFrame (animstr) | |
| Get an animation skip frame state. | |
| V3DcrSession (viewstr, name) | |
| Create a 3d scene structure. | |
| V3DresetSession (sessionstr) | |
| Reset a 3d scene. | |
| V3DviewSetFocus (viewstr) | |
| Set the 3d view focus. | |
| V3DshowCursor (viewstr, state) | |
| Set the mouse cursor visibility state. | |
| V3DgetCursorVisible (viewstr) | |
| Get a 3d view the mouse cursor visibility state. | |
| V3DgetCursor (viewstr) | |
| Get a 3d view mouse cursor. | |
| V3DgetCursorTrans (viewstr) | |
| Get a 3d view last cursor translation. | |
| V3DgetCursorDirection (viewstr) | |
| Get a 3d view last cursor direction. | |
| V3DisClicked (viewstr) | |
| Get a 3d view last mouse click state. | |
| V3DisMoveClicked (viewstr) | |
| Get a 3d view last mouse move click state. | |
| V3DenableKeyboard (viewstr, mode) | |
| Set a 3d view keyboard state. | |
| V3DenableMouse (viewstr, mode) | |
| Set a 3d view mouse state. | |
| V3DsetCursor (viewstr, cursor) | |
| Change a 3d view mouse cursor. | |
| V3DdsView (viewstr) | |
| Destroy a 3d view. | |
| V3DgetViewPosSize (viewstr) | |
| Get a 3d view position and size. | |
| V3DgetViewPos (viewstr) | |
| Get a 3d view position. | |
| V3DgetViewSize (viewstr) | |
| Get a 3d view size. | |
| V3DgetFullScreenState (viewstr) | |
| Get a 3d view fullscreen state. | |
| V3DcenterMouseCursor (viewstr) | |
| Center the mouse cursor on a 3d view. | |
| V3DsetMousePosition (viewstr, x, y) | |
| Set the mouse cursor position on a 3d view. | |
| V3DgetVrPointerState (viewstr) | |
OpenSpace3D 3D view API
| V3DgetDefaultViewport | ( | viewstr | ) |
Get the default viewport of a 3d view structure.
Prototype: fun [V3Dview] V3Dviewport
| V3Dview | : the 3d view structure |
| V3DgetObjectOrientationDeg | ( | obj | ) |
Get an object euler rotation in degree.
Prototype: fun [SO3_OBJECT] [F F F]
| SO3_OBJECT | : the 3d object |
| V3DsetObjectOrientationDeg | ( | obj | , |
| ang | |||
| ) |
Set an object euler rotation in degree.
Prototype: fun [SO3_OBJECT [F F F]] [F F F]
| SO3_OBJECT | : the 3d object |
| [F | F F] : euler rotation in degree |
| V3DgetObjectGlobalOrientationDeg | ( | obj | ) |
Get an object global euler rotation in degree.
Prototype: fun [SO3_OBJECT] [F F F]
| SO3_OBJECT | : the 3d object |
| V3DsetObjectGlobalOrientationDeg | ( | obj | , |
| ang | |||
| ) |
Set an object global euler rotation in degree.
Prototype: fun [SO3_OBJECT [F F F]] [F F F]
| SO3_OBJECT | : the 3d object |
| [F | F F] : global euler rotation in degree |
| V3DgetSessionView | ( | sessionstr | ) |
Get the V3Dview structure from a V3Dsession structure.
Prototype: fun [V3Dsession] V3Dview
| V3Dsession | : the scene structure |
| V3DgetObjectByName | ( | sessionstr | , |
| name | |||
| ) |
Get a 3d object by his name or camera type.
Prototype: fun [V3Dsession S] SO3_OBJECT
| V3Dsession | : the scene structure |
| S | : the object name |
| V3DgetObjectTypeByName | ( | name | ) |
Get a 3d object mode by it's name.
Prototype: fun [S] SO3_OBJECT
| S | : the object name |
| V3DgetCameraByType | ( | sessionstr | , |
| cam | , | ||
| type | |||
| ) |
Get a camera object by type, the camera or the navigation shell.
Prototype: fun [V3Dsession SO3_OBJECT I] SO3_OBJECT
| V3Dsession | : the scene structure |
| SO3_OBJECT | : the camera |
| I | : the type, 1 the same camera, 2 the navigation shell |
| V3DgetViewportByIndex | ( | viewstr | , |
| idx | |||
| ) |
Get a viewport structure from it's index in 3d view.
Prototype: fun [V3Dview I] V3Dviewport
| V3Dview | : the 3d view structure |
| I | : the viewport index |
| V3DgetViewportCamera | ( | viewportstr | ) |
Get the current viewport camera.
Prototype: fun [V3Dviewport] SO3_OBJECT
| V3Dviewport | : the viewport structure |
| V3DgetViewportIndex | ( | viewstr | , |
| viewport | |||
| ) |
Get a viewport index in a 3d view structure.
Prototype: fun [V3Dview V3Dviewport] I
| V3Dview | : the 3d view structure |
| V3Dviewport | : the viewport structure |
| V3DsetViewportColor | ( | viewportstr | , |
| color | |||
| ) |
Set a viewport backgroung color.
Prototype: fun [V3Dviewport I] I
| V3Dviewport | : the viewport structure |
| I | : the background color |
| V3DgetViewportColor | ( | viewportstr | ) |
Get a viewport backgroung color.
Prototype: fun [V3Dviewport] I
| V3Dviewport | : the viewport structure |
| V3DgetViewportSize | ( | viewstr | , |
| viewportstr | |||
| ) |
Get a viewport size.
Prototype: fun [V3Dview V3Dviewport] [I I I I]
| V3Dview | : the view structure |
| V3Dviewport | : the viewport structure |
| V3DdelViewport | ( | viewstr | , |
| viewportstr | |||
| ) |
Remove a viewport.
Prototype: fun [V3Dview V3Dviewport] I
| V3Dview | : the 3d view structure |
| V3Dviewport | : the viewport structure |
| V3DaddViewport | ( | viewstr | , |
| x | , | ||
| y | , | ||
| w | , | ||
| h | , | ||
| backcolor | |||
| ) |
Add a viewport.
Prototype: fun [V3Dview F F F F I] V3Dviewport
| V3Dview | : the 3d view structure |
| F | : the X position between 0 and 1 |
| F | : the Y position between 0 and 1 |
| F | : the width between 0 and 1 |
| F | : the height between 0 and 1 |
| I | : the background color |
| V3DsetViewportPolygonMode | ( | viewportstr | , |
| mode | |||
| ) |
Set a viewport polygon render mode.
Prototype: fun [V3Dviewport I] I
| V3Dviewport | : the viewport structure |
| I | : the render mode, SO3_POLY_POINTS, SO3_POLY_SOLID or SO3_POLY_WIREFRAME |
| V3DgetViewportPolygonMode | ( | viewportstr | ) |
Get a viewport polygon render mode.
Prototype: fun [V3Dviewport I] I
| V3Dviewport | : the viewport structure |
| V3DsetViewport | ( | viewstr | , |
| viewportstr | , | ||
| camera | |||
| ) |
Set a viewport camera and display it.
Prototype: fun [V3Dview V3Dviewport SO3_OBJECT] I
| V3Dview | : the 3d view structure |
| V3Dviewport | : the viewport structure |
| SO3_OBJECT | : the camera object |
| V3DsetViewportPositionSize | ( | viewportstr | , |
| x | , | ||
| y | , | ||
| w | , | ||
| h | |||
| ) |
Resize a viewport.
Prototype: fun [V3Dviewport F F F F] I
| V3Dviewport | : the viewport structure |
| F | : the X position between 0 and 1 |
| F | : the Y position between 0 and 1 |
| F | : the width between 0 and 1 |
| F | : the height between 0 and 1 |
| V3DchangeCameraViewport | ( | sessionstr | , |
| viewportstr | , | ||
| camera | |||
| ) |
Change a viewport camera.
Prototype: fun [V3Dsession V3Dviewport SO3_OBJECT] I
| V3Dsession | : the 3d scene structure |
| V3Dviewport | : the viewport structure |
| SO3_OBJECT | : the camera object |
| V3DregisterCompositor | ( | viewportstr | , |
| compo | , | ||
| scheme | |||
| ) |
Add a compositor to a viewport.
Prototype: fun [V3Dviewport S S] I
| V3Dviewport | : the viewport structure |
| S | : the compositor name |
| S | : the compositor scheme name |
| V3DunRegisterCompositor | ( | viewportstr | , |
| compo | |||
| ) |
Remove a compositor from a viewport.
Prototype: fun [V3Dviewport S] I
| V3Dviewport | : the viewport structure |
| S | : the compositor name |
| V3DgetCompositorScheme | ( | viewportstr | , |
| compo | |||
| ) |
Get the scheme name associated with a viewport compositor.
Prototype: fun [V3Dviewport S] S
| V3Dviewport | : the viewport structure |
| S | : the compositor name |
| V3DsetCamera | ( | camera | , |
| fovlength | , | ||
| fovy | , | ||
| nclip | , | ||
| fclip | |||
| ) |
Set a camera settings.
Prototype: fun [SO3_OBJECT F F F F] SO3_OBJECT
| SO3_OBJECT | : the camera object |
| F | : FOV length |
| F | : FOVy |
| F | : near clip distance |
| F | : far clip distance |
| V3DgetDefaultCamera | ( | sessionstr | ) |
Get the current default camera.
Prototype: fun [V3Dsession] SO3_OBJECT
| V3Dsession | : the 3d scene structure |
| V3DsetDefaultCamera | ( | sessionstr | , |
| camera | |||
| ) |
Set the current default camera.
Prototype: fun [V3Dsession SO3_OBJECT] I
| V3Dsession | : the 3d scene structure |
| SO3_OBJECT | : the new default camera |
| V3DremoveDefaultCamera | ( | sessionstr | , |
| camera | |||
| ) |
Remove the default camera.
Prototype: fun [V3Dsession SO3_OBJECT] I
| V3Dsession | : the 3d scene structure |
| SO3_OBJECT | : the default camera |
| V3DdelCamera | ( | sessionstr | , |
| camera | |||
| ) |
Remove a camera.
Prototype: fun [V3Dsession SO3_OBJECT] I
| V3Dsession | : the 3d scene structure |
| SO3_OBJECT | : the camera |
| V3DaddCamera | ( | sessionstr | , |
| name | |||
| ) |
Add a camera.
Prototype: fun [V3Dsession S] SO3_OBJECT
| V3Dsession | : the 3d scene structure |
| S | : the camera name (the name must be unique) |
| V3DaddParticleSystem | ( | sessionstr | , |
| name | , | ||
| template | |||
| ) |
Add a particle system.
Prototype: fun [V3Dsession S S] SO3_OBJECT
| V3Dsession | : the 3d scene structure |
| S | : the particle system name (the name must be unique) |
| S | : the particle template name |
| V3DsetLight | ( | light | , |
| type | , | ||
| dcolor | , | ||
| scolor | , | ||
| range | , | ||
| const | , | ||
| linear | , | ||
| quadr | |||
| ) |
Set a light parameters.
Prototype: fun [SO3_OBJECT I I I F F F F] SO3_OBJECT
| SO3_OBJECT | : the light object |
| I | : the light type SO3_POINT_LIGHT, SO3_DIRECTIONAL_LIGHT, SO3_SPOT_LIGHT or SO3_RECT_LIGHT |
| I | : diffuse color |
| I | : specular color |
| F | : light range |
| F | : constant attenuation |
| F | : linear attenuation |
| F | : quadratic attenuation |
| V3DenableLight | ( | light | , |
| state | |||
| ) |
Enable or Disable a light.
Prototype: fun [SO3_OBJECT I] I
| SO3_OBJECT | : the light object |
| I | : 1 to enable the light, 0 to disable |
| V3DaddLight | ( | sessionstr | , |
| name | , | ||
| father | , | ||
| type | , | ||
| dcolor | , | ||
| scolor | , | ||
| range | , | ||
| const | , | ||
| linear | , | ||
| quadr | |||
| ) |
Add a light.
Prototype: fun [V3Dsession S SO3_OBJECT I I I F F F F] SO3_OBJECT
| V3Dsession | : the 3d scene structure |
| S | : the light name (must be unique) |
| SO3_OBJECT | : the parent node |
| I | : the light type SO3_POINT_LIGHT, SO3_DIRECTIONAL_LIGHT, SO3_SPOT_LIGHT or SO3_RECT_LIGHT |
| I | : diffuse color |
| I | : specular color |
| F | : light range |
| F | : constant attenuation |
| F | : linear attenuation |
| F | : quadratic attenuation |
| V3DaddResource | ( | sessionstr | , |
| ressource | , | ||
| group | , | ||
| type | |||
| ) |
Add a resource to a scene.
Prototype: fun [V3Dsession S S I] I
| V3Dsession | : the 3d scene structure |
| S | : the resource path |
| S | : the resource group name |
| I | : the resource type SO3_RESOURCE_MESH, SO3_RESOURCE_MATERIAL, SO3_RESOURCE_TEXTURE, SO3_RESOURCE_SKELETON, SO3_RESOURCE_GPUPROGRAM, SO3_RESOURCE_HIGHLEVELGPUPROGRAM or SO3_RESOURCE_PARTICLE_SYSTEM |
| V3DaddMesh | ( | sessionstr | , |
| file | , | ||
| name | , | ||
| idx | , | ||
| group | , | ||
| father | |||
| ) |
Add a mesh to a scene.
Prototype: fun [V3Dsession S S I S SO3_OBJECT] SO3_OBJECT
| V3Dsession | : the 3d scene structure |
| S | : the mesh path |
| S | : the mesh name |
| I | : the mesh index (must be unique) |
| S | : the resource group name |
| SO3_OBJECT | : the parent node |
| V3DloadMesh | ( | sessionstr | , |
| file | , | ||
| name | , | ||
| idx | , | ||
| group | , | ||
| father | , | ||
| cbfun | |||
| ) |
Add a mesh to a scene, the mesh is loaded in a background thread.
Prototype: fun [V3Dsession S S I S SO3_OBJECT fun [V3Dsession SO3_OBJECT] I] SO3_OBJECT
| V3Dsession | : the 3d scene structure |
| S | : the mesh path |
| S | : the mesh name |
| I | : the mesh index (must be unique) |
| S | : the resource group name |
| SO3_OBJECT | : the parent node |
| fun | [V3Dsession SO3_OBJECT] I : loaded callback |
| V3DaddShell | ( | sessionstr | , |
| name | , | ||
| idx | , | ||
| father | , | ||
| pos | , | ||
| ang | |||
| ) |
Add a shell node to a scene.
Prototype: fun [V3Dsession S I SO3_OBJECT [F F F] [F F F F]] SO3_OBJECT
| V3Dsession | : the 3d scene structure |
| S | : the shell name |
| I | : the shell index (must be unique) |
| SO3_OBJECT | : the parent node, this can be nil |
| [F | F F] : the shell position, this can be nil |
| [F | F F F] : the shell orientation (quaternion), this can be nil |
| V3DsetAmbientLight | ( | sessionstr | , |
| color | |||
| ) |
Set the scene ambient color.
Prototype: fun [V3Dsession I] I
| V3Dsession | : the 3d scene structure |
| I | : the new ambient color |
| V3DgetAmbientLight | ( | sessionstr | ) |
Get the scene ambient color.
Prototype: fun [V3Dsession] I
| V3Dsession | : the 3d scene structure |
| V3DgetAnimationByName | ( | sessionstr | , |
| name | |||
| ) |
Get an animation by it's name.
Prototype: fun [V3Dsession S] V3Danim
| V3Dsession | : the 3d scene structure |
| S | : the animation name |
| V3DgetAnimationByAnim | ( | sessionstr | , |
| anim | |||
| ) |
Get an animation structure from the SO3_ANIM object.
Prototype: fun [V3Dsession SO3_ANIM] V3Danim
| V3Dsession | : the 3d scene structure |
| SO3_ANIM | : SO3 animation object |
| V3DaddAnimation | ( | sessionstr | , |
| obj | , | ||
| id | , | ||
| basename | , | ||
| name | , | ||
| length | , | ||
| speed | , | ||
| weight | , | ||
| state | , | ||
| loop | , | ||
| transmode | , | ||
| rotmode | |||
| ) |
Add an animation to the scene.
Prototype: fun [V3Dsession SO3_OBJECT I S S F F F I I I I] V3Danim
| V3Dsession | : the 3d scene structure |
| SO3_OBJECT | : the object containing the animation |
| I | : index (must be unique) |
| S | : base name |
| S | : name |
| F | : length |
| F | : speed |
| F | : weight |
| I | : initial state |
| I | : 1 for loop mode, 0 otherwise |
| I | : translation interpolation mode SO3_IM_LINEAR or SO3_IM_SPLINE |
| I | : rotation interpolation mode SO3_RIM_LINEAR or SO3_RIM_SPHERICAL |
| V3DaddSequenceAnimation | ( | sessionstr | , |
| id | , | ||
| basename | , | ||
| name | , | ||
| speed | , | ||
| weight | , | ||
| state | , | ||
| loop | |||
| ) |
Add a sequence animation to the scene.
Prototype: fun [V3Dsession I S S F F I I] V3Danim
| V3Dsession | : the 3d scene structure |
| I | : index (must be unique) |
| S | : base name |
| S | : name |
| F | : speed |
| F | : weight |
| I | : initial state |
| I | : 1 for loop mode, 0 otherwise |
| V3DgetNbAnimationTracks | ( | animstr | ) |
| V3DgetNbAnimationTrackKeys | ( | animstr | , |
| trackidx | |||
| ) |
| V3DaddSequenceAnimationTrack | ( | animstr | ) |
| V3DdelSequenceAnimationTrack | ( | animstr | , |
| trackidx | |||
| ) |
| V3DmoveSequenceAnimationKey | ( | animstr | , |
| trackidx | , | ||
| keyidx | , | ||
| newidx | |||
| ) |
| V3DgetSequenceAnimationKey | ( | animstr | , |
| trackidx | , | ||
| keyidx | |||
| ) |
| V3DgetSequenceAnimationKeyInfos | ( | animstr | , |
| trackidx | , | ||
| keyidx | |||
| ) |
Get a sequence animation track key infos.
Prototype: fun [V3Danim I I] [V3Danim F F F F]
| V3Danim | : the animation structure |
| I | : index of the animation track |
| I | : index of key |
| V3DsetSequenceAnimationKeyInfos | ( | animstr | , |
| trackidx | , | ||
| keyidx | , | ||
| length | , | ||
| trans | , | ||
| decal | |||
| ) |
| V3DaddSequenceAnimationKey | ( | animstr | , |
| trackidx | , | ||
| keyanimstr | , | ||
| length | , | ||
| transition | , | ||
| decal | |||
| ) |
| V3DdelSequenceAnimationKey | ( | animstr | , |
| trackidx | , | ||
| keyidx | |||
| ) |
| V3DaddMorphAnimation | ( | sessionstr | , |
| anim | , | ||
| obj | , | ||
| id | , | ||
| basename | , | ||
| name | , | ||
| speed | , | ||
| weight | , | ||
| state | , | ||
| loop | |||
| ) |
Add a morph animation to the scene.
Prototype: fun [V3Dsession SO3_ANIM SO3_OBJECT I S S F F I I] V3Danim
| V3Dsession | : the 3d scene structure |
| SO3_ANIM | : the SO3 animation object |
| SO3_OBJECT | : the 3d object |
| I | : index (must be unique) |
| S | : base name |
| S | : name |
| F | : speed |
| F | : weight |
| I | : initial state |
| I | : 1 for loop mode, 0 otherwise |
| V3DdelAnimation | ( | sessionstr | , |
| animstr | |||
| ) |
Delete an animation.
Prototype: fun [V3Dsession V3Danim] I
| V3Dsession | : the 3d scene structure |
| V3Danim | : the animation structure to delete |
| V3DaddAnimationKey | ( | animstr | , |
| pos | , | ||
| quat | , | ||
| scale | , | ||
| ftime | |||
| ) |
| V3DdelAnimationTrack | ( | sessionstr | , |
| animstr | , | ||
| trackidx | |||
| ) |
Delete an animation track.
Prototype: fun [V3Dsession V3Danim I] I
| V3Dsession | : the 3d scene structure |
| V3Danim | : the animation structure |
| I | : track index to delete |
| V3DsetAnimationWeight | ( | animstr | , |
| weight | |||
| ) |
| V3DgetAnimationWeight | ( | animstr | ) |
| V3DsetAnimationState | ( | animstr | , |
| state | |||
| ) |
| V3DsetAnimationLoop | ( | animstr | , |
| loop | |||
| ) |
| V3DsetAnimationSpeed | ( | animstr | , |
| speed | |||
| ) |
| V3DsetAnimationInterpolationMode | ( | animstr | , |
| mode | |||
| ) |
| V3DsetAnimationRotInterpolationMode | ( | animstr | , |
| mode | |||
| ) |
| V3DgetAnimationState | ( | animstr | ) |
| V3DgetAnimationLoop | ( | animstr | ) |
| V3DgetAnimationSpeed | ( | animstr | ) |
| V3DgetAnimationType | ( | animstr | ) |
| V3DsetAnimationPosition | ( | animstr | , |
| pos | |||
| ) |
| V3DgetAnimationPosition | ( | animstr | ) |
| V3DgetAnimationLength | ( | animstr | ) |
| V3DgetAnimationEnable | ( | animstr | ) |
| V3DresetAnimation | ( | animstr | ) |
| V3DresetAnimations | ( | sessionstr | ) |
Reset all scene animations.
Prototype: fun [V3Dsession] I
| V3Dsession | : the 3d scene structure |
| V3DpauseAnimation | ( | animstr | ) |
| V3DplayAnimation | ( | animstr | ) |
| V3DplayAnimationFromPos | ( | animstr | , |
| startpos | |||
| ) |
| V3DstopAnimation | ( | animstr | ) |
| V3DenableAnimation | ( | animstr | , |
| state | |||
| ) |
| V3DanimationSetSkipFrame | ( | animstr | , |
| state | |||
| ) |
| V3DanimationGetSkipFrame | ( | animstr | ) |
| V3DcrSession | ( | viewstr | , |
| name | |||
| ) |
Create a 3d scene structure.
Prototype: fun [V3Dview, S] V3Dsession
| V3Dview | : the 3d view structure |
| S | : the scene name (must be unique) |
| V3DresetSession | ( | sessionstr | ) |
Reset a 3d scene.
Prototype: fun [V3Dsession] I
| V3Dsession | : the 3d scene structure |
| V3DviewSetFocus | ( | viewstr | ) |
| V3DshowCursor | ( | viewstr | , |
| state | |||
| ) |
| V3DgetCursorVisible | ( | viewstr | ) |
| V3DgetCursor | ( | viewstr | ) |
| V3DgetCursorTrans | ( | viewstr | ) |
| V3DgetCursorDirection | ( | viewstr | ) |
| V3DisClicked | ( | viewstr | ) |
| V3DisMoveClicked | ( | viewstr | ) |
| V3DenableKeyboard | ( | viewstr | , |
| mode | |||
| ) |
| V3DenableMouse | ( | viewstr | , |
| mode | |||
| ) |
| V3DsetCursor | ( | viewstr | , |
| cursor | |||
| ) |
| V3DdsView | ( | viewstr | ) |
| V3DgetViewPosSize | ( | viewstr | ) |
| V3DgetViewPos | ( | viewstr | ) |
| V3DgetViewSize | ( | viewstr | ) |
| V3DgetFullScreenState | ( | viewstr | ) |
| V3DcenterMouseCursor | ( | viewstr | ) |
| V3DsetMousePosition | ( | viewstr | , |
| x | , | ||
| y | |||
| ) |
| V3DgetVrPointerState | ( | viewstr | ) |
Show or Hide the 3d view infos
Prototype: fun [V3Dview I] I
| V3Dview | : the 3d view structure |
| I | : 1 to show, 0 to hide |
Set a 3D view to window mode
Prototype: fun [V3Dview] I
| V3Dview | : the 3d view structure |
Set a 3D view to fullscreen
Prototype: fun [V3Dview I I] I
| V3Dview | : the 3d view structure |
| I | : width |
| I | : height |
Switch a 3D view fullscreen state
Prototype: fun [V3Dview I I] I
| V3Dview | : the 3d view structure |
| I | : width |
| I | : height |
Switch a 3D view VR mode state
Prototype: fun [V3Dview] I
| V3Dview | : the 3d view structure |
Set a 3D view VR mode state
Prototype: fun [V3Dview I] I
| V3Dview | : the 3d view structure |
| I | : the new state |
Get a 3D view VR mode state
Prototype: fun [V3Dview] I
| V3Dview | : the 3d view structure |
Send the callback on camera teleport
Prototype: fun [V3Dview SO3ObjectI] I
| V3Dview | : the 3d view structure |
| SO3Object | : the camera |
Create a 3d view
Prototype: fun [Chn ObjWin I I I I fun [V3Dview] I fun [V3Dview] I I] V3Dview
| Chn | : the scol channel |
| ObjWin | : the parent scol window |
| I | : X position |
| I | : Y position |
| I | : width |
| I | : height |
| fun | [V3Dview] I : init callback |
| fun | [V3Dview] I : destroy callback |
| I | : 1 to create a default scene, 0 otherwise |