This has to set the size of the plane. But I'd like to have a floor plane that extends to infinity in all directions, so that when I move my camera, I'll never reach the end.
there is no true infinity in computers, however you can simulate this.
it depends on what you want exactly.
judging by your code snippet it seems you want a "terrain", with height and all that extending in all directions? if so then you could just tile it dynamically on the fly.
ent1ty wrote:
success is a matter of concentration and desire
Butler Lampson wrote: all problems in Computer Science can be solved by another level of indirection
oh sorry
well if i were to have to do something like this, i would just make a large mesh of whatever you want to tile, in your case that hillmesh scene node, and create x copies of it positioned all around the camera and maybe have a fog set so you don't have to create so many. as the player camera moves just tile more meshes in their correct positions and remove ones that get too far from the player camera.
ent1ty wrote:
success is a matter of concentration and desire
Butler Lampson wrote: all problems in Computer Science can be solved by another level of indirection
Thanks for explaining. So let me try to understand this.
Let's say I create 16 IAnimatedMeshSceneNode at the beginning, and stick them together by calling setPosition() for each of them, to form a 4x4 grid. Then as the camera move in one direction, I just stick more of it to the "front" of the camera, while removing some from the "back" of the camera.