Help exporting scene vrml/wrl files with correct vrml colors

Hello Paraview, I just made my account here after a few hours of scouring google and not finding a fix for my problem. I am starting with an exodus file & using a tetrahedralize → merge blocks → extract surface filter chain to extract a purely triangle pattern surface of the data I would like to save as a .vrml/.wrl file. From there I use an export scene into the vrml file format & the geometry is correctly saved because it opens in a cad program just fine. The problem that I am facing is that I would like to include colors into the vrml file & the source of the colors is a set of point data from the exodus file that gets carries along this filter chain. Unfortunately whenever I try to export the scene with the desired color options in the render display the .vrml file that is created only contains constant values for the “vrml color” data array, basically just [255,255,255]

Specifically I would like to be able to setup the color mapping options based on my chosen scalar variable ( a velocity magnitude in this case), setup the color range, & chosen color scheme & then export scene the data as a vrml file & get the colors that I see in my render display saved into the vrml color data field.

Any suggestions? I would be very appreciative of your help figuring out how to make this work.

It looks like the VRMLExporter doesnt support exporting colors. You may want to use another expoter. glTF comes to mind.

Hello & thanks for the information. Unfortunately it looks like glTF is not compatible with the cad program I am using or the 3d printing software that I would ultimately like to send the file to. Ideally I would like to generate something off of this website directly with ParaView & include the color data from my simulations https://support.stratasys.com/en/Software/GrabCAD-Print/About/List-of-supported-file-formats

I have also tried to run a “save data” as a .obj and not been able to get the color data there either. Does the obj writer support color data?

Does the obj writer support color data?

No, and there is not OBJ exporter in ParaView yet.

I managed to export to glTF and then convert to obj using an online tool, maybe thats a workaround for you ?

ImageToStl.com_wavelet.zip (45.4 KB)

Hello again, unfortunately I will not be able to use an online tool to convert over the file formats for this data. That said it does look like I may be able to import glTF into an intermediary and then into creo. I’ll test this out.

That said, I would really like to have the ability to directly export a .vrml/.wrl file with the current color data from the render view. Your VRML exporter obviously does write color data to the .vrml file (all of my .vrml exports have [255,255,255] written as the “vrml color” tuple). How hard would be to get this exporter setup to write the render view color data rather than a preset tuple?

Not too hard in my opinion, but some investigation is needed.

Do not hesitate to reach to Kitware: https://www.kitware.com/support/ :slight_smile:

Unfortunately my attempts to open a glTF file with CAD software have not worked & it is beginning to look like a color capable vrml exporter is my best hope. I’ll start asking around to see if I have any access to the support referenced in your link before having to break out my own credit card.

Tracking in Issue #22955