Weird 2d Texture Font Problem

  • Follow


Hi Everybody!
Well I've encountered a strange font problem during the implementation 
of nehe lesson #17:
The Font will display, but somewhat mirrored and upside down.

The funny thing is:
As soon as I compile the nehe Project the font is displayed correctly.

Yet even if I copy and paste nehe's code into my project the font is 
             messed up!

Can anybody tell me where the problem could be burried?!

Thank You
M. Ewald
0
Reply Markus 7/12/2004 2:49:15 PM

Markus Ewald wrote:
> As soon as I compile the nehe Project the font is displayed correctly.
> 
> Yet even if I copy and paste nehe's code into my project the font is 
>             messed up!
> 
> Can anybody tell me where the problem could be burried?!
> 

Do you call glPixelTransfer() anywhere to set the
pixel transfer settings? Does NeHe?

-- 
<\___/>          "To err is human, to moo bovine."
/ O O \
\_____/  FTB.    For email, remove my socks.


0
Reply fungus 7/12/2004 3:11:16 PM


fungus wrote:

> Markus Ewald wrote:
> 
>> As soon as I compile the nehe Project the font is displayed correctly.
>>
>> Yet even if I copy and paste nehe's code into my project the font is 
>>             messed up!
>>
>> Can anybody tell me where the problem could be burried?!
>>
> 
> Do you call glPixelTransfer() anywhere to set the
> pixel transfer settings? Does NeHe?
> 
Nope. Neither nehe nor myself. why?
0
Reply Markus 7/12/2004 3:19:36 PM

"Markus Ewald" <nodice@gmx.net> wrote in message
news:ccu8ia$2v3l$1@ulysses.news.tiscali.de...
> Hi Everybody!
> Well I've encountered a strange font problem during the implementation
> of nehe lesson #17:
> The Font will display, but somewhat mirrored and upside down.
>
> The funny thing is:
> As soon as I compile the nehe Project the font is displayed correctly.
>
> Yet even if I copy and paste nehe's code into my project the font is
>              messed up!
>
> Can anybody tell me where the problem could be burried?!
>
> Thank You
> M. Ewald

Maybe nehe setup projection matrix in ortho mode and origin is
top-left. I suppoise you don't set ortho mode correctly, so
you have bootom-left origin and mirrored y axis.

yooyo


0
Reply yooyo 7/12/2004 10:58:47 PM

Thanx yooyo!
Changing glOrtho does help, but even that was copied from nehe.
That is exactly the weird part. Even copying and pasting nehe's stuff
(and I mean all of it, but the windows stuff) does flip the fonts...

any suggestions, anyone?
M. Ewald
0
Reply Markus 7/14/2004 7:15:04 PM

4 Replies
204 Views

(page loaded in 0.074 seconds)


Reply: