Building a simple universe
SimpleUniverse example code
- Create a Canvas3D with a default configuration
(automatically creating a Screen3D)
Canvas3D myCanvas = new Canvas3D( null );
- Create a SimpleUniverse and give it the Canvas3D
SimpleUniverse myUniverse = new SimpleUniverse( myCanvas );
- And attach your content branch
myUniverse.addBranchGraph( myBranch );