Thread: Having some problems with texture mapping and timebased movement(OpenGL).

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    18

    Having some problems with texture mapping and timebased movement(OpenGL).

    Its been a hectic week for me. Usually I don't ask for help but I'm desperate. I've been following tutorials from both gametutorials.com and nehe.gamedev.net regarding OpenGL. I know how to set up a camera. I know enough about 3D Vectors and the equations that need to be perform in order to strafe, move forward, backwards, and rotation. But ever since I added timebased movement to my program. Things went downhill from there. I created a function called "CalculateFrameRate". Not in the mood to post an exert from that function right now(PC acting fuzzy). But its an exact replica of the gametutorials.com function, but yet it doesn't perform well. Instead of the camera moving 1 step at a time on the axis. It moves like 20,000 steps. Very weird glitch.

    At first I thought this was some kind of freak accident. So while I was angry I wanted to program my pain away(sounds weird, I know). So I moved on to texture mapping. I memorized everything thoroughly. But just when I thought things would get better. The bitmap wouldn't load onto my program. All I see is a blank yellow 2D rect in 3D space.

    I've uploaded my program(its all in a .zip file) onto this topic. The .zip is like 106kb. It contains my executable, some source code, a single .bmp(the one I'm trying to load), and the glaux.dll

  2. #2
    I am looking at your code and it will take me a little longer to try and see what is wrong but something simple you could do is write a function that displays the important values to see if the math is being done right. Write a debug code that displays the FrameInterval and Speed values as they occur in your code.
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

Popular pages Recent additions subscribe to a feed