Thank You Thibault,Your code is slightly different than mine, I'll study 
it.Regards,Date: Mon, 18 Aug 2014 11:43:57 +0200
From: [email protected]
To: [email protected]
Subject: Re: [osg-users] Integrating OSG into a window (OSG Beginner book       
Ch9)

Hi Sonya,

I tried your example with MSVC 2013, 64bit, OSG 3.2.1 and I get the Cessna. Its 
appearance is weird (see attachment), but still, I get more than a blue screen.


However, I tried to modify your example using code from the OSG FAQ 
(http://trac.openscenegraph.org/projects/osg//wiki/Support/FAQ#HowdoIembedanOSGviewerina.NETcontrol),
 and I get the expected result. I guess there is something wrong with the way 
you setup your context. See the modified .cpp file in attachment.


I used the following compiler command line:
cl /EHsc /Ic:\dev\libs\include main.cpp /link /LIBPATH:c:\dev\libs\lib osg.lib 
osgViewer.lib osgGA.lib osgDB.lib kernel32.lib user32.lib
(replace c:\dev\libs\include and c:\dev\libs\lib by the paths to your OSG 
headers and libraries)


Hope this helps.
Cheers

Thibault






On Sat, Aug 16, 2014 at 12:39 PM, Sonya Blade <[email protected]> 
wrote:




Dear All,
The program and instructions given in the OSG Beginner book Ch9 "Integrating 
OSG into a window"
doesn't work for me. Firstly I thought that it was due to the poor grasp of me 
of understanding the OSG working mechanism, because I originally started to 
test in wxWidgets instead of creating 
directly Win32 window. Following the instructions given in the book I observed 
the very same behaviour as it was in wxWidgets example case. Windos is spawning 
but showns only the blue screen, absolutely nothing 
in scene.
So at the attachment I provide the Win32 file which doesn't produce any 
expected result for me, I kindly ask if someone 
can testify whether the same behaviour will be observed on different platforms 
or not.

Mine is OSG 3.0.0 stable, MinGW 4.7.1, Win64.

Regards,                                          

_______________________________________________

osg-users mailing list

[email protected]

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
                                          
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to