Hi,
It is not a PAT children problem...
I'll have a look one day on reproducing the problem... but for now it is not
a priority.
Thanks for your help, and thanks a lot to everyone here, I've been very
"intrusive" this week, sorry for that.
Regards,
Vincent.
2008/12/5 Jean-Sébastien Guay <[EMAIL PROTECTED]>
> Hi Vincent,
>
> When I set the PAT as Tracked node... is PAT is rotated and translated...
>> camera do not follow it...
>>
>
> Does your PAT have geometry under it? Or is it just a PAT in space without
> any children?
>
> We had a problem like that before, where if a transform (for us it was an
> osgSim::DOFTransform) had no geometry under it, it could not be followed by
> a NodeTrackerManipulator. The reason is that the NTM uses the node's bounds
> to calculate where it should track, and a Transform without anything under
> it has invalid bounds (a default-constructed bounding sphere with radius =
> -1).
>
> What we did to fix it is to add a ComputeBoundingSphereCallback to the
> transform, which returns a bounding sphere of center =
> (transform.translation) and radius = 0.1. That makes the NTM behave
> properly.
>
> Not sure if that's your problem. If it isn't then I don't know, your code
> looks good. If you send me a complete example (perhaps a modified
> osgviewer.cpp with your code) I could have a look.
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay [EMAIL PROTECTED]
> http://www.cm-labs.com/
> http://whitestar02.webhop.org/
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org