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

Confusion of the highest order...

Sign in to follow this  
_the_phantom_

334 views

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  


0 Comments


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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!