Search in sources :

Example 1 with Dome

use of com.ardor3d.scenegraph.shape.Dome in project energy3d by concord-consortium.

the class SceneManager method createSky.

private Mesh createSky() {
    final Dome sky = new Dome("Sky", 100, 100, SKY_RADIUS);
    sky.setRotation(new Matrix3().fromAngles(Math.PI / 2, 0, 0));
    sky.getSceneHints().setLightCombineMode(LightCombineMode.Off);
    sky.getSceneHints().setAllPickingHints(false);
    sky.updateModelBound();
    sky.updateWorldBound(true);
    final TextureState ts = new TextureState();
    ts.setTexture(TextureManager.load("daysky.jpg", Texture.MinificationFilter.Trilinear, TextureStoreFormat.GuessNoCompressedFormat, true));
    sky.setRenderState(ts);
    return sky;
}
Also used : Dome(com.ardor3d.scenegraph.shape.Dome) TextureState(com.ardor3d.renderer.state.TextureState) Matrix3(com.ardor3d.math.Matrix3)

Aggregations

Matrix3 (com.ardor3d.math.Matrix3)1 TextureState (com.ardor3d.renderer.state.TextureState)1 Dome (com.ardor3d.scenegraph.shape.Dome)1