Archived

This topic is now archived and is closed to further replies.

gimp

What is the inside of a plane?

Recommended Posts

A plane is defined by 3 points. Using these three points we can make a face nornmal by taking the cross product of the two vectos that join them. I already have this up and running in my lighting system. For the purposes of building a frustum, if i create a plane then want to say that a certain direction is the ''inside'' how do I do that? A frustum should have all it''s normals pointing inside. How do you make that happen? Thanks Chris

Share this post


Link to post
Share on other sites
Hello

When you calculate the two vectors you must subtract the points in the right order. If you subtract them in counter-clock-wise order then your normal vectors should point to the inside of your frustum, assuming you were inside the frustum when you determined the order.

Hope this helpes

Osku

Share this post


Link to post
Share on other sites