View Single Post
  #2  
Old 03-07-2012, 09:10 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Joran,

Yes, I made that change because if no vertex color was assigned to a model, it could inherit seemingly random colors, depending on the last applied vertex color value in the scene. This should only be the case if lighting is disabled on the model. With lighting enabled, the <node>.color() command should continue to work properly. Either way, you can use the <node>.clearAttribute() command to remove the vertex colors from a model:
Code:
node.clearAttribute(viz.ATTR_VERTEXCOLOR)
Do you think the exporter should be modified to not assign any vertex colors when the "Vertex Color" option is unchecked?
Reply With Quote