Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Here is what happens when you rely on assumptions:

This topic is 5985 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve just spen the past 6 hours debugging a problem where some images appeard to be upside down while other wern''t. I check and rechecked the tga spec. I consulted other peoples code. Noting seemed to make sence as when I thought I had it correct Up I load it and a few textures were upside down. It took 5 hours to notice that the only textures up side down were text. 2 years ago I wrote some code to display text. At the time I was using a flipped image, which I''ve been using ever since. I''ve never been able to work out why new font files were always up side down and had ignored the problem. You guessed it. The font renderer was coded around an unflipped(bottom left origin) tga file I found many years ago. Turns out that quite a few other example on the net are too which is why I had assumed for so long that my code was good. I could drop their code in a presto it''s the same as mine. I spen a hour writing up a new font renderer. Most of that time was spent drawing images on paper of little squares with coordinates on each orner and cross checking every coordinate with my code''s data. So there you go, just because you(I) learnt something off a website doesn''t make it right. Chris Brodie http:\\fourth.flipcode.com

Share this post

Link to post
Share on other sites

  • 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!