Re: [osg-users] Embed in SFML window, rendering problem

2016-10-31 Thread Cem Aydin
Hello Thanks for your reply. The OpenMW example though is a bit complex for my current knowledge level and I really want to keep things simple for now. However I found another example using SFML that is actually rendering fine. en. sfml-dev. org/forums/index.php?topic=20866.0 (can't post link)

Re: [osg-users] Embed in SFML window, rendering problem

2016-10-31 Thread Nickolai Medvedev
Hi, rebootl. I think, you need create SFML graphic context, then set he to camera. I advise you to make normal support of a SFML window, like a SDL-window in OpenMW. https://github.com/OpenMW/openmw/blob/master/components/sdlutil/sdlgraphicswindow.hpp https://github.com/OpenMW/openmw/blob/maste

[osg-users] Embed in SFML window, rendering problem

2016-10-31 Thread Cem Aydin
Hello I'm trying to embed osg in an SFML window. I found some examples and managed to include an osgViewer. However there is a problem with the rendering. I'm not sure what exactly is happening but it looks like if the normals get messed up or so, see the attached image. According to examples