Mini engine, another mesh terrain.

Community Forums/Showcase/Mini engine, another mesh terrain.

Extron(Posted 2003) [#1]
Yes, Another mesh terrain. :)

Demo Sylgwael
Beware 6.6Mo.

For the land collision i don't use linepick or other methode, but my own code. In fact it's the "line intersect" code, but i have modified this code for my personal use.
This code returns the height of the ground, vector of greater slope and the angle of inclination of the triangle.
All these data its used by the mini engine for the control of the player.(actually just the camera)

Land textures are 256x256 merged in 1024x1024, attention this cannot pass on all graphic card. Only one texture at this time.
Land datas are stored in a big file, this mini engine load the data from this file when you change cell.
There is a key to switch over the LOD for the terrain.
There are only 9 cells loaded in the engine at any time.

Here the keys which you can use :
Q = Screen informations On/Off (sorry it's A for me)
CapsLock = run mode On/Off or walk mode On/Off. I'll change this key later.
Z = Wireframe On/Off (sorry it's W for me)
V = Flying mode On/Off
- (numpad) = LOD On/Off
Arrow up = Walk/Run forwards
Arrow down = Walk/Run backwards
Arrow right = Step on the right
Arrow left = Step on the left
PageUp = Up (flying mode only)
PageDown = Down (flying mode only)
ESC = Exit.

This is not perfect, but it work, i hope.

Sorry if my english is not good. :)


Beaker(Posted 2003) [#2]
Does the ace file contain sourcecode? (for those on dialup)


Extron(Posted 2003) [#3]
No source code included.


John-Robin(Posted 2003) [#4]
Nice, but I only see flat terrain. Is not heightmapping supported?

cheers,

John-Robin


Extron(Posted 2003) [#5]
It's not a flat terrain. :)
Are you walk around or run.
The terrain extend in X-32/31 cell and Y-32/31 cells, 64x64 cells, this is a 524288x524288 units terrain. Max height is 32768 units, min height is -2048. Yes there are lacs inside. In fact it is infinite, ground which is not contained in the file is generated automatically has -2048 units, a sea which surrounds the landscape.

This terrain is generated by one of my progs, a landscapeur, from an heightmap of 512x512. I can go until 128x128 cells, if i need. More larger the subdivision of the image, more the ground is smooth.