Hi,

I'm seeing error 1286 (FB OP) error in my own separate context (just doing a 
simple glClear) when in the middle of a OSG "apply".

Let me provide the context.
a) I have my own overridden implementation of TextureRectangle that performs 
rendering from existing textures (from AVFoundation under Mac OSX) to the OSG 
owned textures within the scene.  The idea is to render these existing textures 
through a color correction shader and into the OSG graph.
b) The drawing from "own textures" to OSG's is done in apply()
c) The Viewer is a osgViewer::Viewer, with drawing of the scene done via the 
->frame() method. In effect, it's a cut down version of the example 
osgviewerCacoa by Eric Wang, 2005.

Within my own drawing code, I'm saving the current context, switching to my new 
OpenGL context and doing "stuff".  My understanding is that if I'm using my own 
context (which at this point is not sharing the OSG context) - then both are 
effectively independent.  The intention is that once I have my drawing code 
working, I'll be sharing OSG's context in order to draw directly into it's 
"owned" texture (yep, I know at this point I have to be careful not to munge 
existing GL state).

The code I'm using to perform the update/drawing (my own stuff) has been used 
before.  Granted I've just done a migration from one project to another - so I 
could have screwed stuff up... but before I delve deeper down that track I 
wanted to simply ask:

- Will my own OpenGL calls from within an "osg::TextureRectangle::apply" 
conflict with OSG in any way (as mentioned above I'm using my own separate 
context)?
- What's a/the recommended way within OSG to do what I'm doing (if it's not 
what I'm already doing :) - that is, FBO/copy textures through a shader into 
OSG owned textures? (btw: the source textures are managed by an 
OpenGLTextureCache under OSX).
 


Thank you!

Cheers,
Neil

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





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

Reply via email to