Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amount of lightmaps in q3
#1
Does anyone know how many lightmaps are used per level in quake 3(on average) ? Also, how big would the overall total size of all the lightmaps be in kb? I presume that each lightmap is only loaded into the gfx card vram when needed...
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
Reply
#2
I think its one lightmap per surface in the level. The lightmaps are basically just gray-scale textures and many of them will compress fairly well, so I doubt they take up a huge amount of space.

Not too sure about when the lightmaps are loaded though. You could always have a look at the Quake 3 source, its available now from Id's website.
esus saves.... Passes to Moses, shoots, he scores!
Reply
#3
Lightmap size is based on material for smaller surfaces it is like LooseCaboose said for bigger ones, surfaces are split because of older hardware limitations i think it was 128x128.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)