How to know if a triangle is facing the camera?

Blitz3D Forums/Blitz3D Programming/How to know if a triangle is facing the camera?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks both. I seem to be having a problem that my triangle normals are correct. I can calculate the mid point of triangle ok, and I would expect to see my normal coming out 90 to the surface, however the seem to be coming out at an odd angle. I've tried the codes in the archives, but seem to be doing something wrong.

Does anyone have a demo showning the a triangles norm, or a demo showing when a face is visible to the camera? Here's hoping as my head is hurting ;)

Cheers again,


Unc