Terrain demo not there anymore?

Post Reply
benelot
Posts: 350
Joined: Sat Jul 04, 2015 10:33 am
Location: Bern, Switzerland
Contact:

Terrain demo not there anymore?

Post 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?
zogokovo
Posts: 2
Joined: Tue Feb 02, 2016 1:30 pm

Re: Terrain demo not there anymore?

Post by zogokovo »

Xammond
Posts: 15
Joined: Sun Jan 03, 2016 4:22 pm

Re: Terrain demo not there anymore?

Post 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.
albenchers
Posts: 6
Joined: Sun Jan 17, 2016 7:32 pm

Re: Terrain demo not there anymore?

Post by albenchers »

You can still find the older terrain demo in a previous bullet version, which is still available for download.
Post Reply