Results 1 to 4 of 4

Thread: Quake II Bsp-files

  1. #1
    Member Contributor
    Join Date
    Apr 2000
    Location
    Hoegaarden, Belgium
    Posts
    71

    Quake II Bsp-files

    how do you generate the texture coordinates for the lightmaps in quake II?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: Quake II Bsp-files

    Are you talking about getting the lightmap texture coordinates of a prelit bsp file, or the actual process of creating the lightmaps?

  3. #3
    Member Contributor
    Join Date
    Apr 2000
    Location
    Hoegaarden, Belgium
    Posts
    71

    Re: Quake II Bsp-files

    I'm trying to make a quake II bsp-viewer, so all the data (BSP/PVS/Radiosity) is allready computed. I've got it all working so far, but i can't find out how the texture coordinates for the lightmaps are calculated. I looked the source code of different Quake II bsp viewers, (they seem to use a different method each time (using the average of the texturecoordinates boundries or the minimum), but i tried both of them and none of them work. It looks like a normal quake II level, but every face has a color blended over it. (If it's not clear, i'll make a screenshot.)

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: Quake II Bsp-files

    If I'm not mistaken, Q2 lightmap coordinates are created in exactly the same way that Q1 lightmap coordinates are. I'd suggest taking a peek at the Q1 source code. The gl_rsurf.c file in particular (It's too much to post).

Similar Threads

  1. Need some help to load Quake MDL Model files
    By Plaigon in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-09-2017, 02:25 PM
  2. Replies: 9
    Last Post: 06-30-2007, 08:12 AM
  3. Quake III BSP Files
    By nukem in forum OpenGL: Advanced Coding
    Replies: 13
    Last Post: 07-05-2003, 09:02 PM
  4. quake bsp files
    By McZ in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-21-2001, 08:48 AM
  5. Quake 3 .bsp files format
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-02-2001, 01:23 AM

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