loading map and rendering to the screen???

This is a discussion on loading map and rendering to the screen??? within the Game Programming forums, part of the General Programming Boards category; hi, i have been having major problems trying to render my little map to my screen using opengl. it appears ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    33

    loading map and rendering to the screen???

    hi,

    i have been having major problems trying to render my little map to my screen using opengl. it appears to read in ok but i am no expert at loading binary files. it renders something completely different to what i expect. its just gibberish, when it should have an A in the top right corner, and a 7 in the bottom right corner.

    If someone could have a look through my loading map routine and rendering routine to tell me where i am going wrong i would greatly appreciate it!
    Attached Files Attached Files
    werdy666!

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    4
    If you open your *.map file in a text editor you will see there is nothing but null characters in it.

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    33

    Talking

    actually in my hex editor i see alot of 00's and 01's!

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    4
    What I meant was there is not any usable data in the file unless that is what was meant to be in the file.

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    33
    yeah all it is is to determine which texture to use in which spot. So for example if its 0 its black, and if its 1 its blue etc etc
    werdy666!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New terrain engine
    By VirtualAce in forum Game Programming
    Replies: 16
    Last Post: 03-16-2006, 01:47 AM
  2. Creating a map engine.
    By suzakugaiden in forum Game Programming
    Replies: 11
    Last Post: 06-21-2005, 05:06 AM
  3. Terrain engine idea
    By VirtualAce in forum Game Programming
    Replies: 15
    Last Post: 04-03-2004, 12:30 AM
  4. the effects of textures on my frame rate
    By DavidP in forum Game Programming
    Replies: 37
    Last Post: 10-03-2003, 11:24 AM
  5. OpenGL screen view coordinates
    By DavidP in forum Game Programming
    Replies: 1
    Last Post: 03-12-2003, 01:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21