ZeroK-RTS / Zero-K

Open source RTS game running on the Spring/Recoil engine
https://zero-k.info
GNU General Public License v2.0
690 stars 207 forks source link

Add metal spot textures for maps that lack them #1543

Closed GoogleFrog closed 7 years ago

GoogleFrog commented 8 years ago

Smoth has a widget and some images which draws metal spots. This widget could easily be adapted to draw metal spots for our maps which lack them.

https://springrts.com/phpbb/viewtopic.php?f=13&t=35575

Anarchid commented 8 years ago

Alternative: using the feature mexes like on yak maps and the recent sprung maps.

IIRC spring now supports a feature fade distance override, which would even allow them to be visible on zoomout.

Also, features support decals! While decals won't get rotated with the features themselves, that makes them usable for mexes.

Anarchid commented 8 years ago

crystals

I'm going to add decals to all existing feature mex thingies ("coral", "crystal", and "eldritch").

Is it better to modify maps with unmarked mexes themselves (if they are featured), or add a gadget to ZK?

Licho1 commented 8 years ago

If gadget is 0 performance cost then gadget, otherwise modify maps imo.

Anarchid commented 8 years ago

Performance cost is equal in both cases.

Modifying maps inside ZK (like we do for metalmap overrides) is untidy but convenient because re-releasing maps is often uncomfortable.

GoogleFrog commented 8 years ago

Feature mexes have trouble conforming to terrain changes. The feature would have to be fairly small, maybe even invisible, and apply a ground decal.

Anarchid commented 8 years ago

Fair enough; pure decals can also work. But i don't think i've met a really bad case in the wild yet: the features are prevented from ever moving by being made non-colliding with everything, and to make the feature tilt, the middle vertex needs to be affected by deformation, which nobody wants to do because they want to build a mex there.

GoogleFrog commented 7 years ago

@Anarchid never did anything. I have added the widget.