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

Untitled

Sign in to follow this  
Mushu

83 views

So, way back when HopeDagger showed us his awesome logging system (too lazy to get a link to the post) I decided that I had to have one like it. Because... omg, its just so awesome!



Its quite a hack, but it works pretty well. I went through the texture atlas code and added little quirky log messages everywhere to debug the stuff. I was quite surprised to be greeted with this message at one point while re-running the application:

ERROR: Quadtree appears to be corrupted.

This made me lol, because wtf kind of error message is that? It "appears" to be corrupted, okay. So I go into the code to see where I put this message, and right above it -

// none of the children are large enough? Should never happen.

LOL. Okay, so something is borked. The problem is kind of complicated to explain, but essentially when a quad was broken up and had all its pieces filled, it would "lie" about how much space it had left. Wasn't that hard to fix though :3

But yeah. Thanks for the awesome idea, HopeDagger! <3
Sign in to follow this  


3 Comments


Recommended Comments

Well, I made it so I can switch out the output streams. I, uh, didn't get around to writing a special XML/HTML one yet ;_; (though I should, shouldn't I?)

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!