Lightmapped models in Q3BSPs
Lightmapped models in Q3BSPs
For those of you using quake3 BSPs in Irrlitch, you might be interested in learning how to get light maps on models you've placed with GTKradiant. First, you want to make sure you're using the latest version of q3map2, this doesn't come with GTKradiant 1.4, but is available at www.shaderlab.com. Next load up GTKradiant and right click and select misc->misc_model then select your md3 file. The model should load up in radiant and look right, if it doesn't load with textures, then check your file paths. Next, make sure the model is selected and the bring up the entities window (press the N key). You'll want to add the key "spawnflags" and then add the value "4", both with no quotes. Make sure you hit return when setting the value, this will register the change you made. Compile your map and your model should be lightmapped now. Go nuts... Thanks to pjw for helping me figure this out.
md3 model ok in GtkRadiant, and not in IrrLicht
I thought your tip could solve my problem, but it did'nt
Here is my problem :
I have built a small map, put a md3 misc_model inside, and saved it (with GtkRadiant)
I compiled it as a bsp (without the -meta switch) and make a pk3.
So far, so good : When I load the bsp into Quake III Arena, everything is ok : Walls, textures, lights, md3 model.
When I load it into IrrLicht (with IAnimatedMesh*), walls are ok, textures of walls are ok, lights are ok, but the md3 model is not there. It is not a problem of missing textures : It is not there at all!
Any clue about what I am doing wrong ?
Here is my problem :
I have built a small map, put a md3 misc_model inside, and saved it (with GtkRadiant)
I compiled it as a bsp (without the -meta switch) and make a pk3.
So far, so good : When I load the bsp into Quake III Arena, everything is ok : Walls, textures, lights, md3 model.
When I load it into IrrLicht (with IAnimatedMesh*), walls are ok, textures of walls are ok, lights are ok, but the md3 model is not there. It is not a problem of missing textures : It is not there at all!
Any clue about what I am doing wrong ?
while the quake 3 .pk3 format lets you store the .bsp and all the reasources used by it (including textures and .md3 model files), the IrrLicht Q3 map loader DOES NOT SUPPORT ENTITIES.
so it will not load the .md3 unless you specifically tell it to load the model file, and tell it where to go.
someone else on the forum wrote a class that will allow you to extract entity information from the .bsp file, so with that you can automate loading in extra model files as described in the entities in the .bsp, but IrrLicht's .bsp loading capabiltiy does not do this on its own.
so it will not load the .md3 unless you specifically tell it to load the model file, and tell it where to go.
someone else on the forum wrote a class that will allow you to extract entity information from the .bsp file, so with that you can automate loading in extra model files as described in the entities in the .bsp, but IrrLicht's .bsp loading capabiltiy does not do this on its own.
a screen cap is worth 0x100000 DWORDS