0
\$\begingroup\$

I procedurally generate 3D planet models that I would like to import into Blender.

I use colour per vertex rendering in my shaders (In practice, I use the same colour for all vertices of a face, but my vertex attributes include RGBA.)

I like generating wavefront .obj files, because the syntax is so easy. But wavefront obj does not let me specify colour per vertex, or colour per face. Instead, the entire object is coloured with a material from the material-library that accompanies the obj geometry file.

I've looked into collada .dae as well, but frankly, that seems like a very complex format, and it still seems to work with material libraries, like the .obj format does.

Is there an easy to generate 3d model format that lets me specify a colour per vert (or face) without material libraries, and can be imported into Blender?

\$\endgroup\$
1
  • \$\begingroup\$ I wouldn't be a neat solution, but you could export your color data as a texture, and use it in an .mtl file referenced by the .obj file. \$\endgroup\$
    – Turms
    Commented May 15, 2019 at 20:39

1 Answer 1

0
\$\begingroup\$

So, Stanford's .PLY Polygon File Format is the winner here.

Although, after the import into Blender, some actions are required to actually see the colours.

PLY supports colour-per-vertex and colour-per-face, but I've found that Blender can only handle the colour-per-vertex files.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .