[vtkusers] Question about TCL script
David Gobbi
david.gobbi at gmail.com
Thu Feb 11 08:01:54 EST 2010
Hi Alireza,
For smooth shading, it's necessary to the data through vtkPolyDataNormals.
This will compute a normal at each vertex. These normals are used for
smooth lighting computations.
David
On Thu, Feb 11, 2010 at 5:44 AM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:
> On Thu, Feb 11, 2010 at 1:08 AM, alireza ghahari <ghahari_ar at yahoo.com>wrote:
>
>> Dear David
>> Hello.
>>
>> Attached, I have provided you with a *.tcl script developed in VTK 5.4.
>>
>> It is about an avatar face visualization. I used a polygonal file with
>> triangle strips
>>
>> topology to render the 3D vertices data imported from a Matlab script. I
>> also used a look up
>>
>> table of Point Data to specific the rgba color of each faces.
>>
>> Running the script, (with data file ''natural.vtk'' 's root folder
>> changed to your specified PC
>>
>> folder in TCL file 3rd line) you will see it renders, but I want to smooth
>> the faces so that the
>>
>> sharpness of tetrahedral triangles could be less felt. I also need some
>> effects make my
>>
>> model as realistic as it can may be a lighting model, other mapper, etc.
>>
>> Would you please provide me with some code/classes up coming this issue?
>>
>> Your attention is greatly appreciated.
>>
>> Sincerely yours,
>> VTK WWW Member
>> Alireza Ghahari
>>
>>
>>
> Alireza,
>
> Please keep the discussion on the mailing list so everyone can help and
> benefit from the discussion.
>
> To smooth the mesh, you'll want to use a filter like this:
> http://www.vtk.org/Wiki/VTK/Examples/WindowedSincPolyDataFilter
>
> I've never done anything complicated with scene lighting rendering - maybe
> someone else can help with this issue?
>
> Thanks,
>
> David
>
> _______________________________________________
> 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/20100211/5ef762d7/attachment.htm>
More information about the vtkusers
mailing list