I made particles inherit colors form a picture, then I wanted to make them fade into another colour. I use color node in POP, Ramp. set the first point color as this - “point(”../image/null/“, $PT, ”Cd“, 0)” -
it works if I use color node to color a gird instead of a image.
anyone knows why ?
I really dont have the clear concepts of houdini
changing particles color
6043 4 1- laiwayne
- Member
- 58 posts
- Joined: Sept. 2009
- Offline
- xtimmyx
- Member
- 166 posts
- Joined: Oct. 2008
- Offline
I'm not certain but I think you might find some help in this tutorial:
http://www.sidefx.com/index.php?option=com_content&task=view&id=1423&Itemid=132 [sidefx.com]
http://www.sidefx.com/index.php?option=com_content&task=view&id=1423&Itemid=132 [sidefx.com]
- laiwayne
- Member
- 58 posts
- Joined: Sept. 2009
- Offline
- graham
- Member
- 1908 posts
- Joined: Nov. 2006
- Online
The problem seems to be that the parameters for the ramp on the Color POP don't seem to like local variables such as PT, ID, CR, etc which is why you can't use expressions like rand($PT), point(), etc.
I attached a file that does it in SOPs. The ramp has it's first values set to $CR/CG/CB since those are the incoming colors and fades to whatever color using $LIFE.
I attached a file that does it in SOPs. The ramp has it's first values set to $CR/CG/CB since those are the incoming colors and fades to whatever color using $LIFE.
Graham Thompson, Technical Artist @ Rockstar Games
- laiwayne
- Member
- 58 posts
- Joined: Sept. 2009
- Offline
Thank you , graham!
this is what I want. Do you know why the color node doesn't take local Attr. ? Actually, in the same file, I did another color node (color2) to make the ramp take the color form POP/ color, and it does! that is the part really confuse me. if you can check it, that would be very help!! thank you again !!!!!
this is what I want. Do you know why the color node doesn't take local Attr. ? Actually, in the same file, I did another color node (color2) to make the ramp take the color form POP/ color, and it does! that is the part really confuse me. if you can check it, that would be very help!! thank you again !!!!!
-
- Quick Links