[x3d-public] Is LineSet per segment or per vertex color ?

Andreas Plesch andreasplesch at gmail.com
Tue Jan 7 10:43:43 PST 2020


Fixing up colorPerVertex line issues, the question in the subject arose.

The spec. at

https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#LineSet

says "The color field specifies the colour of the line set at each vertex  .."

indicating color per vertex coloring.

However, the example at

http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter06-GeometryPointsLinesPolygons/LineSetComparisonIndex.html

says in the description that LineSet has per segment coloring.

The tooltip at

https://www.web3d.org/x3d/content/X3dTooltips.html#LineSet

sidesteps by saying that the color field is a
"Single contained Color or ColorRGBA node that specifies color values
applied to corresponding vertices according to colorIndex and
colorPerVertex fields."

which is likely a copy/paste oversight since there are no colorIndex
or colorPerVertex fields.

x_ite and x3dom currently do color per vertex coloring.
-- 
Andreas Plesch
Waltham, MA 02453



More information about the x3d-public mailing list