June 2013
Beginner
352 pages
9h 5m
English
The following code sample is again based on the familiar BasicGame template that creates a blue cube.
Main.java and name the class WireframeShapes.java. Remember to also refactor the first line of the main() method to: WireframeShapes app = new WireframeShapes();simpleInitApp() method, after the creation of the material mat, change the following material property: mat.getAdditionalRenderState().setWireframe(true);The WireframeShapes code sample now looks like the following code:
public class WireframeShapes extends SimpleApplication { @Override public void simpleInitApp() { Box mesh = new Box(Vector3f.ZERO, 1, 1, 1); // create box mesh Geometry geom = new Geometry("Box", mesh); Material ...Read now
Unlock full access