glShear

BlitzMax Forums/OpenGL Module/glShear

Chris C(Posted 2006) [#1]
okay put your hands up all those who thought it existed!

Which elements of the gl matrix do I need to do what to?

basically I'm implementing a quick and nasty shadow, so a want to skew the model depending on the light position before I scale 1,0,1


ImaginaryHuman(Posted 2006) [#2]
Draw it normal, grab it, draw it on a textured quad that's distorted ?


Chris C(Posted 2006) [#3]
its easier just to draw the 3d model with a shear matrix and then scale it flat

I've been doing other stuff so not had time to implement a shear matrix, has anyone else implemented a shear matrix?


AntonyWells(Posted 2006) [#4]
You could cheat like I did have nab the excellent irrlicht matrix lib. It has shadow functions build in for shadow planes. I think that's what you're after.


Chris C(Posted 2006) [#5]
i take a look thanks for the heads up!