Thread: How I would load in a level

  1. #1
    Registered User jimboob's Avatar
    Join Date
    Jun 2004
    Posts
    40

    How I would load in a level

    Anyone know of any tutorials that give techniques of doing this?
    TIA

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    here's one example. it all depends on how you want to store the level data
    http://nehe.gamedev.net/data/lessons....asp?lesson=10

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    That's a very broad question.

    For instance in my voxel system here is my load sequence:

    Terrain world map(s)
    Terrain map(s)
    Dither maps(s)
    Detail Texture(s)
    Color Map(s)
    ---------------------------> all of above have been completed
    3D Object Info
    3D Objects

    Sprites, sounds, and menu graphics are loaded on startup of game...no need to load into level.

  4. #4
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    lol yes, it is a rather broad question...

    What do you plan to load in? What dimmension (2-d or 3-d)? How are you storing it etc?

    I would go with reading in from a text file, but I'm not sure of what you are asking.
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  5. #5
    Registered User jimboob's Avatar
    Join Date
    Jun 2004
    Posts
    40
    I wanted to load in from a text file and it would be 3d. I'm just trying to think of a way to store it but i could probably find the number of vertices, etc by using the for loop, i think... I'm not too clear about the way memory works...
    Thanks for the help everyone

  6. #6
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    I'd suggest looking over at NeHe's tutorial #25
    http://nehe.gamedev.net/data/lessons....asp?lesson=25
    That covers loading 3D models (albeit points) from text files. I believe modeling programs like MilkShape3D can also export to text files.
    *checks*
    yah, MilkShape can export to text files.

    However, by the sounds of it, I'd suggest before you try to jump in to 3D that you master a bit more of basic C/C++ or at least an API. Without an api you're going to have a tough time displaying the 3d level (if that's your goal).

    If you need any help on file loading, there's tons of stuff in the faq here at cprogramming
    http://faq.cprogramming.com/
    and you can also do board searches for file reading stuff.

    Good luck, hope that helped somewhat

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Listing binary tree numbers by level
    By Nazgulled in forum C Programming
    Replies: 5
    Last Post: 06-16-2008, 10:36 AM
  2. File send app - md5 checksum different when load is put on server.
    By (Slith++) in forum Networking/Device Communication
    Replies: 5
    Last Post: 12-31-2007, 01:23 PM
  3. Just finished assembly assignment
    By xddxogm3 in forum Tech Board
    Replies: 6
    Last Post: 10-08-2005, 04:01 PM
  4. Level Editor
    By jdinger in forum Game Programming
    Replies: 14
    Last Post: 04-03-2003, 06:46 PM
  5. level up 6 times with 40 EXP!?!?!?!
    By Blizzarddog in forum Game Programming
    Replies: 15
    Last Post: 03-05-2003, 12:56 PM