Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Confusion of the highest order...

Sign in to follow this  


So, below, some lovely shots of the Doom3 fat zombie and it all looks nice, huzzah! as I said before...

Just one problem;
I'm no longer sure WHY it works, heh

I probably just need to refresh my brain a bit, but the confusion comes from the TBN matrix.
Now, this matrix takes things from object space to tangent space, which is cool and I understand it.

Just one problem;
My shaders are working out stuff in eye space and then multiplying by the TBN matrix... yet, somehow, it all seems to work and does what I expect... needless to say i'm a tad puzzled at this moment.

It doesnt help that its half a shader from the OpenGL Orange Book and half a GLSL conversion of the Doom3 lighting shader, tweaked a bit because I'm not applying attenuation to my lights.

Ah well, i'll work it out later I'm sure, I'm a bit busy attempting to make the Source engine do pretty things atm... hack hack hack hack hack...

Infact, as I mentioned Source, heres a fun comment I found:
BUGBUG: VPhysics is hardcoded so that vehicles must face down Y instead of X like everything else
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!