How do I create a loop-around world?

Blitz3D Forums/Blitz3D Programming/How do I create a loop-around world?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hmmm the multiple render thing sounds like a really good solution.

You would have to set the cameraclsmode so it doesn't render over the last one and make sure you only render your skybox (if you have one) first and once.

If your landscape was 10x10 for example, if you were moving forwards (ie z+) you'd need to first render your terrain from zpos-10 then render your normal view with a cameraclsmode set to off. This would mean you'd first render the distant view followed by the close view.

Likewise if you're moving right (x+) you'd first render at xpos - 10 then the normal view (you'd had to render the distant views too).

Therefore you'll need to do 4 renders per frame but theres not really a big hit doing multiple renders. Certainly less that duplicating all your objects and managing what's going on.

On top of this if you're rotating the cam you'll need to do something a bit clever to know what to render but certainly shouldn't be too much of a hassle to manage.

Might have to have a play with this tonight when I've got blitz infront of me. Like the idea of that tough.