On 29 March 2010 20:36, Adrian Lindberg <osgfo...@tevs.eu> wrote: > I'm doing some large terrain rendering using OSG where I put small > bulletins (billboards) which I wan't to make clickable. For this I found the > osgPicker example and implemented it and all worked well. > > However in an extension of this I moved the camera to a bulletin to supply > additional clickable billboards (ie move inside a clicked house and look in > the drawer inside the house). These additional billboards are relatively > small compared to my world (several kilometers, the small billboard being > about a meter in radius) and my intersection fails 95% of the time. If I > move the camera out and make the larger (so that I can see them from a > distance) everything works again. No change in code or scenegraph structure > except the position set by the camera manipulator. > > I'm wondering if there are any known issues with intersection tests since I > presume these are done in single precision. Does it do double calculations > for MatrixTransforms (I tried putting a matrix transform having local > coordinates for the smaller objects as well with no luck). > > Any other ideas as how to tackle this? > > Cheers, > Adrian > > Yeah, there (are/were) some problems with line intersection picker:
http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/52331/focus=52577 -- http://www.ssTk.co.uk
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org