PDA

View Full Version : Another "dust" question...


shirak23
11-14-2006, 06:15 AM
I've been trying to do the effect where there are particles (dust motes) floating in the air and the light is causing them to shadow, y'know classic dust motes in daylight look. Anyway, read the other post on this, but I'm not getting where I need to be. I definately need interactive particles moving around (attached air field to camera to push them away), so just mapping noise to a light with fog won't work. Here's my two problems:

1) I've made a new particleCloud shader, with color, to the particles. When I render them out (multipoints) with the hardware rendere, they're just white. Nothing I do in the shading attribute seems to change ANYTHING.

When I render them using the hardware render buffer, they're green. I didn't shade them this way (pCloud shader is brownish, spotlight color is white). Very frustrating.

2) More importantly, no interacting with the light. Won't cast shadows, nada. Oh, they light up when I change the light intensity, but nothing else. I tried using light fog on my light, but nothing (don't even know if that'd work anyway).

Can anyone offer any tips? Seems like it should be an easy thing to do, but...

Would it be a good idea to instance little bits of geometry (maybe tiny spheres) to the points to get them to cast shadows or would that be to processor intensive? I only have 2 1/2 weeks to figure this out.

Thanks!

Oh, yeah, here's a pic of the hardware render buffer image...

frogspasm
11-14-2006, 03:32 PM
Hi Shirak,

The particle cloud shader won't do anything to change the color of a hardware rendered particle. To color your multi-point particles you will have to add an rgbPP attribute.
Under the particle shape's attributes tab, go down to add dynamic attributes.
There you will find the color button. Click on it and you will have the option to add this attribute to the whole system, or on a per particle basis. Try doing it PP. This will add an rgbPP attribute to the Per Particle attributes field. Right click (and hold down) on the rgbPP field and choose "add ramp". This will add a color ramp node with which you can color you particles.

Hope that helps get you closer to what you want.

~Mike D.

shirak23
11-14-2006, 07:41 PM
Thanks for the help, I'll give it a shot! Any advice on part 2 of my question?

CGTalk Moderation
11-14-2006, 07:41 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.