how to use AllocRayLight?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/05/2005 at 12:38, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.5
Platform: Windows ;
Language(s) : C++ ;---------
Hi,How do I use AllocRayLight?
Here a little code sample from the Output function of my shader.BaseObject* op = cd->vd->op->link; if(!op) return Vector(1.0, 0.0, 0.0); RayLight *light = AllocRayLight(op); if(!light) return Vector(0.0, 1.0, 0.0);
What Object must I pass to AllocRaylight? Where is the right point to run this function, the manual is a bit vague about it. I like to add some own lights in my shader and to calculate the illumination thru my own IlliminationModel.
thanks in advance,
Matthias
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/05/2005 at 02:21, xxxxxxxx wrote:
I believe the object you give to AllocRayLight() is used to fill in values. So it needs to be a light object.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/05/2005 at 02:46, xxxxxxxx wrote:
thanks Mikael, I solved the problem by writing my own
lighting system.