Hi John,

On 23/06/10 23:26 , John Galt wrote:
> I used node1->setName("Specific Name"); for all the 3 nodes and I am looking 
> for the
> specific name to be returned.
> 
> However, all I get is empty strings. 
> My node1 = readFromFile("dumptruckosg");
> node2 = readFromFile("lz.osg");
> node3 = readFromFile("MyOwnAC3dModel.ac");
> 
> The code returns only "dumptruck.osg" as the NodeName when I intersect with
> dumptruck.osg but it returns an empty string when I intersect with lz.osg and
> myownac3dmodel.ac. I am positive that the intersections are occuring because 
> the
> intersection coordinates are perfectly coming through.

Are you checking the entire node path for the name, or maybe only the last node?

Keep in mind that you get the entire node path, but the name is only set for 
one of them.
You'll probably get something like this:

root -> node1 (name="Specific Name") -> node -> ... -> Geode

So the one you're looking for is neither the first nor the last node in the 
path.

HTH,
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to