PDA

View Full Version : add bones to particles


phoenix
04-26-2002, 03:00 PM
hi guys
:bounce: :shame:

well here is the problem....


i used particle tool to create profile of a cylinder....now i want to add bones to it.....is it posible to add bonez to a paritcle system......

well this is the detail explaination

make a cylinder and make it live and then use the particle tool to make its profile .....now i want to ad bones to it so i can animate it this way.....



regards
:bounce: :shame: :thumbsup:

svenip
04-26-2002, 03:32 PM
ok here's the solution

create your cylinder. then go into the dynamics and create an particle emitter with "emit from object". after that make the cylinder a goal for the particles (just select the particle then the cylinder and hit make goal). then change the goal weight of the particles to 1. what you'll see now is that the particles stick to the cv's of the cylinder. maybe thats not the desired result, but we change it now. select the particles and go to the folder "add dynamic attributes". hit the general button and add the goalU and goalV value ine the particle tab. then go into the folder "per particle array attributes" of the particles. with right mouse button click into the goalU or goalV and write a creation expression.

particleShape1.goalU = rand(0,1);
particleShape1.goalV = rand(0,1);

the values 0 and 1 are not common values. you need to go into the Attribute Editor for your cylinder and check the values for the shape of the surface. you will find MinMaxRange for U and V

these are the values you need to insert into the rand function.
now the emitter will create particles all over the surface for you. if you want to happen this faster, just take your emitter (its parented under the surface) and change the rate and the speed. but be aware that you stop the emiision. without the emitter will create maybe millions of particles and you will have a lot of fun :)

now you can go and create a fully transparent lambert shader for the cylinder or in the render stats switch off the visbility and render settings for the cylinder. then it wont be rendered and you will see just your particles.

no it's easy . make a skeleton, bind it to the surface, change the weights and thats it.

hope it will help :bounce:

phoenix
04-26-2002, 03:42 PM
thanks svenip
let me try but man can u tell why is it the wrong way....like what i am doind not right....




regards
saif

svenip
04-26-2002, 03:54 PM
ok, it's not 100% the wrong way. you could create your particles that way and then go and make them a gol and so on. but if not and you have only your particles its not possible. every deformer can deform only surfaces and not particles etc. your particle object is a maya object with a transformation node and you cannot deform this node :). maybe it would be nice to see a feature like this (deformations on particle objects) in one of the next versions, but now you have no chance.

so if you need your particles placed on specific positions on the surface take your way and then switch over to my way (goal etc). if not and you wanna have the particles created all over the surface to take the shape, take my way.

sorry for the bad english :hmm:

phoenix
04-26-2002, 04:56 PM
hi ;listen give me ur mail email address and let me send u the file which i am working on ....so u can see it......




regards

svenip
04-26-2002, 05:03 PM
ok, i've send you my email

alexx
04-26-2002, 06:12 PM
hey..

i think i have a solution for that problem.

after you created your particles you have to create a perfect goal object:
use
http://www.highend3d.com/files/dl.3d?group=melscripts&file_loc=particleDeformationPoly-v1.0-.mel&file_id=908

i did that one to create a poly object that has vertices at each particle position. so use the resulting poly object as a goal. you can now deform the poly object with ANY maya deformer and the particles will follow. (you have to change the frame to see the result though).

worked fine for me

have fun

alexx
04-26-2002, 06:24 PM
check image to see what is meant :)

phoenix
04-27-2002, 09:30 AM
:bounce:

hi guys this si what i want......

this is the dummy particle thing on the snake.....a snake profile results

phoenix
04-27-2002, 09:37 AM
:bounce:

phoenix
04-27-2002, 09:44 AM
:bounce:

phoenix
04-27-2002, 09:51 AM
:bounce:

phoenix
04-27-2002, 10:00 AM
guys this is what i want......



i want a normal snake ....in the form of particles and then it finally......do the magic ......



regards

svenip
04-27-2002, 03:03 PM
so, there is the problem. just do it one of the two way i was mentioning before !! :hmm:

alexx
04-28-2002, 02:18 PM
:D

yep.. take your snake and just do it.. gonna look nice.

CGTalk Moderation
01-13-2006, 05:00 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.