[osg-users] How to control the model in MFC program?

2011-01-04 Thread Duan Linghao
Hi,
I designed a program based on MFC dialog.I want to rotate and move the model by 
some buttons.And I send a message using the function PostMessage(..) in the 
handeler of the buttons.In the handeler of the message I modify the viewmatrix 
and call frame() to render the model.The problem is sometimes the model can not 
be displayed when I click the button.How can I deal with that? 

Thank you!

Cheers,
Duan

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35290#35290





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] How to control the model in MFC program?

2011-01-04 Thread Duan Linghao
Hi,sorry,problem solved.Something wrong with my projection matrix.

... 

Thank you!

Cheers,
Duan

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35318#35318





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org