Skip to main content
GameDev.net gamedev.net
🔒 Locked

Form factor for rectangular shaped patch? [for radiosity]

Started by coderchris Dec 18, 2008 at 2:25 PM 0 replies 1k views
Original Post
coderchris
coderchris
Working on a simple radiosity demo, and im currently approximating all of my patches with disks, using the form factor:

A * cos (Theta_E) * cos (Theta_R)
---------------------------------
           PI * R^2 + A
(from nvidia paper) It works pretty well, except my patches are acually quads (not disks) so I get disk shaped artifacts when two surfaces are very close to each other. I am aware of the general point-polygon form factor, but it seems to give very strange results (not to mention is quite a bit more complex than the disk-disk) Does anyone know of a quick closed form form factor between two quads?
David Neubelt
David Neubelt
I feel bad - I knew this answer a few days ago but I didn't have time to post and I figured someone else would :(

Anyway, read the paper "Modelling the interaction of Light Between Diffuse Surfaces", that is the original paper on radiosity and they assume quad patches. If you need help understanding the formula I can go into more details - if you can't dig up the paper email me (my first name followed by my company, readyatdawn) and I'll forward you the paper.

Good luck!

-= Dave
Graphics Programmer - Ready At Dawn Studios

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.