Thank you for information.Can you tell me from where i can understand special
keys in OSG with which i change one or the other which option(mode) of
viewer(in my case osgProducer).
Thank you in advance
Ignacio GarcĂa <[EMAIL PROTECTED]> wrote: Hi,
> I load in osgProducer::Viewer a model from 3DS file( empty house ). Walls
of
> house are separate object and the window also. I tried to use osgpick.cpp
> from examples but my case it didn't work right.
> If i put mouse over window in front wall, it is selected but together with
> the wall behind of it inspite of that i can't see this wall.If I press ' B
'
> key, without moving mouse, the front wall disappear together with window
but
> this window is still selected together with the wall.
> I think that the problem is in the intersection but i don't know how to
> solve the problem.
The osgpick example picks all the objects in the scene that would have been
drawn in the pixel you picked, whether they are occluded by others or not.
If you just want the one that is visible (the nearest one), use the first
Hit in the Hitlist and discard the others, because the list is ordered from
near to far.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/