Hi!
I’m currently trying to get into 3D-graphics programming and just have implemented a simple bsp-loader, which works well with “normal” lightmaps. Since yesterday, i try to use external lightmaps with higher resolution and thought it would be easy. I use the -external -lightmapsize 1024 switches, _lightmapscale=0.125 and load the lightmap from the tga files instead from the bsp-file. It works so far, but it seems that the lightmap uv’s are broken.
Here is a screenshot (with -border to see the red debugging borders around lightmaps):
Any idea how to fix it?
Here’s my build-script:
./q3map2_urt -game quake3 -fs_basepath "/home/palador/dev/boundless/" -fs_game data -meta $1
./q3map2_urt -game quake3 -fs_basepath "/home/palador/dev/boundless/" -fs_game data -vis -saveprt -fast $1
./q3map2_urt -v -game quake3 -fs_basepath "/home/palador/dev/boundless/" -fs_game data -light -border -fast -super 2 -external -lightmapsize 1024 -filter $1