[vtkusers] Adding color to a rendered image

Emiliano Beronich emiliano at veccsa.com
Wed Jun 16 11:02:30 EDT 2004


Hi everyone!

I have render a scene with an actor (a 3d surface). The image is in 
gray. Now I would like to enhance the looking of the image adding some 
colors. I tried to change the properties of the actor but I haven't 
found the result I'm looking for. The perfect solution is to render the 
same image (in gray) but show it with my own lookuptable.
So how can I tell to the rendering process that I want to colorize an 
image with a specific lookuptable?
Besides I need to support interaction with the scene (rotation, 
translation).

I though a solution could be rendering in memory and using 
vtkWindowToImageFilter to add color in a new pipeline but I think is a 
little slow.
Another solution could be rendering in memory in a 256-color bitmap, set 
my own lookuptable to the bitmap and finally draw it on the window. But 
I had some errors with setpixelformat and I haven't solved yet.

Does anyone know a better or more direct approach? I would like to set 
the lookuptable before doing the render.

Regards,
Emiliano




More information about the vtkusers mailing list