Hi Robert,
My guess was similar.
But since my last post I found couple of issues.
1:
const osg::Camera* View::getCameraContainingPosition(float x, float y, float&
local_x, float& local_y) const
There is used getXmin() when calculating new Y-values in if(!gw){...
Bug? However, changing this didn't solve the problem.
2:
My real app is wxWidgets based and I have graphics context available. I
noticed, that event state's (GUIEventAdapter) graphics context was always null
in my case (in previous method). By setting the graphics content to the viewer
solved my problem in my app.
viewer->getEventQueue()->setGraphicsContext(graphicsWindow.get());
After this, the picking and draggers worked as expected/wanted.
Cheers,
Mika
robertosfield wrote:
> Hi Mika,
>
> On Tue, Jan 19, 2010 at 7:05 AM, Mika Hakkarainen
> <> wrote:
>
> > Doesn't anyone can help me with this one? I am totally stuck in this
> > problem. I really would appreciate any help with this. Should I do
> > something differently or is the problem somewhere else.
> >
>
> I would guess the lack of response if that most people like myself
> don't really have any ideas what might be amiss as it's a combination
> we've not tried before. The best I can suggest is try experimenting
> with viewport sizes which are only a small size different to what
> you've set, or even the same value, see what happens, try to change
> one thing at a time and dig into the code with a debugger to see
> what's happening.
>
> Robert.
> _______________________________________________
> osg-users mailing list
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> ------------------
> Post generated by Mail2Forum
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22872#22872
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org