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 Link icon

    • modelInstance Link icon

      public IntModelInstance modelInstance
    • animationController Link icon

      public IntAnimationController animationController
    • lights Link icon

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

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

      public final AnimationsPlayer animations
  • Constructor Details Link icon

    • Scene Link icon

      public Scene(SceneModel sceneModel)
    • Scene Link icon

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

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

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

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

      public Scene(IntModel model, boolean animated)
  • Method Details Link icon

    • createCamera Link icon

      public com.badlogic.gdx.graphics.Camera createCamera(com.badlogic.gdx.graphics.Camera from)
    • createLight Link icon

      protected com.badlogic.gdx.graphics.g3d.environment.BaseLight createLight(com.badlogic.gdx.graphics.g3d.environment.BaseLight from)
    • update Link icon

      public void update(com.badlogic.gdx.graphics.Camera camera, float delta)
      Specified by:
      update in interface Updatable
    • getCamera Link icon

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

      public com.badlogic.gdx.graphics.g3d.environment.BaseLight getLight(String name)
    • getDirectionalLightCount Link icon

      public int getDirectionalLightCount()
    • getRenderables Link icon

      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