x


Occlusion Pre-Pass questions

Hey folks,

I've been up and down the internet looking for clues and I've had no luck so here goes...

I'm trying to implement Volumetric Light Scattering and I've run into a few snags.

The basic process (unless I misunderstand) is as follows:

  1. Render the background with all the foreground geometry rendered black.
  2. Perform image processing to create crepuscular rays.
  3. Blend the processed image with a "regular" render and voila, godrays.

Conceptually I get it, that's not a problem; I'm just not getting the implementation details for step one. I have a fair amount of programming experience but shaders seem a little alien to me as I'm new to them.

Can/should I get the black geometry image before I stick it into the shader? Can/should I implement this as a multi-pass shader?

Any help, as always, would be greatly appreciated.

Cheers, Ryan

more ▼

asked May 22 '10 at 10:04 PM

Random Indie gravatar image

Random Indie
481 3 8 21

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1740
x204
x67
x20
x1

asked: May 22 '10 at 10:04 PM

Seen: 1225 times

Last Updated: May 22 '10 at 10:23 PM