Re: Objects fall outside simpleuniverse
Posted by
philjord on
Jul 27, 2018; 7:44am
URL: https://forum.jogamp.org/Objects-fall-outside-simpleuniverse-tp4039062p4039074.html
A-ha!
I have finally seen the light.
The problem is that the default Sphere constructor creates a Shape3D that has an Appearance that has lighting turned on (the obvious default case). So you must have some light in your scene in order to see the sphere.
Adding just the sphere I get a black shape that is nearly impossible to see, however adding this code
PointLight pl = new PointLight();
pl.setInfluencingBounds(new BoundingSphere(new Point3d(0,0,0),Double.POSITIVE_INFINITY));
objRoot.addChild(pl);
somewhere is createSceneGraph() gives me this image