Kaedroho - My game suddenly won't show the terrain (maybe because of dll update (haven't updated the dll in some time))?
Code:
terrain = UT MakeTerrain()
UT SetTerrainHeightmap terrain, Map.HeightmapID
UT SetTerrainTexture terrain, Map.BaseTexture
UT SetTerrainDetail terrain, Map.DetailTexture
UT SetTerrainLOD terrain, 4
UT SetTerrainScale terrain, 12
UT SetTerrainYScale terrain, 2
UT SetTerrainSplit terrain, 16
UT SetTerrainDetailTile terrain,8
UT SetTerrainLODDistances terrain,1000,3000,5500,0,0,0
UT BuildTerrain terrain
// Build routine
Building=1
while Building
// The visual object
object=find free Object()
// The Physics Object
phyobject=find Free Object()+1
// Generate a sector
progress=UT ContinueBuild(object,0,0)
`Set Object Light object, 0
`Position Camera Object Position X(Object), Object Position Y(Object)+500, Object Position Z(Object)
`Position Camera CurveValue(Object Position X(Object),Camera Position X(),50), 500, 0
`Point Camera 2000, 0, 2000
///////////////////////////
// PHYSICS COMMANDS HERE //
///////////////////////////
` Sc_SetupObject Object, 0, 0
if progress=-1
Building=0
else
center text screen width()/2,(screen height()/2)-300,"Loading Terrain: "+str$(progress)+"%"
`Paste Image Logo, (Screen Width()/2)-(Image Width(Logo)/2), (Screen Height()/2)-(Image Height(Logo)/2)
sync
endif
endwhile
Thanks
Jeff
You're the
'th to view this signature!