Basic Half-Life Map Support For Stock GLQuake
in baker's stuff, I don't see the divide-by-3 for the lightmap offsets.
Also, that 'beam' brush in baker's screeny seems to have the same lined effects, as well on the walls.
Ah, right... step #13 is wrong. It greyscales it, but leaves it as 3-componant. Which is wrong.
What you should do is divide the surface lightmap offsets by 3, and average the 3 rgb lightmap values and scale them down.
so:
loadmodel->lightdata = loadmodel->lightdata[i+1] = loadmodel->lightdata[i+2] = out;
becomes:
loadmodel->lightdata[i/3] = out;
but yeah, you need to divide the msurface_t lightofs field by 3 too, but only for halflife maps.
Also, that 'beam' brush in baker's screeny seems to have the same lined effects, as well on the walls.
Ah, right... step #13 is wrong. It greyscales it, but leaves it as 3-componant. Which is wrong.
What you should do is divide the surface lightmap offsets by 3, and average the 3 rgb lightmap values and scale them down.
so:
loadmodel->lightdata = loadmodel->lightdata[i+1] = loadmodel->lightdata[i+2] = out;
becomes:
loadmodel->lightdata[i/3] = out;
but yeah, you need to divide the msurface_t lightofs field by 3 too, but only for halflife maps.
-
- Posts: 368
- Joined: Thu Jun 25, 2009 4:45 am
- Location: Michigan
That fixed worked great for me.ceriux wrote:spike doing this has actually made the lighting worse. there is a tutorial for some kind of a shadow fix or better shadows or something. if i implement that do you think it would fix the issue im having? because that last fix made it worse as you can see below.
Thank you Spike.
Also, I don't think this is the only implementation needed to use worldcrafts half life waypoints for bots, it would require customized bots.
It would make scripted events much easier if you applied it to monsters.
but they're both in the same function right? i changed both of those that were similar to each other. the effect was more or less the same.
what if i tried to implement colored lighting? im just wondering if its just how the lighting is kind of a hack? im not sure. if you guys want ill post up that section of the function.
what if i tried to implement colored lighting? im just wondering if its just how the lighting is kind of a hack? im not sure. if you guys want ill post up that section of the function.
-
- Posts: 368
- Joined: Thu Jun 25, 2009 4:45 am
- Location: Michigan
I also ran into that problem.Downsider wrote:I was implementing this, and I noticed WAD3_LoadTextureWadFile is never used. I managed to load up each WAD file manually by just chucking a WAD3_LoadTextureWadFile("halfelife.wad"); somewhere in host.c, but that's obviously not the desired method..
Also, Ceriux, are the halflife maps your testing with the stock half life maps or are they custom maps?
If you guys are making your own maps, please compile the WAD into the map itself. Then you don't need external wads.Downsider wrote:I was implementing this, and I noticed WAD3_LoadTextureWadFile is never used. I managed to load up each WAD file manually by just chucking a WAD3_LoadTextureWadFile("halfelife.wad"); somewhere in host.c, but that's obviously not the desired method..
Example: http://quakeone.com/proquake/src_other/halflife.bsp
^^ That map has the WAD compiled into it.
Unless you have a well-defined texture set that is going to be used across a series of maps, when you compile the Half-Life map the WAD should be compiled into it, IMHO.
I got Half-Life maps working fine, but there's a problem. I've got an extremely RAM budget, and it would be better if I could render each texture as a paletted image. I'm not too familiar with how this can be done?
I don't need somebody to hold my hand, just throw a few pointers as far as storing the palette and calling it back later.
Also, would switching the palette for each texture cause rather major slowdowns?
I don't need somebody to hold my hand, just throw a few pointers as far as storing the palette and calling it back later.
Also, would switching the palette for each texture cause rather major slowdowns?
The main problem is that I have to store the palette somewhere and I'm not sure how exactly I should go about doing that, and when it needs to be loaded, but most importantly, when to revert to the original Quake palette.ceriux wrote:i probably dont know what im talking about , but have you tried making them sample down ?