THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/10/2007 at 14:10, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10
Platform: Windows ;
Language(s) : C++ ;
---------
Hi!
I'm trying to write a shader and therefor I need the normal of a surfacepoint.
> _
> Vector Shader::Output(PluginShader *sh, ChannelData *sd)
> {
> if(sd- >vd != NULL)
> {
> Vector vector1 = sd->n;
> Vector vector2 = sd->vd->orign;
> Vector vector3 = sd->vd->n;
> Vector vector4 = sd->vd->GetNormal(sd->vd->op,sd->vd->sid);
> }
> }
> _
Cinema crashes at all of these variants and I am not sure what I am doing wrong. I just want the normal of the actual surface point for further computations.
Thanks a lot for your help.
Nice greetings,
Manuel