[vtkusers] R: Render radial trasparency

Ignaz Reicht i.reicht at dkfz-heidelberg.de
Sat Jan 29 12:18:49 EST 2011


If u r using a vtkpolydata containing ie a vtkPolygon for ur
representation, then u can assign to each single vertex a certain RGBA
value. Vtk interpolates those alphaValues inbetween vertices. So u can
use a filled polygon as ur opacityplane

Iggy

Am 29.01.2011 um 08:58 schrieb "vespasiano at libero.it" <vespasiano at libero.it 
 >:

> Nobody can help me? Suggestions? Ideas? It's very important because  
> it's for my
> master degree thesis.
>
> Thanks a lot. Francesco.
>
>
>
>> ----Messaggio originale----
>> Da: vespasiano at libero.it
>> Data: 28/01/2011 18.13
>> A: <vtkusers at vtk.org>
>> Ogg: [vtkusers] Render radial trasparency
>>
>> Hi all,
>> I'm writing an augmented reality application where I have two renders
>> connected to a render window.
>>
>> In the first render, that is on layer 0, I have a plane source  
>> where i have
>> connected a camera input as a texture to see images from a webcam.  
>> In the
> other
>> render, that is on layer 1, I render over the layer 0 my 3d scene.
>>
>> Now i need to adjust the opacity of the rendered layer1. I would  
>> that the
>> opacity of my rendered 3d scene should decrease radially around a  
>> center
> point
>> that i define.
>>
>> I thought that i can use a graylevel map to define the opacity map  
>> of my
>> rendered scene but i can't find in vtk documentation any ideas to  
>> make such
>> filter. I need like a filter that i connect between the output of  
>> the render
>> and the input of the render window and set the pixel opacity.
>>
>> Note that i wouldn't modify the opacity of the video but only the  
>> opacity of
>> my rendered 3d scene.
>>
>> Any ideas to do so? Thanks a lot.
>> Francesco Ricciardi.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.
> com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk 
>> .
> org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110129/c9ca79d4/attachment.htm>


More information about the vtkusers mailing list