Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/11/2004 at 12:13, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.500 Platform: Mac OSX ; Language(s) : C++ ;
--------- Hello, I am trying to create a custom RayLight within my shaders Output routine:
Vector JLSData::Output(PluginShader *chn, ChannelData *cd) { if (GET_TEX_CHANNEL(cd->texflag) == CHANNEL_ALPHA || GET_TEX_CHANNEL(cd->texflag) == CHANNEL_TRANSPARENCY) return 1.0; VolumeData *vd=cd->vd; if (!vd) return Vector(0.0); BaseObject *obj=vd->op->link; RayLight *licht=AllocRayLight(obj); if (!licht) return Vector(0.0);
The allocation of my "licht" RayLight fails all the time. Could someone shed some light on this
On 13/05/2005 at 02:22, xxxxxxxx wrote:
It seems the object passed to AllocRayLight() needs to be a light object.
On 13/05/2005 at 03:40, xxxxxxxx wrote:
Hi Mikael, yes, I found this out already. Nevertheless thanks for your answer.