keys : q and w - speedup the plane
toyplane.rar
IRR4Delphi(cool efect)
IRR4Delphi(cool efect)
Never underestimate the power of Delphi....Ignorance is bliss, but knowledge is power...
-
- Posts: 758
- Joined: Mon Mar 31, 2008 3:32 pm
- Location: Bulgaria
Really nice indeed!!!
JP is right. Just increase the sensivity of the key presses.
Ah, and that trail is just awsome. Though I don`t think I`ll use it, is there any chance of posting some code or at least explain the principle of it? Plz
JP is right. Just increase the sensivity of the key presses.
Ah, and that trail is just awsome. Though I don`t think I`ll use it, is there any chance of posting some code or at least explain the principle of it? Plz
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
The principle is fairly simple, i've seen them posted before and i think someone posted source for them as well so you might find it if you search.
Basically you have a triangle strip like this:
Or thereabouts... my ascii art ain't too hot
And you build up this tri strip progressively putting the new vertices at the position of the plane so it leaves a trail behind it. And then you fade out the oldest vertices and then remove them when they're completely transparent. Applying a nice texture with an alpha channel or alpha blending will give you a nice result.
That's basically it, not very well explained but hopefully you get the idea!
Basically you have a triangle strip like this:
Code: Select all
-----------
|\ |\ |
| \ | \ |
| \ | \ |
-----------
And you build up this tri strip progressively putting the new vertices at the position of the plane so it leaves a trail behind it. And then you fade out the oldest vertices and then remove them when they're completely transparent. Applying a nice texture with an alpha channel or alpha blending will give you a nice result.
That's basically it, not very well explained but hopefully you get the idea!