java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.scene.Scene
All Implemented Interfaces:
IntRenderableProvider, Updatable

public class Scene extends Object implements IntRenderableProvider, Updatable
  • Field Details

    • modelInstance

      public IntModelInstance modelInstance
    • animationController

      public IntAnimationController animationController
    • lights

      public final com.badlogic.gdx.utils.ObjectMap<IntNode,com.badlogic.gdx.graphics.g3d.environment.BaseLight> lights
    • cameras

      public final com.badlogic.gdx.utils.ObjectMap<IntNode,com.badlogic.gdx.graphics.Camera> cameras
    • animations

      public final AnimationsPlayer animations
  • Constructor Details

    • Scene

      public Scene(SceneModel sceneModel)
    • Scene

      public Scene(SceneModel sceneModel, String... rootNodeIds)
    • Scene

      public Scene(IntModel model)
      Default constructor create animated scene if model contains animations.
    • Scene

      public Scene(IntModelInstance modelInstance)
      Default constructor create animated scene if model instance contains animations.
    • Scene

      public Scene(IntModelInstance modelInstance, boolean animated)
      Create a scene
    • Scene

      public Scene(IntModel model, boolean animated)
  • 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)
      Specified by:
      update in interface Updatable
    • getCamera

      public com.badlogic.gdx.graphics.Camera getCamera(String name)
    • getLight

      public com.badlogic.gdx.graphics.g3d.environment.BaseLight getLight(String name)
    • 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
      Returns IntRenderable instances. Renderables are obtained from the provided Pool and added to the provided array. The IntRenderables obtained using Pool.obtain() will later be put back into the pool, do not store them internally. The resulting array can be rendered via a IntModelBatch.
      Specified by:
      getRenderables in interface IntRenderableProvider
      Parameters:
      renderables - the output array
      pool - the pool to obtain IntRenderables from