Hard Light Productions Forums

Off-Topic Discussion => Programming => Topic started by: Kosh on September 16, 2009, 08:17:53 am

Title: (hopefully) the last OpenGL question
Post by: Kosh on September 16, 2009, 08:17:53 am
So I finally decided on what I wanted the particle engine to do and I did, but now I am trying to do one last thing on top of it: displaying some simple text, nothing too fancy. Problem: The text won't show up (no compiler errors or warnings, it just won't show). The text engine I got from another tutorial on the same site as before, this time lesson 13 (and yes, credit was given for the work at the top of the code).

Here's my project, minus the debug folder. So how to make them play nice together? I think I missed something when I ported the code.






[attachment deleted by Tolwyn]
Title: Re: (hopefully) the last OpenGL question
Post by: Kosh on September 16, 2009, 06:40:22 pm
Unfortunately there's no one else I can ask for help, none of the people I know in RL know anything about how to use this, let alone getting it to do stuff. You guys are my only hope......  :nervous:
Title: Re: (hopefully) the last OpenGL question
Post by: Stormkeeper on September 17, 2009, 03:17:18 am
Deadline on this?
Title: Re: (hopefully) the last OpenGL question
Post by: Kosh on September 17, 2009, 04:03:35 am
Tomorrow. And no, I didn't wait until the last minute to do this, I wasn't assigned to a group until 2 weeks ago, and even then I had to wait a couple of days for my part of the project. Then I needed a few days to actually decide on what the welcome screen was going to be, and then I had various computer problems (my installation of VC++ crashing constantly being one of them). Needless to say it hasn't been a lucky couple of weeks.

What I have now is sort of enough (it still looks good), but it isn't what I want it to be (and not what it could be) so I'm not satisfied with it. Even if help comes to late here, I would still like to know so if I ever play with OpenGL anytime in the future I can partially base it on this experience.
Title: Re: (hopefully) the last OpenGL question
Post by: Aardwolf on September 17, 2009, 06:05:34 pm
Hmmm... I remember doing the NeHe stuff, and I've never seen wglUseFontBitmaps before... maybe the lesson was rewritten, but the text drawing code there is completely alien to me... Except For The Way He Capitalizes Every Word In The Comments For No Apparent Reason...

Edit: WTF, lesson 13 seems to have been completely rewritten since I learned it.

Edit II: So yeah, I have no idea how that code works, and I've never done anything with glRasterPos in my life. If it worked like the old one did (which I doubt it does), I would have said to make sure that your projection matrix is screen-space ortho (that is, do glOrtho(0, width, 0, height, -1, 1) (but being sure to have the correct matrix mode)). But since it's not the same, I doubt that would help / be at all relevant. Sorry.
Title: Re: (hopefully) the last OpenGL question
Post by: Kosh on September 17, 2009, 11:36:35 pm
That's ok, like I said at this point I interesting in learning it just because it would be cool (I handed in the project with my team this morning).
Title: Re: (hopefully) the last OpenGL question
Post by: Stormkeeper on September 18, 2009, 11:12:27 am
Well, my usage of GLUT was always with a pre-written frame work e.g Popcap framework, Pinky framework, so the commands I used to interface with GLUT would probably have been different.
Title: Re: (hopefully) th' last OpenGL question
Post by: Kosh on September 18, 2009, 09:20:47 pm
The pirate talk makes programming discussions quite interesting.
Title: Re: (hopefully) the last OpenGL question
Post by: Aardwolf on September 29, 2009, 07:12:28 pm
So what became of this? Make anything cool yet?
Title: Re: (hopefully) the last OpenGL question
Post by: Kosh on October 06, 2009, 04:21:04 am
Check your PM's. :)
Title: Re: (hopefully) the last OpenGL question
Post by: Aardwolf on October 06, 2009, 09:10:25 pm
What? I thought you left.

Anyway, the description in the PM made it sound like a lava lamp.