Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / ICE - Interactive Creative Environment / How to make some Particles fly along a curve and After Move to a Object.
  RSS 2.0 ATOM  

How to make some Particles fly along a curve and After Move to a Object.
Rate this thread
 
28692
 
Permlink of this thread  
avatar
  • sfu_pelos
  • Posted: 05 November 2008 05:33 AM
  • Total Posts: 101
  • Joined: 21 February 2008 10:12 AM

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.



Replies: 0
avatar
  • grahamef
  • Posted: 05 November 2008 05:57 AM

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.



Replies: 0
avatar
  • sfu_pelos
  • Posted: 05 November 2008 06:21 AM

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
Attachment Attachment
Replies: 0
avatar
  • Daysgone
  • Posted: 05 November 2008 07:52 AM

You need to plug state nodes into the statemachine node. Currently you are not useing states.



Replies: 0
avatar
  • sfu_pelos
  • Posted: 05 November 2008 08:08 AM

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.



Replies: 0
avatar
  • pavanz
  • Posted: 05 November 2008 09:33 AM

Demian,
try this scene, i didn’t use state machines but you might get some ideas from it.

p



Attachment Attachment
Replies: 0
avatar
  • sfu_pelos
  • Posted: 05 November 2008 09:43 AM

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



Replies: 0
avatar
  • grahamef
  • Posted: 07 November 2008 06:15 AM

Here is a simple example scene using states:



Attachment Attachment
Replies: 2
/img/forum/dark/default_avatar.png

Great, thank you!
is the same ? http://www.xsibase.com/forum/index.php?board=34;action=display;threadid=37296

Author: bulletprods

Replied: 02 February 2012 09:06 AM  
/img/forum/dark/default_avatar.png

Great, thank you!

Author: bulletprods

Replied: 02 February 2012 09:06 AM  
avatar
  • sfu_pelos
  • Posted: 07 November 2008 08:57 AM

you make it so Easy!!!
thanks for the example scene.



Replies: 0
avatar
  • desnos
  • Posted: 09 November 2008 09:46 AM

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



Replies: 0