extras

 

Light Profiles - IES and Eulumdat

 

 

 

Elliptical Filtering

 

 

 

 

 

Hi Resolution Final Gather

A very handy piece of standalone functionality.

 

mentalrayrender -window 280 0 320 600 -finalgather only -finalgather_file fgm1 tile.mi 

This will create a 40 x 600 vertical strip of pre-computed Final Gather sample points positioned through the middle of the image.

In order to reference the multiple Final Gather maps, the .mi file will have to be edited. It is not presently possible to reference multiple Final Gather maps from the command line. Open the .mi file and add the line emboldened below: (customized for your scene)

options "miDefaultOptions"
object space
desaturate off
colorclip raw
premultiply on
dither on
gamma 1.
acceleration bsp
bsp size 10
bsp depth 40
task size 0
contrast 0.04 0.04 0.04 1.
samples 0 2
filter box 1. 1.
jitter 0.
samplelock on
scanline on
trace on
trace depth 1 0 1
shadow segments
shadowmap on
shadowmap rebuild off
caustic off
globillum off
finalgather on
finalgather file [ "fgm1", "fgm2", "fgm3" ]
finalgather accuracy view 400 1. 0.1
finalgather rebuild on
finalgather filter 1
finalgather falloff 0.
finalgather trace depth 1 1 2

The next step involves rendering out the individual tiles using the following command structure; the -window flag has again been adjusted for each tiled section:

Tile 1 

mentalrayrender -window 0 301 300 600 -v 5 -file_name tile1.tif tile.mi


The emboldened lines below (from the command line echo) indicate that Final Gather maps 2 and 3 
are being appended to the first Final Gather map (fgm1) in the list above.

----------------snip--------------------------

RCI 0.0 info : allocated 2 MB, max resident 2 MB
PHEN 0.0 info : ----------------------------------------------
PHEN 0.0 info : mayabase version 6.1, compiled on Apr 10 2004.
PHEN 0.0 info : ----------------------------------------------
RCFG 0.0 info : loading saved final gather points
RCFG 0.0 info : 6745 finalgather points loaded from fgm2
RCFG 0.0 info : 32973 finalgather points loaded from fgm3

RCFG 0.0 progr: computing final gather points
RC 0.0 progr: computing camera volumes
JOB 0.0 progr: 0.3% computing final gather points on pc-aharris.0
JOB 0.0 progr: 0.6% computing final gather points on pc-aharris.0
JOB 0.0 progr: 0.9% computing final gather points on pc-aharris.0

----------------snip-----------------------------