Finaly Compiled master topic shadows

Discuss the future of Warzone 2100 with us.

Finaly Compiled master topic shadows

Postby Berg » 14 Jan 2018, 03:23

wz2100-20180114_121506-Sk-Rush.jpg
shadows in game sun is opposite to structure shadows
User avatar
Berg
Regular
Regular
 
Posts: 1991
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Finaly Compiled master topic shadows

Postby 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 24 times
User avatar
Berserk Cyborg
Code contributor
Code contributor
 
Posts: 585
Joined: 26 Sep 2016, 19:56

Re: Finaly Compiled master topic shadows

Postby 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.
User avatar
Berg
Regular
Regular
 
Posts: 1991
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Finaly Compiled master topic shadows

Postby 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.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
 
Posts: 3745
Joined: 03 Aug 2006, 19:39

Re: Finaly Compiled master topic shadows

Postby 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?
User avatar
Berg
Regular
Regular
 
Posts: 1991
Joined: 02 Sep 2007, 23:25
Location: Australia


Return to Development

cron