Consequently, the normalvector for the xy-plane is [0,0,1] and xz [0,1,0].
Now I’d like to create the plane equation: APx + BPy + CPz + D = 0
A=Nx, B=Ny, C=Nz, D=-(APx+BPy+CPz), so for the first plane A = 0, B = 0 , C = 1 and D = 3, right?
Ok, I think it is not so clear what my problem is.
Anyway, I’m sure that my plane equation is ok.
I’ve got one problem: The teapot and the xz-plane are rendered perfectly, only my shadow makes some problems.
Instead of throwing a shadow of the teapot on the xz-plane, the whole plane is colored black.
I think it is a problem with the lighting, but I can’t see any mistakes.
Here’s the method where my plane and my teapot are displayed: