Page 1 of 1

Use noesis GL context for other rendering

Posted: 07 May 2018, 16:59
by Mrkol
I am writing a noesis app framework application which needs to have an image who's source is an openGL buffer, to which open scene graph renders it's data. As far as I can tell, this would require OSG to render in the same GL context as noesis. What is the proper way this is supposed to be done? Currently I am trying to inherit from DisplayLauncher and use OnTick method to render and OnStartUp to intiialize, but that doesn't seem to work.

Re: Use noesis GL context for other rendering

Posted: 07 May 2018, 19:24
by jsantos
I don't think you need to inherit from DisplayLauncher at all, you just need a GL texture handle where you render to with OSG and then wrap that texture into a Noesis Texture using the function WrapTexture you can find in GLFactory.

Although using the same context is probably the most efficient way, that's not mandatory, you could have two different context sharing data and that should work.