Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

load texture into vertex color

load texture into vertex color

Anonymous
Not applicable
967 Views
2 Replies
Message 1 of 3

load texture into vertex color

Anonymous
Not applicable

Hi,

 

I need help on how to store texture rgb values into vertex color mesh attributes. I've tried to do manually with "echo all commands" active with no results, because when I use artAttrPaintVertexCtx command, appear the paint tool, but the surface is not paintable instead when I do manually it works. 

 

Thank you in advance for the help.

Accepted solutions (1)
968 Views
2 Replies
Replies (2)
Message 2 of 3

mcw0
Advisor
Advisor
Accepted solution

You can loop through your vertices.  Convert to uvs and get uv position.  Then use "colorAtPoint" to get RGB values at that position.  Then use polyColorPerVertex to assign the rgb value to vertex.

Message 3 of 3

Anonymous
Not applicable

Thank you, I will do some tests

0 Likes