OpenRA / OpenRA

Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
https://www.openra.net
GNU General Public License v3.0
14.67k stars 2.67k forks source link

Random tileset terrain painting #10652

Open Reizoukodesu opened 8 years ago

Reizoukodesu commented 8 years ago

A friend of mine topaxi had the idea to paint cliffs randomly of the same type. I couldn't find any functionality or an issue to something similar, so I've created a prototype function:

https://github.com/Sapena/OpenRA/tree/similar_terrain_tilesets b86ea5a9d0a422c9da83da76a617939f88688155

The idea is to be able to drag a line of cliffs and the editor switches automatically the templates, but only using similar tiles. The prototype for now only works with the vertical and horizontal cliffs (Excluding the diagonal cliffs):

The functionality could be applied to other kind of tiles, like water cliffs, roads, etc. Another extended and nice functionality would be, that the editor is able to handle displacements, like moving upwards while dragging a horizontal line.

Is this idea usable? Or just kind of overkill?

MustaphaTR commented 8 years ago

There is a cliff drawer in Final Alert 2 even i don't use that much. That would be good to have one in OpenRA's Editor.

Reizoukodesu commented 8 years ago

Forgot to mention that the prototype is only roughly tested for the RA mod.

Reizoukodesu commented 8 years ago

similar_tiles Here a little demonstration of the idea I tried to describe

pchote commented 8 years ago

I left a comment in #10655 about how we could implement this in a cross-mod compatible way.

Narg6 commented 8 years ago

Another good idea for map makers !

pchote commented 8 years ago

If we do this as its own brush type (as per #10655) I suggest that we render the preview as a 2x2 block of the white selection overlay to indicate that you're not placing any specific cliff type.

Reizoukodesu commented 8 years ago

Good input, so it is easier to stay within the line and it is less confusing.

LipkeGu commented 8 years ago

referenced also to this #8436 because of the random tree painting