From the course: Houdini: Particles
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create Cd
- [Instructor] The next attribute we're going to create is CD, which we're gonna use as color data to eventually drive the parameter of a shader to be able to change the shader values per instance when we render. A very, very powerful technique in here. So, what we're gonna do is make another point file. I'm gonna call this create CD, wire that into our instance, make it green. Let's go inside here. Okay. So what we're gonna do is we're gonna use a modulo vop node, exact same thing we just did in code in the attribute wrangle. And we're gonna wire this in to the ID, and I'm gonna make this deviser before. So we'll get a zero, two, or three based on whatever the ID number is cause we're gonna use that to drive as switch, and we're gonna have four different input colors. And whatever this modulo result is based on the ID number, it'll switch to that color. So I'm gonna make a parameter. That parameter is going to be a color. I'm gonna call this color one, and then it's label will be…
Practice while you learn with exercise files
Contents
-
-
-
-
-
-
Scene overview1m 1s
-
Particle source object overview2m 4s
-
Create particle sim1m 17s
-
POP Source nodes1m 51s
-
POP Wind: Down2m 8s
-
POP Wind: Noise1m 36s
-
POP Drag: Random1m 40s
-
POP Drag: Age1m 33s
-
POP Drag: Spin1m 41s
-
POP Collision Detect1m 40s
-
POP Kill1m 44s
-
Cache particles2m 13s
-
Process v 14m 57s
-
Rotate N and up by v5m 1s
-
Process v 22m 22s
-
Create pscale3m 22s
-
Create instance3m 2s
-
Create Cd4m 50s
-
Material SOP4m 30s
-
Instance node3m 18s
-
Final render2m 20s
-
-