Class Scene
java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.scene.Scene
- All Implemented Interfaces:
IntRenderableProvider
,Updatable
-
Field Summary
Modifier and TypeFieldDescriptionfinal AnimationsPlayer
final 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
ConstructorDescriptionScene
(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.Camera
createCamera
(com.badlogic.gdx.graphics.Camera from) protected com.badlogic.gdx.graphics.g3d.environment.BaseLight
createLight
(com.badlogic.gdx.graphics.g3d.environment.BaseLight from) com.badlogic.gdx.graphics.Camera
int
com.badlogic.gdx.graphics.g3d.environment.BaseLight
void
getRenderables
(com.badlogic.gdx.utils.Array<IntRenderable> renderables, com.badlogic.gdx.utils.Pool<IntRenderable> pool) ReturnsIntRenderable
instances.void
update
(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:IntRenderableProvider
ReturnsIntRenderable
instances. Renderables are obtained from the providedPool
and 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:
getRenderables
in interfaceIntRenderableProvider
- Parameters:
renderables
- the output arraypool
- the pool to obtain IntRenderables from
-