PDA

View Full Version : Paint Scripts Tool


yunis
11-14-2010, 09:13 AM
Hi! Task: spread different geometry objects on “ground” plane at one time using 3D Paint Tool(Paint Scripts Tool) and color map("mask") assigned to “ground”. geometryPaint.mel script works well but it is useful to spread one kind of mesh only.
What kind of object must be paint depends on color sample “under brush”.(For example, green area on map is for spread grass geometry, yellow - for sand, etc.) How can I pickup such color sample on object with MEL?

p.s.: sorry for my English

JohnLIC
11-16-2010, 04:23 PM
You can bake the texture onto the verts of the geo. then loop over the verts?

rendering --> lighting/shading --> batch bake (mental ray)

yunis
11-18-2010, 12:43 PM
That's good idea to use vertex color data. Thank you!:)
I found a command polyColorPerVertex.
One more problem - how to calculate face and check its vertexes color values. Geo is square divided with mesh grid just like chess board or map for turn-based strategy. Object must be placed at center (normal) point of face ("cell").

CGTalk Moderation
11-18-2010, 12:43 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.