THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/09/2003 at 22:35, xxxxxxxx wrote:
Cinema 4D Version: 8.100
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
void Illuminance2(Vector* diffuse, Vector* specular, Real exponent, Vector* p, Vector* n, Vector* bumpn, Vector* rayv, LONG calc_shadow)
Please define "rayv".
I assume "n" and "bumpn" may be the same ( why would they be different? ).
I assume "rayv" would be the incoming ray "SV( vd->ray->v )".
On 04/09/2003 at 00:35, xxxxxxxx wrote:
Yes, I think 'rayv' is the incoming ray vector. You'd have to convert it to a Vector just like you describe. (The unoptimized source for the IlluminanceN() functions is actually available in Illumination.cpp in the SDK.)
'n' and 'bumpn' can be different if the surface uses bump mapping. (Just like in MaterialData::ChangeNormal().)