Multible Terrains

Advanced game related topics
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Multible Terrains

Post by J. Baker »

Is it possible to have multible terrains? When i stretch a single terrain to make it bigger, pc slows down. Didn't know if it was possible to display more then one terrain at a time to make a huge terrain.
Johan_Haegg
User
User
Posts: 60
Joined: Wed Apr 30, 2003 2:25 pm
Location: Västerås
Contact:

Post by Johan_Haegg »

would be nice to load and unload multiple terrains so you can use swapping and fog to create an illusion of a huge terrain while still not putting requirements to state-of-art computer
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Some OGRE plugin use a terrain paging to simulate big terrains dynamically. I will take a closer look to it.
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

Cool, thanks Fred. :D
Johan_Haegg
User
User
Posts: 60
Joined: Wed Apr 30, 2003 2:25 pm
Location: Västerås
Contact:

Post by Johan_Haegg »

Something like:
TerrainID.l = CreateTerrain(Filename$, MaterialID, [ScaleX, ScaleY, ScaleZ, [Precision]],[PosX, PosY, PosZ])

UnloadTerrain(TerrainID)

Ok, there will be some loading-times when switching, but how painfull is that? Not a single bit!

Ok, it would be nice with a terrain that is drawn with precision 1 near the camera and 20 at the end, but thats something for the future, right now multiple terrains would be the thing that would make it possible to do a huge landscape for an adventure game or whatever.

The worst thing that could happen to PureBasic is that i becomes something like a 'Write and Play' language, we want to think a bit to ;)

A friend of mine is currently writeing on a few Yaw & Roll functions in C++
to be included in a game we are writeing in PureBasic & C++. Hope it turns out good, maybe ill post it later for use with the terrain-engine.
Post Reply