advancingu / QmlOgre

Integrates Ogre3D into Qt QML scenes by rendering Ogre to FBOs.
Other
79 stars 26 forks source link

Running on OSX #4

Open golgobot opened 6 years ago

golgobot commented 6 years ago

Hey, I know this project has been inactive for some time, but it would be great to update this and also get it working on OSX! It works great on Linux.

I'm able to build it (with some finagling), but I'm not able to run it. It crashes at GLFrameBufferObject::swapBuffers when Ogre tries to call glGetIntegerv(GL_FRAMEBUFFER_BINDING_EXT, &oldfb);.

I ported this to an other project I'm working on, and for some reason it doesn't fail there, but it only renders random pixels to the QQuickItem.

If you have any suggestions on how to get this running on OSX I'd be happy to do the work and make a pull request. Any help would be appreciated!

Thanks.

advancingu commented 6 years ago

Rendering of random pixels has been caused - to my limited experience - by actually rendering uninitialized memory instead of the desired texture. Perhaps this is the case here.