PDA

View Full Version : Using maped texture as goal weights for soft bodies


tom.hanks
07-15-2006, 03:19 AM
Is it possible to use for example a maped B/W ramp textured on my object as the values for goal weights on soft bodies?
Like the maped dark and white colors defines the regions for the goal weights exactly as maped, so as the color gets clearer along the values get changing?
And is it possible use a bitmap to that?
I hope i got my self clear

Sorry the poor english

drGonzo
07-15-2006, 05:35 AM
Not directly, I think.
What you can do is create another particle object and use texture emission rate on that. And then use that particle object as goal for your original particles.

tom.hanks
07-15-2006, 12:51 PM
Hummm, Iīll try that, good idea.
What I am trying to do is to inflate a baloon and make those creases with dynamics like theres a cord pressing the surface of it, got it?
But Iīll try your sugestion thanks.

tom.hanks
08-23-2006, 02:06 AM
Hi drGonzo
I know thatīs been a while but can you explain to me a little better how to do the trick that you described above.

azshall
08-23-2006, 03:04 PM
I wrote a script to do this.

Use the nearestPointOnMesh/closestPointOnSurface .. depending on the surface type, then use the colorAtPoint MEL command to sample the particles point along the goal (or the goal object you wish to use) ... Works pretty nicely, especially when its really dense and and is an interesting photo (can be a bit slow with a ton of particles though) ...

az

drGonzo
08-23-2006, 09:26 PM
Some related stuff here as well:
http://www.worldofmaya.com/d_scripts.html#particleDisplacement

eatbug
08-24-2006, 06:31 AM
my mel.
download http://www.eatbug.net/download/mel/nl_morph.zip (http://www.eatbug.net/download/mel/nl_morph.zip)
tutorial http://www.eatbug.net/tutorial/nl_morph.htm (http://www.eatbug.net/tutorial/nl_morph.htm)
lucky!http://www.eatbug.net/download/mel/image/s_nl_morph.jpg

tom.hanks
08-24-2006, 12:10 PM
Thank You very much guys!
I didnt try anithing yet but just by the information that you gave to me I can start to build things differetly, and thanks by the scripts, I really appreciate it.

Thanks Again!

tom.hanks
08-25-2006, 01:02 AM
Hi DrGonzo
I think I am almost there thanks to your particleDisplacement script.
I just need to figure out, and iīd like your help, how you the xCoord and yCoord works, i mean how did you get to store the particles individual coordinates on those variables.
If I could do that I think itīs done.
Can you help me?

drGonzo
08-26-2006, 05:04 PM
Post your scene here (make sure you zip it) and I will have a look at it.

tom.hanks
08-28-2006, 03:57 AM
There is.
Thereīs a ramp that controls the GoalPP, if you change the position of the black color it affects the attribute.
I managed to get this result using your script, and I used the xCoord and yCoord to map my particles, but i donīt know how to reproduce this coordinates in a new softbody, thatīs what I need to do.
Resuming, I want to do the same thing that is in this file but with a softbody, using a map to control the goalPP.
Sorry my poor english.

tom.hanks
09-28-2006, 01:53 PM
I am still looking for a best way to map my particle array UV position to control itīs goalWeight via file or ramp.
Any more ideas?

CGTalk Moderation
09-28-2006, 01:53 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.