here is the code..I export from Max assigned textures with proper flags /Dot3, difuse color, lightmap)...and dot 3 working just fine in Blitz...when I try to apply lightmap, its same like I didnt apply it at all..I really need this to work...I know that texture order should be Dot3->Lightmap->Difuse texture , but still only dot3 is here, no lightmap at all..huhh
Graphics3D 1280,1024,32,1
SetBuffer BackBuffer()
;CREATE LIGHT
light=CreateLight(1)
pivot=CreatePivot()
;CREATE CAMERA
camera=CreateCamera()
PositionEntity camera,0,10,50
cube=LoadMesh("nm.b3d")
ScaleEntity cube,0.5,0.5,0.5
;MAIN LOOP
While Not KeyHit(1)
PointEntity camera,cube
TurnEntity cube,0,-0.14,0
;KEYBOARD EVENTS
;UPDATE DOT3 LIGHTING
;rotate dot3 light
TurnEntity light,0,1,0
PositionEntity pivot, 0, -20, 0
RotateEntity pivot,-EntityPitch(light),EntityYaw(light)+270,0
MoveEntity pivot, 0, 0, 1
r#=(EntityX(Pivot)+1.0) * 32
g#=(EntityZ(Pivot)+1.0) * 32
b#=(EntityY(Pivot)+1.0) * 32
EntityColor cube,r,g,b
;UPDATE THE BUFFER
UpdateWorld
RenderWorld
;UPDATE SCREEN
vwait:Flip False
Wend
End
Graphics3D 1280,1024,32,1
SetBuffer BackBuffer()
;CREATE LIGHT
light=CreateLight(1)
pivot=CreatePivot()
;CREATE CAMERA
camera=CreateCamera()
PositionEntity camera,0,10,50
cube=LoadMesh("nm.b3d")
ScaleEntity cube,0.5,0.5,0.5
;MAIN LOOP
While Not KeyHit(1)
PointEntity camera,cube
TurnEntity cube,0,-0.14,0
;KEYBOARD EVENTS
;UPDATE DOT3 LIGHTING
;rotate dot3 light
TurnEntity light,0,1,0
PositionEntity pivot, 0, -20, 0
RotateEntity pivot,-EntityPitch(light),EntityYaw(light)+270,0
MoveEntity pivot, 0, 0, 1
r#=(EntityX(Pivot)+1.0) * 32
g#=(EntityZ(Pivot)+1.0) * 32
b#=(EntityY(Pivot)+1.0) * 32
EntityColor cube,r,g,b
;UPDATE THE BUFFER
UpdateWorld
RenderWorld
;UPDATE SCREEN
vwait:Flip False
Wend
End