Show differencesHistory of post edits
#Actualrocklobster
Posted 11 June 2012 - 03:07 AM
http://www.lighthouse3d.com/tutorials/glsl-tutorial/the-normal-matrix/
#5rocklobster
Posted 10 June 2012 - 01:13 PM
If the modelview matrix does not scale, or only has uniform scale, a separate inverse-transposed version of the modelview matrix is not needed
but why would the model view matrix only have uniform scale or does not scale? What leads to this to make me use the normal matrix? The model view contains the up, forward and right vectors which would be the normal matrix that is extracted (i think) but this should generally be unit vectors so it should always be uniform scale?
Maybe i'm overcomplicating things, is it really just converting the normal into camera view space without the translation component?
#4rocklobster
Posted 10 June 2012 - 01:13 PM
If the modelview matrix does not scale, or only has uniform scale, a separate inverse-transposed version of the modelview matrix is not needed
but why would the model view matrix only have uniform scale or does not scale? What leads to this to make me use the normal matrix? The model view contains the up, forward and right vectors which would be the normal matrix that is extracted (i think) but this should generally be unit vectors so it should always be uniform scale?
Maybe i'm overcomplicating things, is it really just converting the normal into camera view space without the translation component?
#3rocklobster
Posted 10 June 2012 - 01:11 PM
If the modelview matrix does not scale, or only has uniform scale, a separate inverse-transposed version of the modelview matrix is not needed
but why would the model view matrix only have uniform scale or does not scale? What leads to this to make me use the normal matrix? The model view contains the up, forward and right vectors which would be the normal matrix that is extracted (i think) but this should generally be unit vectors so it should always be uniform scale?
#2rocklobster
Posted 10 June 2012 - 01:07 PM
If the modelview matrix does not scale, or only has uniform scale, a separate inverse-transposed version of the modelview matrix is not needed
but why would the model view matrix only have uniform scale or does not scale? What leads to this to make me use the normal matrix?
#1rocklobster
Posted 10 June 2012 - 12:38 PM
If the modelview matrix does not scale, or only has uniform scale, a separate inverse-transposed version of the modelview matrix is not needed
but why would the model view matrix only have uniform scale or does not scale? What leads to this to make me use the normal matrix?