Hello to all,
I'd like to use the indirectdiffuse() shadeop
of 3dl, but I don't have any example to start.
Is it possible with this function to obtain nice
GI effects like VRay or Maxwell renderer?
(and without multiple photon map/beauty pass like Prman/pixie ?)
I tried in a naive attempt like this..
surface
indirect( float Ka = 1, Kd = 1; float samples=32)
{
normal Nf;
Nf = faceforward( normalize(N), I );
Oi = Os;
Ci = Cs * ( Ka*ambient() + Kd* indirectdiffuse(P, Nf, samples) );
Ci *= Oi;
}
.. with a directional light as main light source.
all surfaces was marked for "trace",
but ALL was solid black!..
..hem I doubt that something could be wrong.. :)
Any help?
thanks in advance.
G.