Package com.jme.scene.shape

Examples of com.jme.scene.shape.Torus


    normBuf.put( 0 ).put( 1 ).put( 0 );
    normBuf.put( 0 ).put( 1 ).put( 0 );
    normBuf.put( 0 ).put( 1 ).put( 0 );
    normBuf.put( 0 ).put( 1 ).put( 0 );

    Torus torus = new Torus( "Torus", 50, 50, 10, 20 );
    torus.setLocalTranslation( new Vector3f( 50, -5, 20 ) );
   
    waterEffectRenderPass.setWaterEffectOnSpatial( torus );
    rootNode.attachChild( torus );

    createDebugQuads();
View Full Code Here


  }

  private Node createObjects() {
    Node objects = new Node( "objects" );

    Torus torus = new Torus( "Torus", 50, 50, 10, 20 );
    torus.setLocalTranslation( new Vector3f( 50, -5, 20 ) );
    TextureState ts = display.getRenderer().createTextureState();
    Texture t0 = TextureManager.loadTexture(
        TestSimpleQuadWater.class.getClassLoader().getResource(
            "jmetest/data/images/Monkey.jpg" ),
        Texture.MM_LINEAR_LINEAR,
        Texture.FM_LINEAR );
    Texture t1 = TextureManager.loadTexture(
        TestSimpleQuadWater.class.getClassLoader().getResource(
            "jmetest/data/texture/north.jpg" ),
        Texture.MM_LINEAR_LINEAR,
        Texture.FM_LINEAR );
    t1.setEnvironmentalMapMode( Texture.EM_SPHERE );
    ts.setTexture( t0, 0 );
    ts.setTexture( t1, 1 );
    ts.setEnabled( true );
    torus.setRenderState( ts );
    objects.attachChild( torus );

    ts = display.getRenderer().createTextureState();
    t0 = TextureManager.loadTexture(
        TestSimpleQuadWater.class.getClassLoader().getResource(
View Full Code Here

public class TestVBO extends SimpleGameWithMonitor {
    private Geometry s;
    private Random r = FastMath.rand;
    @Override
    protected void simpleInitGame() {
        s = new Torus("sphere", 10, 10, 5,6);
        rootNode.attachChild(s);

    }
View Full Code Here

        triMesh[0].setModelBound(new BoundingSphere());
        subNode[1] = new Node("boxes");
        triMesh[1] = new Box("box", new Vector3f(0, 0, 0), 5, 5, 5);
        triMesh[1].setModelBound(new BoundingBox());
        subNode[2] = new Node("toruses");
        triMesh[2] = new Torus("torus", 10, 10, 2, 3);
        triMesh[2].setModelBound(new BoundingBox());
        subNode[3] = new Node("cylinders");
        triMesh[3] = new Cylinder("cylinder", 10, 10, 2, 3, true);
        triMesh[3].setModelBound(new BoundingBox());
        subNode[4] = new Node("pyramids");
View Full Code Here

        // nastavim hedou jako pozadi sceny pro lepsi rozliseni pruhlednosti na testovanem boxu
        display.getRenderer().setBackgroundColor(ColorRGBA.brown);

        // vrznu doprostred sceny torus aby byla dobre videt pruhlednost na testovanem boxu
        Torus torus = new Torus("torus", 20, 50, 2, 3);
        rootNode.attachChild(torus);

        // testovany box
        box = new Box("box", Vector3f.ZERO, 10, 10, 10);
View Full Code Here

public class TestVBO extends SimpleGameWithMonitor {
    private Geometry s;
    private Random r = FastMath.rand;
    @Override
    protected void simpleInitGame() {
        s = new Torus("sphere", 10, 10, 5,6);
        rootNode.attachChild(s);

    }
View Full Code Here

        // nastavim hedou jako pozadi sceny pro lepsi rozliseni pruhlednosti na testovanem boxu
        display.getRenderer().setBackgroundColor(ColorRGBA.brown);

        // vrznu doprostred sceny torus aby byla dobre videt pruhlednost na testovanem boxu
        Torus torus = new Torus("torus", 20, 50, 2, 3);
        rootNode.attachChild(torus);

        // testovany box
        box = new Box("box", Vector3f.ZERO, 10, 10, 10);
View Full Code Here

TOP

Related Classes of com.jme.scene.shape.Torus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.