Hello : I am having a problem with a program I wrote, and thought may be any of you might be able to point out the problem. In the scene graph, I have a switch node. One child of the switch is a shape, whose geometry is an IndexedLineArray, with pologyon attributes line i.e. its a wireframe. The second child has the same gemoetry represented in the form of TriangularArray with ColoringAttributes filled so that it represents a shaded geometry. I am switching between the wireframe and the shaded mode upon the click of a button. I have implemented the functionality to zoom and rotate the object using mouse. Wireframe mode works perfectly fine and the initial shaded mode works fine too. But when I rotate the object in wireframe mode, and then go to the shaded mode, some of the faces are not drawn. Actually all the faces on the front are drawn, but none on the back, and they are not drawn even if I bring the back face to front by rotating. However, when I switch to wireframe mode and come back again to the shaded mode, the front faces are then drawn. In both wireframe and shaded appearances, I have set the "setCullFace" to "CULL_NONE" so that everything is drawn, and have tried both true and false for "setBackFaceNormalFlip", though I need it true eventually. I have also tried regenerating the normals everytime the mode is changed to shaded, but it didnt help. I know its a kind of hard to figure out whats going wrong without actually seeing, but still I wanted to give it a short, may be somebody would know what the problem is. Thanks ===================================================================== To subscribe/unsubscribe, send mail to [EMAIL PROTECTED] Java 3D Home Page: http://java.sun.com/products/java-media/3D/
