PDA

View Full Version : wetmap - Painting on Texture with mel commands?!


atzfratz
10-23-2006, 06:26 PM
Hi guys,
I have trouble doing wetmaps for my rain system.
I thought i could paint a stroke on the 2d canvas as wetmap texture as i have the uv coordinates on the Object. Problem is i cant find a way to paint on the canvas with mel commands. The Script Editor doesnt show any command even with echo all commands on.
Same goes for the Paint 3d Function. What i basicly want to do is just to paint a line between a number of Uv-coordinates. I hoped for paintFx because i thought i could scale the radius of the seeds at the end of the stroke smaller when aging , so that they would disappear after some time.

Any ideas on that or maybe another idea how i can make the particles draw a line on the texture?

Duncan
10-23-2006, 07:44 PM
You could paint strokes in the pfx panel in scene mode with "paintOnViewPlane" enabled, then animated the various attributes like brush width, stroke clip, etc and batch render the resulting animation. The strokes could be made by creating path curves with a script and assigning a brush to the curves.

Another approach might be to use a 2d fluid texture. You can use setFluidAttr to set the density grid values on the fluid. In terms of dynamics you can set the fluid to have no velocity grid and make the density grid static, in which case it is just a buffer like an image file. However with a dynamic density grid (still with no velocity) you could do diffusion (blurring outward) and dissipation( drying ), if desired.

Duncan

atzfratz
10-24-2006, 11:32 AM
Thanks a lot for the input Duncan. Never thought of that.

I did a little testing with the 2D Fluid Texture and it works quite nicely. Too bad its like painting single pixels. Seems like i have to make some kind of brush so i can vary the radius depending on the UV-Space to Polygon size.

Its ugly as hell, but its a start, thx again.

Hanno

CGTalk Moderation
10-24-2006, 11:32 AM
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.