应用和场景绘制
How do I…? | Use this JME 3 Feature! | Learn more here… |
---|
启动预先设定的游戏 | com.jme3.app.SimpleApplication | Hello SimpleApplication |
---|
使物体显现在场景 | Attach nodes and geometries to the rootNode: rootNode.attachChild(geo); com.jme3.scene.Node, com.jme3.scene.Geometry node.setCullHint(CullHint.Never); | The Scene Graph Hello Asset Hello Node |
---|
使物体在场景中消失 | Detach nodes and geometries from the rootNode: rootNode.detachChild(geo); node.setCullHint(CullHint.Always); | The Scene Graph Hello Asset Hello Node |
---|
使用第三人称视角(默认cam) | Use default camera cam com.jme3.renderer.Camera | ChaseCam WIP |
---|
使用第一人称视角 | Use camera flyCam com.jme3.input.FlyByCamera | Hello Collision |
---|
摄像头速度增量 | flyCam.setMoveSpeed(50f); | – |
---|
只绘制场景大纲 | Use a wireframe material, e.g. for debugging. | Debugging |
---|
改变背景色 | Call viewPort.setBackgroundColor(ColorRGBA.Blue); | N/A |
---|
定义一个应用类 | Extend com.jme3.app.SimpleApplication (or com.jme3.app.Application) and set Application Settings | SimpleApplication AppSettings |
---|
关闭logger输出 | Logger.getLogger("").setLevel(Level.SEVERE); java.util.logging.* | Logging |
---|
|
转载于:https://www.cnblogs.com/suhuan/archive/2011/08/12/2135936.html