Hi Robert,
Thanks for your suggestions. I've got the latest CVS version and
converted my application to use osgViewer rather than
osgProducer:::Viewer. As you said, it wasn't too painful. However, my
picking code no longer works with the new viewer. :-(
When I call:
viewer->computeIntersections(x, y, intersections)
picker->containsIntersections() inside View::computeIntersections
returns false.
Can you think of a difference between the old and new implementations
that would cause this to fail? My code looks the same as that in the
osgPick example (which works fine), so perhaps it is my geometry? It's
just a 2D app using an ortho projection and selectable geodes.
Any help greatly appreciated!
Julian.
Robert Osfield wrote:
Hi Julian,
On 2/14/07, Julian Looser <[EMAIL PROTECTED]> wrote:
I would be interested in switching to osgViewer, although it would have
to be something I can achieve very quickly. If I get the latest CVS
version of OSG, is it typically a straightforward process? I'm competent
with OSG.. just on a tight deadline and don't want to introduce any
other problems.
Between a rock and hard place, CVS might introduce problems, and it
might solve them...
Just visit the download page and following the links to the CVS
instructions. You'll need to the CVS version of OpenThreads and
OpenSceneGraph, but can probably get away with using the 1.1 Producer
release. Producer is now just required of osgProducer and
osgproducerviewer.
Also, I'm using the osgProducer::Viewer's picking
functions... is there an equivalent implementation in osgViewer?
Perhaps you're looking for osgViewer::Viewer::computeIntersections(,):-)
My guess is porting across will be quite straight forward for you.
Use viewcvs to look at the changes between the examples before the
move to osgViewer and after:
http://openscenegraph.org/viewcvs/
For instance to see the difference in
examples/osganimate/osganimate.cpp before and after:
http://openscenegraph.org/viewcvs/examples/osganimate/osganimate.cpp?r1=1.9&r2=1.10
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/