mugen Posted May 4, 2011 Share Posted May 4, 2011 Hi I have a popnet set to emit from points coming from the first input connection I am trying to define my birth rate according to the input points velocity the faster the more particles, the slower the less but I can't find how to use length($VX, $VY, $VZ) in the birth rate it tells me: "Variable is not defined. Using '$VZ = 0'." "Variable is not defined. Using '$VY = 0'." "Variable is not defined. Using '$VX = 0'." I checked the "attributes" tab of my source node and it inherits all attribute. I even tried to "create local variables" but this does not help. do you guys have any idea how to set this up? many thanks! M Quote Link to comment Share on other sites More sharing options...
Marc Posted May 4, 2011 Share Posted May 4, 2011 The source pop doesn't really accept local varaibles in that way. One way of doing what you need is to color the source points based off the length of velocity (ie fill the red channel with the length). And then in the birth probability use $CR, $CR. That way you'll get more points where the red value is high and none where there is no red value. There are other ways, but that's the easiest to explain . M Quote Link to comment Share on other sites More sharing options...
Macha Posted May 5, 2011 Share Posted May 5, 2011 Here is an idea similar to Marc's. I create a speed attribute and use a chopnet and a vopsop to refit it into 0..1 range. I promote this to an area primitive attribute and emit from surface. speed.hipnc Quote Link to comment Share on other sites More sharing options...
mugen Posted May 5, 2011 Author Share Posted May 5, 2011 Hi thanks for your answers! Macha, I should have mentioned I am using point emission so I can't use your trick. Marc, your solution works fine for a surface, but the result is visually not very obvious for a point I can see it stops emitting when $CR==0 but I can't see the decrease in the rate if you could have a look into my file and let me know where I am wrong, would be great! thanks again for your help guys birthrate_and_speed.hipnc Quote Link to comment Share on other sites More sharing options...
Marc Posted May 5, 2011 Share Posted May 5, 2011 hmm yeah... doesn't seem to work on a point for some reason. I'll see if I can come up with something tomorrow at work. Cheers Marc Quote Link to comment Share on other sites More sharing options...
Allegro Posted May 10, 2011 Share Posted May 10, 2011 My recommendation would be to create more points at the point you're emitting from... If you have two points for example, one not moving, and the other with some velocity, you could do some sort of a copy stamping based on length($VX,$VY,$VZ) to create more points at the moving point. Then inside pops, you set it to emit npoints("path to source geometry here") on each substep. Quote Link to comment Share on other sites More sharing options...
Marc Posted May 11, 2011 Share Posted May 11, 2011 I guess that makes sense then. If you only have one point then if your birth probability is > 0 at any frame/substep then you'll get particles birthed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.