Scene

Sub AddSceneSkyBox(img_top, img_bottom, img_left, img_right, img_front, img_back)

Generates a skybox based on the provided images.


Sub AddSceneSkyDome(img)

Adds a sky dome to the scene


Sub AddSceneSkyDomeEx(img, horiRes, vertRes, txPercentage, spherePercentage, radius)

Adds a sky dome to the scene.

  • img - The texture for the sky dome
  • horiRes - Number of vertices of a horizontal layer of the sphere.
  • vertRes - Number of vertices of a vertical layer of the sphere.
  • txPercentage - How much of the height of the texture is used. Should be between 0 and 1.
  • spherePercentage - How much of the sphere is drawn. Value should be between 0 and 2, where 1 is an exact half-sphere and 2 is full sphere.
  • radius - The Radius of the sphere.

Sub RemoveSceneSky()

Removes the sky from the current 3D scene


Sub SetWorld3DMaxSubSteps(steps)

Sets the max sub steps to break the simulation up into.

maxSubSteps - The maximum number of substeps to perform if the time step is larger than the fixedTimeStep. When simulating in real-time, if a frame takes longer than expected (e.g., a frame is delayed), you can break the simulation into several smaller substeps to ensure the simulation is accurate.

See also

SetWorld3DMaxTimeStep()


Sub SetWorld3DTimeStep(ts)

Sets the fixed time step for the physics simulation.

fixedTimeStep - The fixed time step size, which is the interval at which the physics simulation runs internally. It is often set to 1/60th of a second (0.0166667 seconds) by default, meaning the physics engine updates 60 times per second.


Function GetWorld3DMaxSubSteps()

Returns the maximum substeps in the 3d physics time step.


Function GetWorld3DTimeStep()

Returns the timestep of the 3d physics simulation.


Sub SetSceneFog(color, fog_type, start_val, end_val, density, pixelFog, rangeFog)

Sub GetSceneFog(ByRef color, ByRef fog_type, ByRef start_val, ByRef end_val, ByRef density, ByRef pixelFog, ByRef rangeFog)

Sub ClearScene()

Sub SetSceneShadowColor(color)

Sets the shadow color of the scene


Function GetSceneShadowColor()

Returns the shadow color of the scene


Sub SetSceneAmbientColor(color)

Sets the ambient light color of the scene


Function GetSceneAmbientColor()

Returns the ambient light color of the scene


Sub Pipeline_Begin()

Begins a custom rendering process.


Sub Pipeline_End()

Ends a custom rendering process.


Sub Pipeline_Render()

Render the active canvas.

NOTE: Must be used between Pipeline_Begin() and Pipeline_End().


Sub SetPhysics3D(flag)

Enables or disables the physics engine.

NOTE: While the physics engine is disabled, actor collisions won't be able to be checked.

See also

GetPhysics3D()


Function GetPhysics3D(flag)

Return if the physics engine is enabled.

NOTE: While the physics engine is disabled, actor collisions won't be able to be checked.

See also

SetPhysics3D()