Finaly Compiled master topic shadows

Discuss the future of Warzone 2100 with us.
Post Reply
User avatar
Berg
Regular
Regular
Posts: 2041
Joined: 02 Sep 2007, 23:25
Location: Australia

Finaly Compiled master topic shadows

Post by Berg » 14 Jan 2018, 03:23

wz2100-20180114_121506-Sk-Rush.jpg
shadows in game sun is opposite to structure shadows

User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 634
Joined: 26 Sep 2016, 19:56

Re: Finaly Compiled master topic shadows

Post by Berserk Cyborg » 14 Jan 2018, 07:36

Speaking of shadows, I think we should draw in the order of opaque models->shadow->translucent models rather than drawing shadows first. Still, base plates are considered translucent (?) and shadows will not draw over them and the CC antenna looks worse than ever because of #4093.
0001-Draw-opaque-models-before-shadows.patch
(1.24 KiB) Downloaded 28 times

User avatar
Berg
Regular
Regular
Posts: 2041
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Finaly Compiled master topic shadows

Post by Berg » 14 Jan 2018, 12:01

The base plates should show shadows and where alpha overlaps alpha they just go all stupid this has been a long time bug in the graphics.
Im sure we can compile a huge list of bugs but fix the direction of the sun and the structure shadows this is long needed fix.

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3755
Joined: 03 Aug 2006, 19:39

Re: Finaly Compiled master topic shadows

Post by Per » 14 Jan 2018, 13:59

Instead of assuming that all baseplates need to be translucent (do anyone of them actually need to be?), we should read this information from their PIE files. Hardcoding this kind of information is just silly.

User avatar
Berg
Regular
Regular
Posts: 2041
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Finaly Compiled master topic shadows

Post by Berg » 14 Jan 2018, 14:13

The pie files for base plates are just 2 poly with image co-ords.
I'll check them but I do think the properties for them are either hard coded or shadows don’t fall on my structure pie files?

Post Reply