xj3d's DIYBrowser loads and displays my vrml97 file correctly. Colors seem to be handled correctly too. Hurrah!
BUT.. When I use the following code to load the file myself, colors are messed up. import org.web3d.j3d.loaders.VRML97Loader; Scene scene = new VRML97Loader().load( path ); BranchGroup branchGroup = scene.getSceneGroup(); sceneRoot.addChild( branchGroup ); //yields monotone gray AmbientLight al = new AmbientLight(); al.setInfluencingBounds( new BoundingSphere( new Point3d(), Double.POSITIVE_INFINITY ) ); sceneRoot.addChild( al ); //yields psychedelic (wrong) colors DirectionalLight dl = new DirectionalLight(); dl.setInfluencingBounds( new BoundingSphere( new Point3d(), Double.POSITIVE_INFINITY ) ); sceneRoot.addChild( dl ); What am I missing? Raffi =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
