Results 1 to 4 of 4

Thread: mip/lump/wad files

  1. #1

    Thread Starter
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755

    Question mip/lump/wad files

    hi!

    i've made a program to read quake's .wad file (WAD2)
    in them, there are textures (MIP/LUMP)...does anyone know how to read them?

    i know this:
    first 16 bytes = name
    next 4 bytes = width
    next 4 bytes = height
    the rest = data...

    the length of the data is aprox width*height*1.33 but i cant figure out why.
    Last edited by cyborg; Sep 22nd, 2003 at 11:34 PM.
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  2. #2
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    Do you know the quality of the textures quake2 uses? I guess the 'data' after the width & height is gonna be something like bytes representing RGB values. (each ranging from 0 to 255, 8 bytes).

    Sorry i can't give you more help.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  3. #3
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049
    They invented a very nice site for that

    http://www.wotsit.org

    Have fun!

  4. #4

    Thread Starter
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    i've allready been there, but it didnt help me...
    i've figured it out by myself though
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width