September 14, 2017, 10:54am
I want to import scientific visualizations produced with ParaView into my PlayCanvas project, but I’m having trouble reproducing the colours.
Here’s my workflow:
from ParaView (v5.1.0, 64bit), export visualization using File → Export Scene … → to a X3D file
using Blender (v2.78), import X3D file, then export to FBX 7.4 binary format
import FBX file into PlayCanvas
The geometry is there, but all colours are gone.
See for example
which should look something like:
If I import the FBX file into Unity, the colours don’t show up either, but there I can make them appear by changing the shader type to “Sprites/Diffuse”.
Any help is greatly appreciated,
September 14, 2017, 11:12am
Do you have any textures for your model? I’m not sure if we import vertex colors from FBX files - I
think we do but need to ask @will or @Mr_F.
If you have separate mesh instances for the different parts of your mesh that have colors you can assign a different material with the desired color on each mesh instance through the Editor.
September 14, 2017, 11:37am
ParaView colours the mesh through the vertices, so no; I don’t have textures. I would imagine that colouring by vertex is pretty common if you want the 3D models to be small. Are you suggesting that this is rare in FBX files?
I suppose that assigning a different material to each mesh only works if each mesh is of the same colour, right? That is not the case: the mesh has many different colours.
September 14, 2017, 11:40am
Waiting for a response from
@Mr_F or @will on this who are more knowledgable on our FBX importer
You do, I use Vertex Colours. You need to turn the option on in the material though.
September 14, 2017, 11:48am
Indeed, I’ve never used that yet! Here is the option on the material:
September 14, 2017, 11:49am
Brilliant. Got it. Thanks all!