expressions for coloring particles!

   5987   6   1
User Avatar
Member
14 posts
Joined: Feb. 2008
Offline
Dear all!!

I'm trying to get an expression in order to color randomly the particles in light brown, dark brown, very dark brown and a little bordeaux tints!
In the shader, I was trying to guess what kind of rand($PT) expression could work, but couldn't find any correct one!

to this picture, I would like to give a feeling of sand! what would be your advice!

Tx all

Attachments:
sand_0002.jpeg (351.1 KB)

User Avatar
Member
696 posts
Joined: March 2006
Offline
you will want to assign a point color attribute that is used as a tint in your shader.

try looking at the color pop.
Stephen Tucker
VFXTD
User Avatar
Member
14 posts
Joined: Feb. 2008
Offline
tx Stephen!
User Avatar
Member
43 posts
Joined: April 2008
Offline
try to lower the size of the sand ,add some specular, and some GI, and
for the sand color, try the color pop…..
User Avatar
Member
14 posts
Joined: Feb. 2008
Offline
Sorry to bother again! but I've seen the “blowing an image away using particles” tutorial!
The expressions used in the point sop of the color section are really great and very useful!!
But I need to use them for a picture which has an alpha!
I am just wondering if the expression would be the same if I add the alpha!
as:add alpha = pic(“../cop2net1/detour4_picnc”,$BBX,$BBZ,D_CA) ??
Thanks a lot for the help!!
User Avatar
Member
1634 posts
Joined: July 2005
Offline
You can do an exhelp in the textport:
exhelp pic
float pic (string copname, float U, float V, float color_type)
The color_type parameter can be one of the following: D_CR, D_CG,
D_CB, D_CA, D_CHUE, D_CSAT, D_CVAL, D_CLUM for the red, green, blue,
alpha, hue, saturation, value, or luminance of the pixel.

The color returned will be interpolated smoothly between adjacent
pixels. For the non-interpolated color, use picni.


EXAMPLES
| pic(“/img/img1/color1”, .5, .5, D_CLUM)
|

RELATED
* picni

* tex

* texni

* res


REPLACED BY
- hou.CopNode
Cheers!
steven
User Avatar
Member
14 posts
Joined: Feb. 2008
Offline
tx very much!!
  • Quick Links