All,
Forewarning, I am a bit of a newbie in Java3D (I did my senior project with it about 4 years ago and haven't touched it since until about a week ago).
The Task:
My company has a 3D Viewer that I am tasked to port into a web environment. I have been able to get some demos going in Java3D fairly easily in my Linux environment and think it would be a sufficient tool to use in conjunction with applets.
We have an XML configuration file that represents a cluster of computers (our company does linux cluster super computing). I would like to transform this XML configuration file into VRML of the virtual representation of it...then load it into my scene graph and render in an applet, yada, yada.
The Problem:
I've been very successful at getting the demos going using the X3D Loader. However, they all render using BACK_CULLing and for my purposes I need to rotate the objects and look at all aspects of them. I can't find a culling parameter on the Material element or anywhere else. Am I just missing something obvious?
thanks in advance,
Setting the solid flag to FALSE will make us turn on two sided lighting. This is only available on IndexedFaceSets in VRML. X3D allows this for all geometry.
BTW, you might want to look at using the XML encoding of X3D. Then you can easily convert the XML document to X3D through XSLT. There is a program in the examples/browser directory called XSLTViewer. It takes an XML document, and XSLT->X3D document and then renders the result. We've had a fair bit of success getting content into X3D via this route.
Here is the particular code:
/** * Specify whether an object is solid. * The default is true. This will determine if we do backface culling * and flip backface normals. * Can only be set during setup * * @param newSolid Whether the object is solid */ public void setSolid(boolean newSolid) { if (newSolid == false) { implPA.setCullFace(PolygonAttributes.CULL_NONE); implPA.setBackFaceNormalFlip(true); } else { implPA.setCullFace(PolygonAttributes.CULL_BACK); implPA.setBackFaceNormalFlip(false); }
j3dImplNode.setPolygonAttributes(implPA); } -- Alan Hudson President: Yumetech, Inc. http://www.yumetech.com/ Web3D Open Source Chair http://www.web3d.org/TaskGroups/source/
=========================================================================== 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".