Forums > Jitter

an entire open gl scene on a texture


FP
October 29, 2009 | 4:59 pm

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./

– Pasted Max Patch, click to expand. –

October 31, 2009 | 12:19 pm

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



FP
October 31, 2009 | 12:47 pm

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.



FP
November 2, 2009 | 2:22 pm

ok, i got it but…

where is the text ?
what is my mistake ?
please.
thx.

– Pasted Max Patch, click to expand. –

Viewing 4 posts - 1 through 4 (of 4 total)