Skip to main content
gamedev.net
🔒 Locked 🎮 Unity

Reflection Matrix

Started by nachilau 1 reply 1.2k views
Original Post
nachilau
nachilau
Hello, Can anyone give me some ideas how to calculate a reflection matrix that generates a reflection transform of a arbitrary vector/place? Thanks! Nachi
Nachi Lau (In Christ, I never die)www.sky-dio.com/Nachi
Quat
Quat
The DirectX docs give the reflection matrix.

You can do it yourself as well. Just derive the reflection formula for a vector. Then apply this to the standard basis vectors to get the columns of the matrix. For points, it is similar, but there will be a translation involved also, but this can be handled by a matrix, too, if you augment to homogeneous coordinates.
-----Quat
nachilau
nachilau
Thanks! Where can I find the reflection formula?

Nachi
Nachi Lau (In Christ, I never die)www.sky-dio.com/Nachi

Topic Locked

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

Sign in to reply to this topic.