Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amount of lightmaps in q3
#4
In quake as any other 3d renderer that uses lightmaps, each polygon has it's own lightmap. There are some minor differences between the quake 1-3

Quake 1 - The lightmaps were stored in a big lump, they were greyscale and you had to find out their size and the polygons lightmap coordinates yourself.

Quake 2 - Same as q1, except the lightmaps now were 24 bit rgb images, so now lightning had colors.

Quake 3 - This version is a bit more hardware optimized. Every polygon still has it's own lightmap, except now the lightmaps are optimally orginased in 128x128 24 bit rgb textures. This is no problem, as the lightmap coordinates that are given in at each vertex are already translated to the correct place in the texture. And the polygon has the index to the lightmap. So all you have to do is upload all the textures to the video card, upload all the lightmaps. Then while rendering the polygon you just enable multitexturing and set te texture coordinates and the second texture (lightmap) coordinates. Meaning that you basically don't really have to do anything. To get the number of lightmap textures, you divide the size of the lightmap lump by 128*128*3, and the size of each polygons lightmap is in the polygon structure itself.

And don't look int to the quake source. It sucks.
oship me and i will give you lots of guurrls and beeea
Reply


Messages In This Thread
Amount of lightmaps in q3 - by SBM Productions - 12-23-2005, 11:28 PM
Amount of lightmaps in q3 - by LooseCaboose - 12-24-2005, 04:59 AM
Amount of lightmaps in q3 - by etko - 12-28-2005, 05:51 PM
Amount of lightmaps in q3 - by Blitz - 01-17-2006, 04:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)