View Full Version : fake volume particle

05-25-2010, 07:42 AM
curious, anybody understand how it was done?


05-25-2010, 09:28 AM
from what I can tell, they use the lighting in the scene to determine the direction of fall off on the gradient image. So if the scene lighting has a light to the left of the smoke, it creates a gradient image with the light side on the left graduating to black on the right.

Then that image is combined with the smoke image in the sprite, like you would in photoshop with an add or multiply or something.

Finally that adjusted image is used in place of the original smoke sprite, thus giving the impression that the sprite received lighting and cast shadows on itself.

Very interesting technique.

05-25-2010, 10:32 AM
ah, ok, so sort of like a Z-depth trick, interesting,...
guess it could be improved even further, rendertimes would be super-low.