Jump to content
Sign in to follow this  
  • entries
    88
  • comments
    117
  • views
    62397

Rendering!

Sign in to follow this  
dcosborn

111 views

Well I got static mesh rendering done today. I cleaned up my 3DS and MD5MESH mesh loaders and perfected the format for mesh resources. They have texture coordinates and multiple weights but I didn't have time to do a material loader yet so its rendered in plain, boring gray. That's for tomorrow.

Secondly, I finally broke 20,000 lines of tight C code! I'd celebrate, but I don't have anything to drink and its almost midnight and I'm alone... [crying] [wink]



Notice the smooth shading. I had to calculate and average the vertex normals using my new and untested vector math library. Fortunately its working perfectly so far.

I took a look at the MTR (Doom 3) material format and it looks like it could work. The only thing is that MTR files can contain multiple materials, each with a virtual filename. This works perfectly because my resource loading system already works with virtual pathnames, although it currently enforces a strict heirarchy. Meaning if you scan a resource called data/material.mtr, you can only generate virtual paths below that base path (such as data/material.mtr/wood). I should be able to extend my scanning system to generate paths from the root if you prefix a / to the return value. Another problem is determining that an MTR file is actually an MTR file since they don't store any magic numbers. My system specifically avoids determining type from extensions (for reasons relating to the virtual heirarchy), so I'll have to examine the first few lines to get an accurate identification.

I've got two days left before I have to go to school again. I wanted to get rudimentary animation support done before I head back. That means writing an MD5ANIM loader and working in some vertex shader skinning in two days, along with that MTR loader I didn't finish. I think its doable. Wish me luck!
Sign in to follow this  


2 Comments


Recommended Comments

I just noticed that you have a jEdit image on there… do you use it for all of your coding?

Share this comment


Link to comment
Indeed I do, fellow jEdit user. Ever since I got rid of MSVC and Dev-C++ its been my primary plain text editor. In-editor IRC, heirarchial file list off to the side, recursive directory searches, regular expressions, tabs, good switching support for different line terminators, automatic removal of excess spaces... its great.

Share this comment


Link to comment

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!