I am learning to use terrain.
For that I stripped the example from klepto.
But I dont see any terrain. And I believe I have to see the wireframe, even if texturing fails.
But I only see my created cube.
Any idea where I failed?
For that I stripped the example from klepto.
But I dont see any terrain. And I believe I have to see the wireframe, even if texturing fails.
But I only see my created cube.
Any idea where I failed?
SuperStrict Import Klepto.minib3d Import "my3d.bmx" Graphics3D 800, 600, 32, 2 ' create a moveable camera Global mCam:myCamera = New myCamera PositionEntity mCam.Cam, 0, 0, 0 ' create a cube Local cube:Entity3D = New Entity3D cube.CreateaCube (0, 0, 0) ' create light Local Light:TLight = CreateLight() PositionEntity Light, 45000, 1000, 45000 Wireframe True ' Terrain Local myterrain:TTerrain = LoadTerrain ("temp_hmap.png", 32) ScaleTerrain (myTerrain, 300, 7000, 300) Local Texd:TTexture = LoadTexture("media/detail1.jpg") ScaleTexture(Texd, 2, 2) TextureTerrain(myTerrain, "color.png", 0) PositionTerrain(myTerrain, 0, 0, 0) myTerrain.TextureDetail(Texd, 2) While not KeyHit (KEY_ESCAPE) myTerrain.update(mCam.Cam) mCam.move3d() UpdateWorld() RenderWorld() Text 0, 0, "Test" Flip 0 Wend