Does anyone have any hints on getting YAL to lightmap a native blitz 512x512 terrain? Here's what I'm using and it's producing less than desireable results (not YAL's fault, but mine of course)...
If KeyHit(88)
BeginLightMap(200, 200, 200)
;CreateLMLight.LMLight(x#, y#, z#, r#, g#, b#, range# = 0, castshadows = True, bright# = 10.0, att0# = 0, att1# = 1, att2# = 0)
CreateLMLight( 128,40,128, 219, 219, 255, 0, True, 4)
;LightMapTerrain(terrain, texsize% = 0, blurradius% = 1, selfshadow = False, TotalInfo$)
tex = LightMapTerrain(terrain, 0, .5, 1, "Lightmapping...")
SaveLightMap(terrain, tex,"_lm.bmp","terrain.luv")
EntityTexture terrain,tex,0,0
;ApplyLightMap(terrain, tex)
EndLightMap()
EndIf
Here's the output...
http://www.headpile.com/stuff/_lm.bmp
|