Latest Posts

Topic: Altitude indicator and undo at all possible?

SirVer

Joined: 2009-02-19, 15:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2011-04-28, 07:41

Hi,

Is that map compatibility still a goal? I am asking this in regard to the idea of eliminating the "worlds" and allow all terrain types within the same map.

That is not related at all. Even if we merge the worlds, map compatibility with existing S2 and widelands maps would be kept. New maps could just use all the graphics...

I guess this is the same fragment of code that does the "smoothing" of the landscape altitudes? The logic that prevents creating terrain that is inaccessible due to abrupt altitude changes. The S2 developers must have expected their users to create a lot of maps themselves, and so implemented that to keep them from designing unplayable maps.

There are even more reasons for this: when you allow steeper hills, workers should be 'hidden' behind hills that are to their immediate south. This is obviously impractical, because you could not build flags on fields that are hidden this way, but also this would need change to how rendering is done: currently we draw the terrain first, then bobs and immovables in a second step. As terrain could clip over bobs and immovables, this order would need changing and that is not easy to do.

The comparison also made me realize how superior the WL editor really has become!

Thanks. That was the immediate goal when starting the editor face-smile.png

There is one aspect, however, where I favour the S2 output, and that is the borders like the coastline. IMO the old S2 Editor produces less geometrical looking borders; less straight lines and less visible triangular shapes. For me it looks like S2 does not fill the underlying grid structures to the very edge, so coastlines look a lot better. I wished our WL editor could be improved in this aspect.

I think nicolai did misunderstand you here. I think the thing you are talking about is that the triangles in S2 are 'rounded' whenever they touch other terrain so that the triangular shape is not immediately visible. S2 did this by rendering a rectangular texture that depended on both terrain types over the triangle border. We tried to achieve something similar with dithering the edges, but it is just not good enough. I hope that once !OpenGL becomes the de-facto standard, we can add such an additional rendering step for very low cost.

Do you think this can be done at reasonable effort?

Not for the software renderer, no. It should be possible for !OpenGL but might require additional artwork.

Cheers, Holger


Top Quote
Astuur
Avatar
Topic Opener
Joined: 2009-02-28, 10:08
Posts: 733
Ranking
One Elder of Players
Location: Frankfurt / Germany
Posted at: 2011-04-28, 07:55

Great, I have posted a comment there with some additional observations and an S2 Editor picture, to demonstrate some differences.
As usual, my thanks for taking the time to answer so comprehensively!

@ SirVer Yes, you are right, it is the rounded shape, I was talking about, but anything that allows closer control is very welcome.

Gentlemen, you're absolutely superb in the way you are supporting curious fans! I very much appreciate your efforts!

Edited: 2011-04-28, 08:25

Being no programmer, I apologize for all my suggestions that imply undue workload and for other misjudgements due to lack of expertise or relevant skills.
I am on Win32, have no means to compile, and rely on prefabricated distributions (Thanks to Tino).

Top Quote
y_offset

Joined: 2012-05-05, 17:54
Posts: 3
Ranking
Just found this site
Posted at: 2012-05-06, 03:54

Trying to tweak an excellent random gen map, I'm wishing for a function that would poll the heights of all polygons under a tool size 2 area and set them to the average, or other words, smooth function.


"months disappeared playing S2"

Top Quote
SirVer

Joined: 2009-02-19, 15:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2012-05-07, 10:25

You could write a lua script and call it via dofile(), given you have a debug version available. I think we should enable the debug console in the editor also for release builds.


Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17
Posts: 828
Ranking
One Elder of Players
Location: Germany
Posted at: 2012-05-07, 12:05

a "smooth" function is already implemented. Select the noise hight tool and hold CTRL on your keyboard (this will activate the alternative tool) while clicking on the ground.


Top Quote