I am not an expert in VRML, but perhaps some pointers: 1-Once a file (like VRML) is loaded, it becomes a scene graph. 2-To my knowledge there is no way to have Java3d give you a bounding for a whole scenegraph. 3-Good place to dig for stuff is http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_2_API/j3dapi/ index.html 4-You can get the bounds for any node by calling node.getBounds() 5-You could recursivly search through the nodes in the scene graph and union the bounds together to get master bounds for whole graph. 6-I think setNominalViewingTransform, or something like that can set a view which is optimal for your scene graph. 7-To pick objects use PickRay maybe? Once you have a shape reference you can get its bounds and report a coordinate. Hope all that helps more than it hurts. I have not done what you want before so I am guessing here. Dave Yazel Cosm Development Team > ---------- > From: david Xia[SMTP:[EMAIL PROTECTED]] > Reply To: Discussion list for Java 3D API > Sent: Thursday, October 26, 2000 3:22 PM > To: [EMAIL PROTECTED] > Subject: [JAVA3D] query coordinates about VRML from Java3D question > again > > Hi,all: > > I posted this question before but no one answered it yet, I really want > to know the answer, so I post it again to hope anyone can help me about > it. > > The question is: When I load the VRML file, how can I get > the bounding box of the object in the VRML file? I mean if I can query the > minimum X, maxium X, minimum Y, minimum Y,minimum Z, maximum Z value from > Java3D about the VRML file, is there any method from Scene(or other class) > to query such parameters? something like : > Scene s=loader.load("myfile.wrl"); > s.getMinimumX();? > s.getMaximumY(); etc? > > I wonder if there is an automatic way of querying the bounding box of the > object in VRML file without opening to see it, if there are some files > from > network URL,(you may not open the file to see it in advance to know its > bounding box), which are loaded into Java3D, I want to query the bounding > box from Java3D program so that I can transform it to other positions such > as the origin or elsewhere I wish it to be. > > The second question related to this is that: > > After I load the VRML objects in the scene, how can I know any point's 3D > coordinate? suppose I use mouse to click any point in an object, I want > the > coordinate of that point shown on the screen, showing its X,Y,Z > coordinate. > How can I get this parameters? > > Thanks for any input! > > best wishes, > David > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > ========================================================================== > = > 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". > =========================================================================== 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".