Hi all,
 
Using immediate mode rendering I get a null pointer exception from setModelTransform() of a GraphicsContext3D. Specifically line # 874.  This exception only occurs if I create the virtual universe myself (ie. not using SimpleUniverse)
 
Below I have how I am creating the Universe.  Does anyone have any ideas or is the source code for Java3d available so I can atleast see the line that is causing the exception.  The other kinda weird this is that I can draw on the GraphicsContext3D I just can't set the transform matrix.
 
snip-------------------------------------------------------------------------------------------------------------------------
canvas = new Canvas3D(null);
 canvas.setDoubleBufferEnable(true);
 canvas.stopRenderer();
 add("Center",canvas);
 
 universe = new VirtualUniverse();
 view  = new View();
 view.setPhysicalBody(new PhysicalBody());
 view.setPhysicalEnvironment(new PhysicalEnvironment());
 ViewPlatform vp = new ViewPlatform();
 view.attachViewPlatform(vp);
 view.addCanvas3D(canvas);
 view.setCompatibilityModeEnable(true);
 Locale locale = new Locale(universe);
 gc = canvas.getGraphicsContext3D();
 
-------------------------------------------------------------------------------------------------------------------------------------
thanks in Advance
Demetrius

Reply via email to