Topic Author
Posts: 7
Joined: 23 Mar 2018, 15:07

Use noesis GL context for other rendering

07 May 2018, 16:59

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.
User avatar
Site Admin
Posts: 2922
Joined: 20 Jan 2012, 17:18

Re: Use noesis GL context for other rendering

07 May 2018, 19:24

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.

Who is online

Users browsing this forum: Google [Bot] and 3 guests