multiple independant erase_color

Mar 21, 2006 at 2:00pm

multiple independant erase_color

Hi,

I have a patch with mutiplte 3D objects movin in space,
and I’d like them to leave more or less a trace behind
them, as if they had different erase_color values.

All rendering in one window.

I found examples in the forum explaining how to make
multiple rendering of a scene, but this does not seem to do the trick.
I guess I would need as many render as different erase_color,
since erase_color in done during the rastering phase which is
performed only once in the render, if my little OpenGL knowledge is correct.

Does anybody know how to achieve this?

Vincent

#24996
Mar 21, 2006 at 5:31pm

hello,

I suggest you try rendering your objects to separate gl textures, and then
do mixing/feedback effects using slabs/shaders.

for rendering to texture, checkout capture attribute to gl.objects,
to_texture of jit.gl.render and search all recent threads about rendering to
texture, good stuff in there!

best,
nesa

#72986
Mar 21, 2006 at 5:53pm

mmm… yes, thats the solution I was thinking of.
I was reluctant to create 1 render per new 3D object,
because this number changes dynamically, but I do
not see any other way of doin it in the GPU.

Thanks Nesa for the indication though..

best

#72987

You must be logged in to reply to this topic.