THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/09/2003 at 11:52, xxxxxxxx wrote:
Cinema 4D Version: 8.200
Platform: Windows ;
Language(s) : C++ ;
in my plug-in C4Dfx I want not only to support Cg shaders but also to emulate the standard Cinema 4D material. To this end, I'd like to know how Cinema computes the specular lighting. Somehow there has to be a conversion from the "Width" parameter to a Phong exponent. And so on. Maybe there is a code snippet demonstrating how Cinema's parameters enter the lighting model? This would save me some hours of trial and error.
Thanks in advance.