B3D lightmaps

Blitz3D Forums/Blitz3D Programming/B3D lightmaps

D4NM4N(Posted 2006) [#1]
in the b3d format is it possible to have more than 1 lightmap per child? Ive got this weird problem where its not allowing me to store additional lightmaps.

ie:

pivot0
|---pivot1
| |---mesh1 texture1 lightmap1
| |---mesh2 texture2 lightmap1
| |---mesh3 texture3 lightmap1
|---pivot2
| |---mesh1 texture1 lightmap2
| |---mesh2 texture2 lightmap2
| |---mesh3 texture3 lightmap2
|---pivot3
| |---mesh1 texture1 lightmap3
| |---mesh2 texture2 lightmap3
| |---mesh3 texture3 lightmap3


Here is the exporter code, but the weird thing is, even though all the debug log output seems ok it writes the same lightmap for each mesh and its driving me mad :~





D4NM4N(Posted 2006) [#2]
AAAARRRRRGGGGGGHHHHHH!!!!!! F@#K !!! WHY WHY WHY cant we have stricts in b3d...

filenameout=e_filename$+".b3d"

should be :

filenameout$=e_filename$+".b3d"

grrr i already had a mesh in the dir that i thought i was writing over, didnt notice the file called '0' till just now!!

Oh well, feel free to use the code if its useful, its a more advanced version than the one thats already in the arcs.


Damien Sturdy(Posted 2006) [#3]
Lol, sweet :)