Map edges, how can they be fixed? - Page 3

Map edges, how can they be fixed?

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

User avatar
KingRaptor
Zero-K Developer
Posts: 838
Joined: 14 Mar 2007, 03:44

Re: Map edges, how can they be fixed?

Post by KingRaptor »

FLOZi wrote:looks awesome, what did you do with the corners?
corners = also a heightmap copy, just flipped on both axes (it's actually in the screenshot, though not recognizable as such)

Needless to say the heightmap can be tiled indefinitely in any direction.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Map edges, how can they be fixed?

Post by smoth »

Very cool
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Map edges, how can they be fixed?

Post by FLOZi »

KingRaptor wrote:
FLOZi wrote:looks awesome, what did you do with the corners?
corners = also a heightmap copy, just flipped on both axes (it's actually in the screenshot, though not recognizable as such)

Needless to say the heightmap can be tiled indefinitely in any direction.
Simple yet brilliant :shock:
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Map edges, how can they be fixed?

Post by MidKnight »

Very nice!

You should try fading the mirrored height map to some kind of smoothed noise as it gets farther from the map. That makes it less obvious that the heightmap's mirrored. :)
User avatar
Petah
Posts: 426
Joined: 13 Jan 2008, 19:40

Re: Map edges, how can they be fixed?

Post by Petah »

So when this gonna be in master?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Map edges, how can they be fixed?

Post by knorke »

never, its a game thing.
User avatar
KingRaptor
Zero-K Developer
Posts: 838
Joined: 14 Mar 2007, 03:44

Re: Map edges, how can they be fixed?

Post by KingRaptor »

http://code.google.com/p/zero-k/source/ ... l_grid.lua
for those who wants

(The "options" variables are used by ZK's main menu; they should be removable without issues)

The texture I used is here, or you can make your own
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: Map edges, how can they be fixed?

Post by 1v0ry_k1ng »

this in master pls. also, make heightmap below the waterlevel on a map edge = flatness at water level 0 forever, so island maps are surrounded by flat holosea.
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: Map edges, how can they be fixed?

Post by SirArtturi »

Its cool, but mirroring the heightmap seems a bit unintuitive and obvious.

Still, it could be very good way to improve our current maps by making it engine side.

Imo best solution for new maps would be including this into map format, so that it would be possible for map to draw bigger heightmap and texture only the playable area. In other words, only certain area of the map is textured and pathed, but the rest of the map is still rendered like this...
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Map edges, how can they be fixed?

Post by very_bad_soldier »

SirArtturi wrote:Its cool, but mirroring the heightmap seems a bit unintuitive and obvious.
How about varying the heightmap by some algorithm instead of using them 1:1 mirrored? Or generating random heightmaps by some noise generator?
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Map edges, how can they be fixed?

Post by Pxtl »

very_bad_soldier wrote:
SirArtturi wrote:Its cool, but mirroring the heightmap seems a bit unintuitive and obvious.
How about varying the heightmap by some algorithm instead of using them 1:1 mirrored? Or generating random heightmaps by some noise generator?
Yeah, that. I'd do analysis on the map to determine its general noisyness (high-frequency vs. low frequency, magnitude) and try to clamp the curves coming immediately away from the map to the angle of incidence with the map edge.

No, I have no idea how to code that algorithm.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Map edges, how can they be fixed?

Post by smoth »

Image

looks pretty good to me

just no shadows.. and it has a few gap issues.
Image
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Map edges, how can they be fixed?

Post by MidKnight »

Arturri, VBS, Pxtl: Scroll up. :-)

Smoth: Nice.
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: Map edges, how can they be fixed?

Post by SirArtturi »

Yeah smoth, It's good, definitely better than hard edges.

Btw, your map is the winrar here. You could try the solution with something less beautiful ;)
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: Map edges, how can they be fixed?

Post by SirArtturi »

MidKnight: Yes I know you flipped the mirroring, but the fact that the mirroring is there is still IMO not the best solution (its very good one though, no doubt.)

What I as a mapper always dreamed was that I could have total control over how the unplayable area would look like. I just wondered if this could be included into the map format so that mapper could define where the pathing and texturing ends, and grid rendering starts. Fog would do the rest of the fading and blending...

This way you could create very seamless and realistic landscapes without any unintuitive and awkward cutoffs.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Map edges, how can they be fixed?

Post by smoth »

options are nice and all but I would like to see it working solid with less issues first..

Image
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: Map edges, how can they be fixed?

Post by SirArtturi »

Last screen is actually jaw droppingly awesome. Love the red stripes and how they indicate that the area is unplayable.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Map edges, how can they be fixed?

Post by FLOZi »

In 83 you can actually apply the real map texture too
Pako
Posts: 174
Joined: 12 Jul 2009, 18:57

Re: Map edges, how can they be fixed?

Post by Pako »

I opened the code and it was so sickening I threw up this to my keyboard.
ImageImage
Attachments
screen00058.gif
(466.68 KiB) Downloaded 2 times
screen00067.gif
(764.19 KiB) Downloaded 2 times
gui_map_edge.lua
(5.78 KiB) Downloaded 226 times
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Map edges, how can they be fixed?

Post by smoth »

interesting.

it still has the same tearing that king raptor's has though.
Post Reply

Return to “Map Creation”