[vtkusers] Fwd: webgl output of VTKPolyData.py

Jian Cheng jian.cheng.1983 at gmail.com
Mon Jul 27 18:21:36 EDT 2015

Hi Sebastien,

Thanks very much for your reply.
I think you gave a correct reason.

Based on your suggestion on Paraview, I tried paraview 3.98.1 in my
laptop, it visualized the vtk file correctly.
However when I save the file into webgl, then opened the html file, the
color of the result is not correct (i.e. not the rgba color), maybe
because the same reason you just mentioned.
For paraview 3.98.1, I noticed that no matter how I changed the second
Drop-down menu (magnitude, 0,1,2,3), the visualization does not change.

Then I downloaded the latest paraview 4.3.1, both the color of
visualization in paraview and color of saved html file are not correct.
I noticed that when I changed the second Drop-down menu (magnitude,
0,1,2,3), the visualization color now changes, because paraview uses one
of the scalar values.

Do you have any suggestion on how to solve the issue the paraview? Thanks.

Jian Cheng

On 07/27/2015 02:13 PM, Sebastien Jourdain wrote:
> 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 
>     _______________________________________________
>     Powered by www.kitware.com <http://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/9abb20c5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ahhggebh.png
Type: image/png
Size: 3379 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150727/9abb20c5/attachment.png>

More information about the vtkusers mailing list