[Radiance-general] rendering with environment maps

Minjung Kim mkim85 at gmail.com
Mon Jul 20 18:41:12 PDT 2015


Hi there,

I have a question about rendering with environment maps. I set up a scene
consisting of two spheres, one completely specular and one Lambertian, lit
it with one of Paul Debevec's light probes (
http://www.pauldebevec.com/Probes/). The specular sphere is rendering fine,
but the Lambertian one is turning up completely black, and I have no idea
why.

My code looks like this:

# make environment map
void colorpict uff
9 red green blue uffizi_probe.hdr angmap.cal sb_u sb_v -rx 90
0 0

uff glow uff_glow
0 0 4 1 1 1 0

!genbox uff_glow boxenv 100 100 100 -i | xform -t -50 -50 -50

# make materials
void plastic spec # specular
0 0 5 .5 .5 .5 1.000000 0.000000

void plastic lamb # Lambertian
0 0 5 1 1 1 0.0 0.0

# make spheres
spec sphere sph1 # specular
0 0 4 -.5000000 0.000000 0.000000 0.300000

lamb sphere sph2 # Lambertian
0 0 4  .5000000 0.000000 0.000000 0.300000

I then ran it like this:

oconv scene.rad > scene.oct
rvu -vtv -vv 10 -vh 10 -vp 0 -10 0 scene.oct

When I do this, I get a mirrored sphere and a completely black sphere. To
make sure that the problem wasn't with my code, I downloaded this sample
code from Debevec's website (http://www.pauldebevec.com/RNL/Source/). When
I changed the materials in the .rad file to be Lambertian (lines 182-190 in
rnl_scene.rad), the objects rendered as completely black.

Has anybody ever run into this problem before? I am using RADIANCE 4.2, on
OS X 10.7 (home) and OS X 10.9 (work).

Regards,

MJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150720/ac8a37c6/attachment.html>


More information about the Radiance-general mailing list