Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
https://wz2100.net
GNU General Public License v2.0
3.19k stars 527 forks source link

Structures distorted textures and heigh to suit terrain #302

Open Berg53 opened 5 years ago

Berg53 commented 5 years ago

I would like to add images wz2100-20190405_172107-Sk-Rush See the amount of area showing to low side of bunker is more target available. also the distorted structure. wz2100-20190405_172052-Sk-Rush See the high side of structure centre of structure is below ground so cant be destroyed from this side wz2100-20190405_171820-Sk-Rush See the wall structure how the texture is way distorted to suit terrain..

Berg53 commented 5 years ago

This issue has been slapped about so many times and the situation now is worse than it ever was the changes to the code are a step backward in my eyes http://forums.wz2100.net/viewtopic.php?f=33&t=4951&p=73680&hilit=basement#p73680 Here is a old post about the same thing.

bjorn-ali-goransson commented 4 years ago

So what do we do about this? Is there even a general solution to these issues?

As an enthusiast "builder", I'd say a structure, if built on a slope, doesn't need to get stretched out like this. It needs a foundation.

Like @Berg53's efforts, it should be cement, but dynamically generated. Nothing included in the models.

We can allow a little bit of skewing of the original model base, but then the dynamically generated foundation mesh should take over and cover the rest of the ground. It should protrude a little bit from the structure base.

Can anyone upload a savegame to replicate the issue?

bjorn-ali-goransson commented 4 years ago

upload

bjorn-ali-goransson commented 4 years ago

Illustration by @MaNGusT-

image

Chewbakka-Wakka commented 2 weeks ago

As on the forums, Berg did nice work here. All we really need this for is walls and base defenses. Though it has been 4 years on now. The foundation is clearly the right way to deal with fixing this.