Skip to main content
gamedev.net
🔒 Locked 🎮 Unity

Transform planes

Started by zurekx Nov 18, 2008 at 2:44 AM 0 replies 800+ views
Original Post
zurekx
zurekx
I just tried to use User Clip Planes (XNA) to cull everything below a particular plane. Since the culling is done after the vertex shader, I must transform the plane with the same transform as the vertices. Normally, if I have a plane, I just transform the normal with the inverse-transpose of my transformation-matrix. But now that I got translations and 4-dimensional matrices, I got a little confused. How should I look at it? Cause somehow I need to take the translation into account, and multiply the vector (normalx, normaly, normalz, constant) with the inverse-transpose.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.