MD5 Renderer... again...

posted in Not dead...
Published May 17, 2008
Advertisement
So, having settled upon doing some D3D10 stuffs last weekend I decided to dive in at the deep end and remake my Doom3 MD5 renderer again in D3D10; this time even animating the thing on the GPU which was a step I never got around to doing.

My inital steps however didn't go that well; while getting a window open to render in wasn't a problem thanks to some copy and paste madeness getting something on the screen proved a slight problem :D

In the end the Gamedev.net forums came to my aid and I discovered that if you pass a vector of 3 components in and multiple them with a 4x4 matrix you need to supply the 4th vector element yourself or it asplodes :D

That problem fixed I finally managed to get something on the screen with my shaders and all was good with the world; however my MD5 model still wasn't showing up.

This was tracked down to the maths lib I was using; it turns out it doesn't zero initalise vector elements so I was effectively adding values to whatever garbage was in memory. With that correct something appeared on the screen at last... however it didn't quite look right, more like someone had gone to town on this model with a baseball bat.

So, I'm currently in the process of debugging this, however it seems at least my bones are in the right location as the black lines show;
MD5 Renderer Broken 1 MD5 Renderer Broken 2

I'm sure I had this problem with my OpenGL version but I'm not sure what I did to resolve the problem which means I need to rack my brains and try to remember... it was only a few years ago I first did it, shouldn't be too hard.. right? ;)
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

Advertisement