Topic: Terrain cut off
Import irrlicht.b3d
Global TheEngine:ib3d_engine = _g_ib3d_engine
TheEngine.Graphics3D(800,600,32)
TheEngine.setAmbientLight(255,255,255)
Global MyCamera:CAMERA = TheEngine.createCamera(NUll,CT_FPS )
MyCamera.setRange(1,5000)
Global MyTerrain1:TERRAIN = TheEngine.loadTerrain("HM4.jpg")
Global MyTexture:TEXTURE = TheEngine.loadTexture("Tex4.jpg")
MyTerrain1.Scale(1,.2,1)
MyTerrain1.setTexture(MyTexture)
Global MyLight:LIGHT = TheEngine.createLight()
MyTerrain1.Position(0,0,0)
MyLight.SetColor(200,200,200)
MyCamera.Position(100,200,100)
While (Not TheEngine.KeyDown(KEY_SPACE))
TheEngine.UpdateWorld
TheEngine.RenderWorld()
MyLight.Position(MyCamera.X() ,MyCamera.Y(),Mycamera.Z())
Wend
End
hahaha Another one.
HM4 is the hight Map from Terraed (512.512) (The one by Felix), as is Tex4
Anyway only the first 4th(xCord) is rendered. All of z. So instead of a squre map, there is only a strip.
So cos Im not stupid, I took this to mean that the terrain could only have 65536 Points. So scaled down the Heightmapto 256.256 and it works. So is this an irrlicht limit or irrd3b?