>Ralf Bednarz wrote: > >> i need to change the bounding object of a vrml file i loaded in my scene. >> originally it is a BoundingSphere, but i need a BoundingBox that fits as good as >> possible. > >That, unfortunately is a function of the way Java3D works. Even if you >provide a bound _box_ shape, when you query it back, you always get a >sphere.
but when i set a bounding box for the vrml file and call the getBounds() method, i get the infofrmation i set for the bounding box, and the collision behave as expected ( like it is a bounding box). now i want to set the width and height to the proportions of the car. i don't get the exact points where i have to place the box. > >> i don't want to try the exact position of that box. it takes me a long time (i >> already tried a long time). >> is there a posiblity to visualize the bounding box to position it exactly or is >> there another way to manage this problem? > >In the Xj3D Java3D renderer we are not keeping that information because >we let Java3D handle it all for us (it auto-computes the bounds). We do, >however, keep it for the OpenGL renderers, but then you can't use the >loader interface... > >-- >Justin Couch http://www.vlc.com.au/~justin/ >Java Architect & Bit Twiddler http://www.yumetech.com/ >Author, Java 3D FAQ Maintainer http://www.j3d.org/ >------------------------------------------------------------------- >"Humanism is dead. Animals think, feel; so do machines now. >Neither man nor woman is the measure of all things. Every organism >processes data according to its domain, its environment; you, with >all your brains, would be useless in a mouse's universe..." > - Greg Bear, Slant >------------------------------------------------------------------- > >=========================================================================== >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".
