Package nu3a.scene

Examples of nu3a.scene.N3TransformationNode.addChild()


        sueloTrans = new N3TransformationNode(scene, "sueloTrans" + i + "-" + j);
        sueloTrans.translate(new N3Vector3D(i * 0.4f, j * 0.4f, 0));
        sueloTrans.update();
        suelo = new N3VisualMesh(scene, g, "suelo" + i + "-" + j);
        suelo.setMaterial(sm);
        sueloTrans.addChild(suelo);
        sueloRot.addChild(sueloTrans);
      }

    cubeTrans = new N3TransformationNode(scene, "cubeTrans");
    cubeTrans.translate(new N3Vector3D(0, 0.2f, 1.0f));
View Full Code Here


    cubeTrans.addChild(cube);
    camera1Trans.addChild(camera1);
    light01Trans.addChild(light01);

    // El otro cubo
    cubeTrans2.addChild(cube2);
    grpScene.addChild(cubeTrans2);

    camera1.setTarget(cube, new N3Vector3D(0, 1.0f, 0));
    scene.setActiveCamera(camera1);
    scene.setActiveLightCount(render.getMaxLights());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.