Class Scene
java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.scene.Scene
- All Implemented Interfaces:
IntRenderableProvider,Updatable
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AnimationsPlayerfinal com.badlogic.gdx.utils.ObjectMap<IntNode, com.badlogic.gdx.graphics.Camera> final com.badlogic.gdx.utils.ObjectMap<IntNode, com.badlogic.gdx.graphics.g3d.environment.BaseLight> -
Constructor Summary
ConstructorsConstructorDescriptionScene(SceneModel sceneModel) Scene(SceneModel sceneModel, String... rootNodeIds) Default constructor create animated scene if model contains animations.Scene(IntModelInstance modelInstance) Default constructor create animated scene if model instance contains animations.Scene(IntModelInstance modelInstance, boolean animated) Create a scene -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.CameracreateCamera(com.badlogic.gdx.graphics.Camera from) protected com.badlogic.gdx.graphics.g3d.environment.BaseLightcreateLight(com.badlogic.gdx.graphics.g3d.environment.BaseLight from) com.badlogic.gdx.graphics.Cameraintcom.badlogic.gdx.graphics.g3d.environment.BaseLightvoidgetRenderables(com.badlogic.gdx.utils.Array<IntRenderable> renderables, com.badlogic.gdx.utils.Pool<IntRenderable> pool) ReturnsIntRenderableinstances.voidupdate(com.badlogic.gdx.graphics.Camera camera, float delta)
-
Field Details
-
modelInstance
-
animationController
-
lights
public final com.badlogic.gdx.utils.ObjectMap<IntNode,com.badlogic.gdx.graphics.g3d.environment.BaseLight> lights -
cameras
-
animations
-
-
Constructor Details
-
Scene
-
Scene
-
Scene
Default constructor create animated scene if model contains animations. -
Scene
Default constructor create animated scene if model instance contains animations. -
Scene
Create a scene -
Scene
-
-
Method Details
-
createCamera
public com.badlogic.gdx.graphics.Camera createCamera(com.badlogic.gdx.graphics.Camera from) -
createLight
protected com.badlogic.gdx.graphics.g3d.environment.BaseLight createLight(com.badlogic.gdx.graphics.g3d.environment.BaseLight from) -
update
public void update(com.badlogic.gdx.graphics.Camera camera, float delta) -
getCamera
-
getLight
-
getDirectionalLightCount
public int getDirectionalLightCount() -
getRenderables
public void getRenderables(com.badlogic.gdx.utils.Array<IntRenderable> renderables, com.badlogic.gdx.utils.Pool<IntRenderable> pool) Description copied from interface:IntRenderableProviderReturnsIntRenderableinstances. Renderables are obtained from the providedPooland added to the provided array. The IntRenderables obtained usingPool.obtain()will later be put back into the pool, do not store them internally. The resulting array can be rendered via aIntModelBatch.- Specified by:
getRenderablesin interfaceIntRenderableProvider- Parameters:
renderables- the output arraypool- the pool to obtain IntRenderables from
-