Shakin'
Moderator: Moderators
Shakin'
Made easy with two new LuaUI call-outs, and a LuaUI call-in:
Spring.SetCameraOffset(posx, posy, posz, tiltx, tilty)
Spring.SetExplosionThreshold(power)
Explosion(power, dist, dx, dy, dz) -- call-in
http://trepan.bzflag.bz/spring/shake.avi
Spring.SetCameraOffset(posx, posy, posz, tiltx, tilty)
Spring.SetExplosionThreshold(power)
Explosion(power, dist, dx, dy, dz) -- call-in
http://trepan.bzflag.bz/spring/shake.avi
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
-
- XTA Developer
- Posts: 266
- Joined: 24 Aug 2006, 01:33
I think the shakes getting less as you zoom away si the onyl real fix here.
In OTA the shakes shook the screen just as much looking at the explosion as being on the other side of the map. Also the shakes where too powerful.
A little tuning and the fade out over distance would fix all that.
At average zoom levels I expect shakes to be as small as a single pixel or less, and at most zoom levels so small they make no visual difference.
However at FPS level zoom theyd be much greater. And this is how it should be.
In OTA the shakes shook the screen just as much looking at the explosion as being on the other side of the map. Also the shakes where too powerful.
A little tuning and the fade out over distance would fix all that.
At average zoom levels I expect shakes to be as small as a single pixel or less, and at most zoom levels so small they make no visual difference.
However at FPS level zoom theyd be much greater. And this is how it should be.
For some reason, I thought this was already possible...but it will definatly give Spring a much needed touch of realism. Great job!
PS: If you ever have a problem playing anything audio/visual, I reccomend VLC. It comes with its own plugins for codecs, so it can run everything without having to install anything else.
PS: If you ever have a problem playing anything audio/visual, I reccomend VLC. It comes with its own plugins for codecs, so it can run everything without having to install anything else.
Last edited by LOrDo on 17 Jun 2007, 02:42, edited 1 time in total.