[vtkusers] Fwd: webgl output of VTKPolyData.py

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Jul 27 14:13:48 EDT 2015


Hi Jian,

the reason here is that the data you try to look at is not a scalar field
but a RGBA type of information.
The WebGL exported is looking for a field (I think) and get confused.

You may need to generate a field here and use a lookup table with it. You
can also try to use ParaView to load and export the data in WebGL.

Seb

On Mon, Jul 27, 2015 at 11:45 AM, Jian Cheng <jian.cheng.1983 at gmail.com>
wrote:

>
> Hi,
>
> The webgl output of VTKPolyData.py has different color from the output of
> vtk renderer.
>
> The script VTKPolyData.py is from ITKExamples. See this blog by Matt.
> http://www.kitware.com/blog/home/post/680
>
> http://itk.org/gitweb?p=ITKExamples.git;a=blob;f=Utilities/Visualization/VTKPolyData.py
> I would like to use VTKPolyData.py to visualize a vtk file test.vtk. The
> file can be downloaded from
> https://www.dropbox.com/s/asr05bdu67fttgl/test.vtk?dl=0
>
> When I tried
> VTKPolyData.py test.vtk
> It showed
>
>
> But when I enabled webgl, tried
> VTKPolyData.py test.vtk --webgl abcde.html
> The output abcd.html in firefox and chrome is
>
>
> Is there anyone who can help me? Thanks.
>
> best,
> Jian
>
>
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150727/39431306/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 48387 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150727/39431306/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 51585 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150727/39431306/attachment-0003.png>


More information about the vtkusers mailing list