Package nu3a.scene

Examples of nu3a.scene.N3Camera


    camera1Trans = new N3TransformationNode(scene, "camera1Trans");
    camera1Trans.translate(new N3Vector3D(0.0f, 2.0f, 3.0f));
    camera1Trans.update();

    N3Camera camera1 = new N3Camera(new Rectangle(0, 0, c.getWidth(), c.getHeight()), 60.0f, c.getWidth() / c.getHeight(), 0.1f, 100.0f, scene, "camera1");

    light01Trans = new N3TransformationNode(scene, "light01Trans");
    light01Trans.translate(new N3Vector3D(0, 5.0f, 0.0f));
    light01Trans.update();

    light01 = new N3Light(N3LightData.createSpotLightData(new N3ColorRGBA(0, 0, 0), new N3ColorRGBA(1, 1, 1), new N3ColorRGBA(1, 1, 1), new N3Vector3D(0, -1.0f, 0), spotAngle), scene, "light01");

    root.addChild(grpScene);
    root.addChild(camera1Trans);
    root.addChild(light01Trans);
    grpScene.addChild(sueloRot);
    root.addChild(cubeTrans);
    grpScene.addChild(sphereTrans);
    sphereTrans.addChild(sphere);
    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());
    scene.addActiveLight(light01);

    // Elegimos que objetos colisionan
View Full Code Here

TOP

Related Classes of nu3a.scene.N3Camera

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.