Difference between revisions of "HowTo:Use radiosity"

From POV-Wiki
Jump to navigation Jump to search
Line 36: Line 36:
  
 
'''Here are some good default settings you can use that are fairly fast and yet not horrible looking.'''<br>
 
'''Here are some good default settings you can use that are fairly fast and yet not horrible looking.'''<br>
pretrace_end 4/image_width<br>
+
<source lang="pov">
count 50<br>
+
radiosity {
error_bound 0.8<br>
+
  pretrace_end 4/image_width
recursion_limit 1<br>
+
  count 50
 
+
  error_bound 0.8
 +
  recursion_limit 1
 +
}
 +
</source>
 +
<br>
 
'''For a more realistic appearance use the following.'''<br>
 
'''For a more realistic appearance use the following.'''<br>
pretrace_end 2/image_width<br>
+
<source lang="pov">
count image_width/2<br>
+
radiosity {
error_bound 128/image_width<br>
+
  pretrace_end 2/image_width
recursion_limit 1<br>
+
  count image_width/2
 +
  error_bound 128/image_width
 +
  recursion_limit 1
 +
}
 +
</source>
  
 
==Shortcuts==
 
==Shortcuts==

Revision as of 10:16, 27 December 2007

Radiosity

Radiosity, also known as global illumination (GI), is a process of calculating diffuse reflecting light in a scene. To use radiosity, include a radiosity block in the global settings. Please note that the default setting for an empty radiosity block is very low quality, if you are unfamiliar with the fourteen different settings that control the look and performance of POV’s radiosity algorithm the easiest way to get started is to use the Rad_Settings macro from rad_def.inc, followed by a boolean for normals and a boolean for medias. The pre-sets from rad_def.inc are...

  • Radiosity_Default
  • Radiosity_Debug
  • Radiosity_Fast
  • Radiosity_Normal
  • Radiosity_2Bounce
  • Radiosity_Final
  • Radiosity_OutdoorLQ
  • Radiosity_OutdoorHQ
  • Radiosity_OutdoorLight
  • Radiosity_IndoorLQ
  • Radiosity_IndoorHQ

So a typical use of radiosity for a scene using rad_def.inc is...

#include rad_def.inc
global_settings {
   radiosity {
      Rad_Settings(Radiosity_Normal,off,off) 
   }
}
#default {finish{ambient 0}}

Uses

Lighting the inside of a house using an outside lightsource.

Specifics

Many small things to consider here.

Here are some good default settings you can use that are fairly fast and yet not horrible looking.

radiosity {
   pretrace_end 4/image_width
   count 50
   error_bound 0.8
   recursion_limit 1
}


For a more realistic appearance use the following.

radiosity {
   pretrace_end 2/image_width
   count image_width/2
   error_bound 128/image_width
   recursion_limit 1
}

Shortcuts

Checks and balances within the radiosity system make it unique!

Notes

  1. Radiosity is slow and requires lots of calculations. Don't turn on without time to waste.
  2. Radiosity usage will vary from scene to scene and taste of the artist using it.
  3. Radiosity is haaaaaaard...