I would like to use vertex colors to paint an extruded line set but do not succeed to do it.

In detail, I export a scene in X3D format from paraview. It consist of a panels and lines that are colored according to a VTK field (cf. picture below). Paraview scene

Then when I import this X3D file into Blender, I get these three fields :--

  • Shape_IndexdedFaceSet (for ship panels)
  • Shape_IndexdedFaceSet.001 (for free surface)
  • Shape_IndexdedLineSet (for ship lines : tower)

I have no problem to show vertex colors on the FaceSet (using an attribute and material output in cycles rendering mode) but the same does'nt work for the Bevel extruded LineSet (cf. picture below where the lines remain desperately black). Cycles for LineSet material output Blender rendering

Any idea how to do that ? Is there a hidden option I missed ?

  • $\begingroup$ Is the mast imported as a a mesh or a curve. Related 1 2 $\endgroup$
    – batFINGER
    Mar 22 '18 at 9:17
  • $\begingroup$ I think it's a curve. Where can I check that ? $\endgroup$
    – abenhamou
    Mar 22 '18 at 9:19
  • $\begingroup$ Select it. Will have a curve for data icon on properties panel. Or go into edit mode (will be a curve menu) or in python console type C.object.type or the tools panel will have tools for curves. $\endgroup$
    – batFINGER
    Mar 22 '18 at 9:23
  • $\begingroup$ I confirm it is a curve $\endgroup$
    – abenhamou
    Mar 22 '18 at 9:35
  • $\begingroup$ Could convert to mesh object > convert to > mesh and use method outlined in link above. As for colouring curve in cycles, that's outside my field. $\endgroup$
    – batFINGER
    Mar 22 '18 at 10:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.