Page 1 of 1

Terrain demo not there anymore?

Posted: Wed Dec 09, 2015 1:40 am
by benelot
I am searching for a proper terrain demo, but I can not find one that shows what I need.

I mainly need to know how to build an initial simple terrain and also what you do when you page in your graphics engine. Let us say I have an infinitely growing terrain (as soon as you move into unknown terrain, it generates more), do I keep all of the terrain in one height map?Is that performant or how should I approach this?

Re: Terrain demo not there anymore?

Posted: Tue Feb 02, 2016 2:12 pm
by zogokovo

Re: Terrain demo not there anymore?

Posted: Wed Feb 03, 2016 3:39 am
by Xammond
Are you looking to create from a heightfield or meshes?

I've always used btTriangleMesh/btBvhTriangleMeshShape with the intention of having caves. These shapes are serialized to disk - which takes a few moments - or quickly loaded back next time (if exists). So for a large area it is split up in to chunks and loaded from a seperate thread, from spawn area outwards.

2.82 has the heightfield demo, it is also animated.
I'm thinking the heightfield method might be the way to go as it is fast and easier to set up for other entities spawning far away - dropping caves from my game.

Re: Terrain demo not there anymore?

Posted: Wed Feb 03, 2016 6:10 am
by albenchers
You can still find the older terrain demo in a previous bullet version, which is still available for download.