Thanks everyone for your advice. I think I am starting to understand how it all fits together.
It turned out to be the child node after the one above that was the Shape3D object so if any
one else is ever trying to load an OBJ file created by Terragen try
1 2 3
| Node grandParentNode = objBranchGroup.getChild(0); Node parentNode = ((com.xith3d.scenegraph.Group) grandParentNode).getChild(0); Node node = ((com.xith3d.scenegraph.Group) parentNode).getChild(0); |
and the 'node' object is the Shape3D
I have another query if anyone has any ideas. I was wondering about the objloader and
the boundaries created in the Shape3D object. For instance when you load an OBJ file
using the loader how does it define what type of bounds are used within the Shape3D.
My question relates to what I am working on at present as after I have the Shape3D object
from the branchgroup I want to get the boundary values from it (hopefully by using a
BoundingBox) however the boundary object returned by the Shape3d is a BoundingSphere.
I'd like to change where this is set if possible and if not try to convert it.