Making a lightmap in 3DStudio Max

Blitz3D Forums/Blitz3D Programming/Making a lightmap in 3DStudio Max

Hi,

I'm having a problem loading a lightmap - made in 3D Studio Max, into Blitz 3D.

The map seems to export from Max fine. I can view it in Photoshop. But, when I try to load it in Blitz, nothing happens to the base textures of the level mesh. It looks like there's nothing there to blend with them.

Here's what I'm doing:

In Max,

The level textures are all assigned to Map Channel 1 and encapsulated into a Multi-Sub Object Material.

I select Render To Texture,

Automatic Unwrap is set to ON,

Map Channel = 2,

512 x 512 size,

Target Map Slot = Diffuse,

then Render.


In Blitz 3D,

;Load Level
level = LoadAnimMesh("Level.b3d")
If (level<>0) Then DebugLog "Level was successfully loaded" Else DebugLog "Level load FAILED..."

ScaleEntity level, MAP_SCALE, MAP_SCALE, MAP_SCALE
PositionEntity level, 0,0,0
EntityType level, WORLD_TYPE, 1

;Lightmap
EntityFX level, 1
Global lightmap = LoadTexture("textures/lightmap/LightMap.bmp")
TextureCoords lightmap, 1
TextureBlend lightmap, 2

;ScaleTexture lightmap, MAP_SCALE, MAP_SCALE (This makes no difference) 

EntityTexture level, lightmap, 0, 1



I'm going to buy Gile[s] next month, but I'd really like to know why this isn't working.

Thanks in advance.

Regards,

Rogue Vector