|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
| How to make some Particles fly along a curve and After Move to a Object.
|
|
|
How to make some Particles fly along a curve and After Move to a Object.
i use flow along a curve, on port 2, and move toward a goal on port 3, simulate on port 4
i expected to simulate according the the order of ports,
first calculate the Curve, and finishing the curve length or time, simulate move toward the object.
is there a kind of switch? to change or do i have to animate on time something? thanks.
|
|
|
|
The ports are indeed evaluated in order but this is done every frame. So what’s happening in your case is that Flow Along Curve is setting the force/velocity to move one way, and then Move Toward Goal is setting the force/velocity to move another way, and then Simulate Particles is moving the points according to the final force/velocity.
In this situation, you should use a state machine so that particles do one thing or the other.
- Set up State0 to move along curve.
- Set up State1 to move toward goal.
- Emit particles so that they start in State0 (default).
- In State0, get the PointPosition, get the closest location on the curve to that position, get the PointU at that location, subtract PointU from 1.0 and if the difference is small enough, you know you’re close to the end of the curve so use that as the trigger to switch to State1.
|
|
|
|
thanks grahamef, that help me a lot to understand how it works.
i didn’t get you very well with the point position, i understand, where the curve ends, state 2 will begin,
but not sure how to set that in XSI,
i need to the particles to move like Firefly, just buzzing around and then move and stick to a Logo.
i upload a picture, of my ICE tree
| Attachment
|
|
| Attachment
|
|
|
|
|
|
You need to plug state nodes into the statemachine node. Currently you are not useing states.
|
|
|
|
lol i just updated the Picture wile you were posting,
i set the states into state machine,
i don’t understand very well how to set the trigger.
|
|
|
|
Demian,
try this scene, i didn’t use state machines but you might get some ideas from it.
p
|
|
|
|
you animate the nodes.
yea, i was thinking something like that,
i didn’t know that we have flow around a surface,
is a very interesting and easy thing to set.
but i still have the doubt on how to set the states machines, so i know how to use them in the future. also because i need a constant flow. not just a specific amount of particles.
i appreciated the scene you sent, will help me a lot
|
|
|
|
Here is a simple example scene using states:
|
|
|
|
|
Great, thank you!
Author: bulletprods
|
| Replied: 02 February 2012 09:06 AM
|
|
|
|
|
you make it so Easy!!!
thanks for the example scene.
|
|
|
|
i’m a new user
if i ‘d like add material ect .. in scene link up
AlongCurveToGoal.zip
i must do it from Ice node or in redender node
there are some example
where can i work on ?
Desnos
|
|
|
|
|
|