Hi Gian

On 2/18/07, Gian Lorenzetto <[EMAIL PROTECTED]> wrote:

 Hi all,

Attached is a minimalist sample integrating OSG and wxWidgets. It's far
from complete, but I've reduced the original example (on the wiki) down to a
much simpler example.


Great ! I like the simplicity of this viewer as there is no longer this
complex event handling stuff. Better: I don't have the manipulator's weird
behaviour anymore. Almost (see below) everything runs smoothly.

It's built against wxWidgets 2.6.3 and OSG CVS from about 4 weeks ago. The
major drawback is that I haven't inherited from GraphicsWindow, only used
SimpleViewer along the lines of the osgsimpleviewerGLUT demo. But, I wanted
to get some compiling code out the door for others to look at, so here it
is! J


I compiled it against today's OpenSceneGraph SVN and wxWidgets 2.8.0 (latest
stable) without a hitch. At runtime, however, the cow would not appear
unless I resize the window (and sometimes not at all). I'll dive in the code
and try to get rid of this behaviour.

Also, it's hard coded to load cow.osg, which is one of the reasons I
haven't put it on the wiki just yet. In the next week I'm going to look at



1)     Compiling against both the latest CVS version of OSG and wxWidgets
2.8.x


Did it :) Forgot to tell: I use a Linux machine. So you can consider that
under Linux, it compiles with the latest SVN version of the OSG and the
2.8.0 release of wxWidgets.

2)     Inheriting from GraphicsWindow (similar to the Qt demos …)

3)     Tidying build files and testing builds on Mac and Linux


Just for the info: I used the attached Makefile, which I think does not
conform at all to the OSG standards (as I am normally working under Windows,
I'm no Makefile expert), but does the job.

If anyone is interested in testing or if you have any suggestions/patches
I'm all ears!


I'll try to get rid of  the "need-for-resize" problem.

One other thing, I would like to build an osgviewer like example, but add a
menu bar for the options. Would this be something that could be added to the
osgsimleviewerWx demo, or a separate app on the wiki?


I agree with Robert on that point. Let's keep the viewer as simple as
possible. Having an app on the wiki with several graphics windows (with
different contexts and threads maybe :) ) and widgets with basic interaction
would be cool.


--
Thibault

Attachment: Makefile
Description: Binary data

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to