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. :)
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. :)