Jump to content
  • Advertisement
Sign in to follow this  
polyfrag

Radiosity patch projection

This topic is 2144 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

I think there are two parts to this.

 

-the simple one is, you calculate the area of the patches, multiply by the cos of the angle between the normal and the direction to the emitting one and by the cos of the angle between the normal of the emitting one and the direction to the patches. that divided by the square distance*pi and you know how much proportional area of the emiting patch is occupied by every other patch. (this is called the 'view factor' or also 'form factor').

 

this would work nicely in object that cannot occlude.

 

-the more complex solution is to discover occlusion. there are a view techniques.

 a) you trace rays between patches to figure out if there is something inbetween occluding those

 b) you trace several rays between patches to also figure out how much occlusion happens, (I've done it that way here: http://twitpic.com/4khy8e )

 b) you render the scene from the point of view of every patch and accumulate the energy of every rendered pixel (in that case you might not need to care about individual patches), that's quite nicely described in: http://freespace.virgin.net/hugo.elias/radiosity/radiosity.htm

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!