an entire open gl scene on a texture

Oct 29, 2009 at 4:59pm

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

– Pasted Max Patch, click to expand. –
#46204
Oct 31, 2009 at 12:19pm

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

#166416
Oct 31, 2009 at 12:47pm

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.

#166417
Nov 2, 2009 at 2:22pm

ok, i got it but…

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

– Pasted Max Patch, click to expand. –
#166418

You must be logged in to reply to this topic.