changing tides
Moderator: Moderators
changing tides
Is there any way to raise and lower the water level during a game?
Re: changing tides
There is a LUA-Script to change the Maps- heightmap in game by zwzsg for a KP-Map, if you would use this, you could simulate the effect.
Re: changing tides
Short answer is no. Long answer is yes, but its not worth the trouble.
Re: changing tides
Hmm it would be cool to see the terrain change. what KP map is it?
Re: changing tides
Changing the water level would mean changing the height of the whole map, and for some unclear reason that is slow.
Re: changing tides
the reason is clear, pathing has to be reapplied to the entire map. takes a few seconds, like it does when pathing a map for the first time.zwzsg wrote:Changing the water level would mean changing the height of the whole map, and for some unclear reason that is slow.
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: changing tides
Code: Select all
local function RaiseWater( raiseAmount)
spAdjustHeightMap(0, 0, Game.mapSizeX, Game.mapSizeZ, -raiseAmount)
end
Re: changing tides
As I mentioned in the initial post that demo'ed the Lua
heightmap alteration routines, you can spread out the
processing by adjusting the map in segments. As an
example, you could split the map into 8x8 segments,
and process one segment every X number of game frames.
Tides don't move that quickly (even where I live, next to
the highest tidal variations in the world.)
http://springrts.com/phpbb/viewtopic.ph ... 00#p172300
heightmap alteration routines, you can spread out the
processing by adjusting the map in segments. As an
example, you could split the map into 8x8 segments,
and process one segment every X number of game frames.
Tides don't move that quickly (even where I live, next to
the highest tidal variations in the world.)
http://springrts.com/phpbb/viewtopic.ph ... 00#p172300
Re: changing tides
Something that I didn't mention in the initial post is that
you can mitigate the slope changes between segments by
running a smoothing pass along the segment seams after
it has been adjusted. The width of the smoothing segment
would be determined by the slope adjustment that you can
tolerate, and the amount of shift done in the adjustment.
A large area shift + seam smoothing passes is probably the
fastest way to go. The other thing that you might want to
look into is whether or not the water rendering state would
need to be updated for large heightmap changes (ask jk).
you can mitigate the slope changes between segments by
running a smoothing pass along the segment seams after
it has been adjusted. The width of the smoothing segment
would be determined by the slope adjustment that you can
tolerate, and the amount of shift done in the adjustment.
A large area shift + seam smoothing passes is probably the
fastest way to go. The other thing that you might want to
look into is whether or not the water rendering state would
need to be updated for large heightmap changes (ask jk).
Re: changing tides
trepan wrote: (even where I live, next to
the highest tidal variations in the world.)
Wrong, wrong, the highest tidal variations occur where you live good Sir, and that is not just a coincedence. You create your own gravity field, that attracts all the water, now my company is willing to bid against every other bidder adding up +2000$ on the highest, just to have you near our tidal powerplants. This is a standing offer!
Re: changing tides
Either way it made me laugh.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: changing tides
+1Neddie wrote:Either way it made me laugh.
Re: changing tides
PicassoCT's first foray in to trolling and jokes?PicassoCT wrote:trepan wrote: (even where I live, next to
the highest tidal variations in the world.)
Wrong, wrong, the highest tidal variations occur where you live good Sir, and that is not just a coincedence. You create your own gravity field, that attracts all the water, now my company is willing to bid against every other bidder adding up +2000$ on the highest, just to have you near our tidal powerplants. This is a standing offer!
Re: changing tides
Trolling? Seemed factually accurate...hunterw wrote:
PicassoCT's first foray in to trolling and jokes?