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

Don Brutzman brutzman at nps.edu
Wed Jan 8 00:36:46 PST 2020


Thanks for close attention to detail here Andreas.

Spec seems crystal clear, that of course takes precedence.

Looks like an error in X3D4WA and something to improve in tooltips.  I will take those fixes for action.

On 1/7/2020 10:43 AM, Andreas Plesch wrote:
> 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.
> 


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list