Below is the code for an infinte landscape I made.(DBP only)
"GrassTiles.bmp" is a 2*2 set of 4 grass tiles, each slightly different.
"lake1.bmp" is just a simple lake texture.
Insert your own files/names for these things
You can use the arrow keys up/down to accelerate/decelerate.
And left/right to turn.
You can only controll your speed when your "on the ground". (ie. You can't brake in the air).
Any advice or help on improveing the following would be helpfull:
[B]
* Smoothness.
There is a slight jerkyness to the movement, I think this is caused when the camera wraps around every 200.
Any ideas how I could get rid of it?
* Camera Banking.
I thought this would be simple, I simply want the camera to tilt left or right according to the "rightTspd"/"lightTspd" values.
Any advice? code please?
I tried using Roll/Camera Rotate, but I either got no result, or a camera that never rolled back when the Turn speed went back to Zero.
* FOV
The field of view changes dianamicaly to make your movement look faster.
What do you think of this techique?
Any ideas how I could make it smoother? (is half values possilbe?)
[/B]
Thanks, any help in any area, or any comments on the code would be nice
"The man who says it cannot be done is generally interrupted by someone doing it." ~ Elbert Hubbard