Will give you irradiance (surface color only, single bounce) which includes the environment lookups.
I noticed that PRMan has a "environmentcol",col argument to occlusion which returns the environment color only, not the occluded hit colors (as "irradiance" does) if that's any use to you, I'll probably add it for the next release. For now, it is possible to retrieve a smoother result (though affected by occluding object colors) using the environment map in occlusion() .. I'll also try to fix the environment lookup issue for next time.
Cheers
George
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Okan! Hi George!
I tried Pixie 1.4.3: improvements and fixes are nice, but environment map bug is still here.
See: http://www.george-graphics.co.uk/pixiewiki/cgi-bin/wiki.pl?ProblemRIBS
(Ambient Occlusion with Environment Map)
Best regards,
Massimiliano_g
Sorry about that, missed out that one.
Both occlusion() and indirectdiffuse() now support the environment map directly. Ie.
float occ = occlusion(P, Ns, samples, "environmentmap", envmap,
"irradiance", envcolor);
Will give you irradiance (surface color only, single bounce) which includes the environment lookups.
I noticed that PRMan has a "environmentcol",col argument to occlusion which returns the environment color only, not the occluded hit colors (as "irradiance" does) if that's any use to you, I'll probably add it for the next release. For now, it is possible to retrieve a smoother result (though affected by occluding object colors) using the environment map in occlusion() .. I'll also try to fix the environment lookup issue for next time.
Cheers
George
Thanks, George.
Good work,
Massimiliano_g