Hello,
I am new to Java3D. In my appli., I create volumes as QuadArrays. I am coloring them and put them by order
ones on the others. This works as expected. My problem is when I am trying to use some kind of lightingto give them more natural impression. I tried to use the directional light as in the examples deliveredin Java3D, without any success ...?I tried som thing like the following but with changing values many times :BoundingSphere bounds = new BoundingSphere();bounds.setRadius(1000); DirectionalLight lightD = new DirectionalLight(); lightD.setInfluencingBounds(bounds); objRoot.addChild(lightD); Background background = new Background(); background.setColor(1.0f, 1.0f, 1.0f); background.setApplicationBounds(bounds); objRoot.addChild(background);the radius is taken as 1000 because of my coordinates which are of order :
600, 360, ..etc.Thanx for any help.
Another question :
I am rebdering the geometry with either POLYGON_FILL or POLYGON_LINE :PolygonAttributes polygonAttributes = new PolygonAttributes ();
polygonAttributes.setPolygonMode(PolygonAttributes.POLYGON_FILL);
polygonAttributes.setCullFace(PolygonAttributes.CULL_NONE);Is it possible to fill the geometry and to show lines in the same time ..?
Thanx
Firas
