velocity attributes

   11623   10   0
User Avatar
Member
37 posts
Joined: Aug. 2012
Offline
hi

i'm going through “lesson10: particles.”
i have a set up of a sphere shooting down particles and 50%of them belongs to “A_group.” and A_group particles are blown by popfan. then the instructor added “velocity” node to slow down x and z directions by adding $VX*0.9, $VY, $VZ*0.9 in the velocity field.

however, it seems like $Vs are no longer working(it game me red error) so i used @v.x, @v.y, v.z instead. but now all velocity in A_group becomes 0s.

what did i do wrong?
thanks,

hb

Attachments:
Screen Shot 2016-06-09 at 6.51.55 PM.png (309.9 KB)

User Avatar
Member
2537 posts
Joined: June 2008
Offline
Instead of typing in the Velocity fields use code in the VEX window. Also remember to enable the popvelocity node, in your screen shot you have it turned off.

Adjust multiplier as needed.
v = set(@v.x*0.1,@v.y,@v.z*0.1);
Edited by Enivob - June 10, 2016 09:11:23
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Yeah POP Velocity DOP along with all the other POP * DOP's do not work with local variables at all. You can key frame these values but that's about it there. Don't use expressions in these parameters.

Use Enivob's wrangle expression above.
or…
v = @v * {0.1, 1, 0.1};
or
v = @v * chv("vel_scale");
and add a spare vector float 3 parameter to the POP Velocity DOP's interface to tweak with parameters. See the image for the sequence visually.


This is the exact reason we added wranglers to Houdini in the first place: to write/wrangle quick expressions in POP * DOPs.

Attachments:
popvel.jpg (788.8 KB)

There's at least one school like the old school!
User Avatar
Member
37 posts
Joined: Aug. 2012
Offline
thanks for the various method. got that figured it out.

can i ask one more question on the next example? in the next example, he set any particles below -2 in Y axis he group them.

so i enabled vex and typed

ingroup = @t.y < -2;


but i got an error. what's the proper way to do this?
thanks again,

hb
Edited by garin2 - June 10, 2016 19:58:57

Attachments:
Screen Shot 2016-06-10 at 4.55.04 PM.png (299.4 KB)

User Avatar
Staff
2540 posts
Joined: July 2005
Offline
ingroup = @P.y < -2;


t works in those wranglers that has an explicit “t” named parameter that supports local wranglers. With these you can read and write without the “@”. Not in the POP Group DOP though.

@P returns the incoming point position.

If you forget the globals, just put down a POP VOP DOP, dive in and inspect the name (not label) of the outputs on the Global Variables VOP.
There's at least one school like the old school!
User Avatar
Member
37 posts
Joined: Aug. 2012
Offline
as a beginner which variables are working in POP, DOP, or VOP is the most confusing to me. it would be amazing if there is a list or something that i can refer to.

jeff
If you forget the globals, just put down a POP VOP DOP, dive in and inspect the name (not label) of the outputs on the Global Variables VOP.

could you explain what you meant by “put down a POP VOP DOP, dive in and inspect the name of the outputs on the Global Variables VOP”?

this seems like what i was looking for. i want some reference example where i can look into it. this will sure solve a lot of my questions and significantly reduce my postings. :-)

thanks jeff,

hb
User Avatar
Member
1737 posts
Joined: May 2006
Offline
A gif is worth a thousand words.

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
1737 posts
Joined: May 2006
Offline
A gif is worth a thousand words.

Edited by mestela - June 12, 2016 02:25:45

Attachments:
pop_vop.gif (183.2 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
I really need to post animated gif's.
There's at least one school like the old school!
User Avatar
Member
37 posts
Joined: Aug. 2012
Offline
mestela
A gif is worth a thousand words.

hahaha this is great!
User Avatar
Member
1737 posts
Joined: May 2006
Offline
A combo of words, gif, hip is hard to beat.

Licecap is easy to use, free, runs on OS X/Windows, and Linux via wine.

http://www.cockos.com/licecap/ [cockos.com]
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
  • Quick Links