an entire open gl scene on a texture
Hi,
i can't figure out how to put this open gl scene on one texture.
could somebody help me or point me in the right direction ?
thx.
f./
Hi,
Usually the method depends on what you want to do with the texture later.
If you want to get the whole rendered scene back to matrix(for recording mostly), you can use jit.gl.asyncread.
If you want to do some kind of post-processing first and then display it later, you could render your 'scene' through jit.gl.sketch with @capture attribute set to name of destination texture.
All the objects rendered through that sketch should then be @automatic 0.
Even if you have a bunch of sketches that make up your scene, you can still set their @automatic 0, give them @name and render them with a 'master' sketch.
Try searching the forum and especially Andrew Bensons recipes - this is quite a recurring subject.
-nesa
many thx.
yep it's the second case. i know the way to record a scene with jit.glasyncread.
i'll try that with sketch. actually i have some andrew examples but it didn't work well in my case. certainly 'cause i made mistakes. i'll take time to study that.
ok, i got it but...
where is the text ?
what is my mistake ?
please.
thx.