Results 1 to 3 of 3

Thread: Creating a loading function for ASE files

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1

    Creating a loading function for ASE files

    I would consider myself large newbie to the 3d computer game field . With that in mind, my question has to do with creating a loader function for 3d files. I have never created a file format, or created a loadeder for one. I have been reading the threds in which many suggestions fly around, from building your own, to using sombody elses. I also have seen a website for the 3ds/ASE format, although, as a novice, I am unsure how to go about creating a loader, what do with the data, even for a simple format like ASE. This is not directly OGL releated, but I'm sure one of you on the forms could help me out . I would like to know where I could read up on creating file loaders, just generally, or more geared toward 3d graphic formats.

    Thanks in advance!
    (Of course, this could be the part I missed in my C++ classes )

    [This message has been edited by cmos (edited 06-05-2001).]
    --Reese Rankin
    Rejgond.com- http://www.rejgond.com

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Creating a loading function for ASE files

    Creating a loader is no more complicated than using standard C/C++ file loading routines such as fstream objects or fopen/fread and parsing the data to get the info you need. In the case of 3d models that info includes vertex data at a minimum and usually other things such as normals, texcoords, and material info as well.

    Usually you need to learn the layout of the format you are parsing in order to know exactly how to find where the data you want lies, and then extract it and put it into arrays so that you can use the data to display your model.

    I haven't looked specifically at the ASE format myself yet, but from what I've heard it is pretty easy to figure out where things are just by looking at it. It is a pure text format so you can just open one up in something like Notepad to look at. For other formats, http://www.wotsit.org is a good place to check for specific file format information.
    Deiussum
    Software Engineer and OpenGL enthusiast

  3. #3
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    333

    Re: Creating a loading function for ASE files

    I find I get loaders to 90% work but never fully and I can never debug them either. AS long as you are moderatly good programmer then making a loader for a lot of the simpler file formats is easy, if you try doing some impossible binary compressed thing then it aint .
    Reality is for idiots only the best over come it!

Similar Threads

  1. Creating viewer for .3ds-files
    By hulapupp in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-14-2005, 02:33 AM
  2. Creating OpenGL data object files
    By LDB in forum OpenGL: Linux
    Replies: 1
    Last Post: 12-06-2004, 12:16 AM
  3. Loading 3DS files
    By dslprog in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-12-2004, 07:23 AM
  4. Creating .bmp files in vc++
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-29-2000, 06:45 PM
  5. loading RAW files / general model loading question
    By tcs in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-23-2000, 12:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean