Problem with Roamalgo

BlitzMax Forums/BlitzMax Programming/Problem with Roamalgo

klepto2(Posted 2006) [#1]
Hi guys, As you may know, I try to implement a Terrain Rendering class to Minib3D, and after some problem I had have with quadtree terrains I have found a java source for simple roaming. Now I have converted this code to BMax to go with Minib3D. But there are several problems I don't know where they come from:

First the original source is located here: http://homepage.mac.com/jhuwaldt/java/3DStuff/ROAMApp/ROAMApp.html
this is how i converted it to BMax:


As a Heightfile every image which is power of 2 will work.

No my problem:

As you will see, the test app will wirst start a 2d mode, which I have used to check if the triangles are draw right. That's because in the 3d context there appear no triangle also if they where rendered. The next problem is, that there seems to be no update, so the triangles are not really splitted and the triangles are always th same.

Maybe someone with greater experience in Java could take a look to this both sources and maybe he finds out what i was (i lack of java experience) converting wrong.

thx klepto2