[vtkusers] Problem with Colour Settings in .vtk format when it is used to export to .wrl and .obj from Mayavi

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Feb 28 15:31:05 EST 2011


Hi David,

Can I have the VTK file so I can do the VRML export on my side to see what's
going on ?

Thanks,

Seb

On Mon, Feb 28, 2011 at 3:16 PM, David Cole-Baker <
David.Cole-Baker at nextspace.co.nz> wrote:

>  Hi Sebastien
>
>
>
> We had our developers check out the file that is exported and the red is
> color set for all points.
>
>
>
>             color DEF VTKcolors Color {
>
>               color [
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>            1 0 0,
>
>>
>
>
> Has anyone else got any other ideas
>
> Regards
>
> David
>
>
>
>
>
> *From:* Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com]
> *Sent:* Monday, 28 February 2011 3:44 p.m.
> *To:* David Cole-Baker
> *Cc:* vtkusers at vtk.org
> *Subject:* Re: [vtkusers] Problem with Colour Settings in .vtk format when
> it is used to export to .wrl and .obj from Mayavi
>
>
>
> Hi David,
>
>
>
> How do you read the generated vrml file ?
>
> I do believe it might be the reader that you are using that may not use the
> color information in the file.
>
>
>
> Seb
>
>
>
> On Sun, Feb 27, 2011 at 4:05 PM, David Cole-Baker <
> David.Cole-Baker at nextspace.co.nz> wrote:
>
> Hi
>
>
>
> We are using pythonxy & mayavi to create a 3D scene from .vtk files.
>
>
>
> When the .vtk files are loaded in to mayavi (and surfaces etc added) the
> colours in the .vtk display nicely, however when the scene is exported to
> either .obj or .wrl (i.e. “Save Scene As VRML file”) the colour is lost and
> the scene is all changed to one colour and the .wrl or .obj file is all
> set to one colour (e.g. red as in the case of the .wrl files),
>
>
>
> We believe the heart of the problem is something in the .vtk files.  (the
> one we have been using is attached)
>
> Is this something that Kitware can fix easily enough or is there something
> else anyone can suggest.
>
>
>
> We have the geologist community very interested in sorting this problem out
> quickly, in particular to help visualise seismic data of the recent
> Christchurch earthquakes here in New Zealand.
>
>
>
> Any help & direction you can give on this would be gratefully appreciated.
>
> * *
>
> * *
>
> *Regards*
>
>
>
> *DAVID COLE-BAKER | Account Manager*
>
> D: +64.9.571.4102 | M: +64.21.824.899 | E:
> david.cole-baker at nextspace.co.nz| http://www.nextspace.co.nz
>
> Nextspace Ltd, Level 3, Building C, Millennium Centre, 602 Gt South Rd,
> Ellerslie, Auckland 1051 | PO Box 11484, Ellerslie, 1542 Auckland, New
> Zealand
>
> [image: Description: Description: Email signature]
>
>
>
> This email is intended solely for the use of the addressee and may contain
> information that is confidential or subject to legal professional privilege.
> If you receive this email in error please immediately notify the sender and
> delete the email.
>
>
>
>
>
>
> _______________________________________________
> 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/20110228/bf5766ac/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 5436 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110228/bf5766ac/attachment.jpeg>


More information about the vtkusers mailing list