Page 1 of 1
r625 Translucent 3D slopes gone
Posted: Mon Nov 16, 2009 22:00
by Enjay
OK, so I'm not really sure about this one because I know that you "can't" do translucent slopes. However, this WAD (not mine) did it *somehow* and now it doesn't work.
GZdoom 1.2.1
r625
So, it did work but I have no idea how or why or if it should have done. Anyway, I've cut the file down to a minimal section consisting of just a stripped-down version of that room and using stock textures. All the scripts have been removed from the level too just in case that had something to do with it. It still has the translucent floors in 1.2.1 but not in r625.
Re: r625 Translucent 3D slopes gone
Posted: Mon Nov 16, 2009 22:21
by Gez
In my opinion, that's
this that changed it. Quite deliberate.
Re: r625 Translucent 3D slopes gone
Posted: Mon Nov 16, 2009 22:44
by Graf Zahl
To make translucent sloped 3D floors work half of the engine needs a redesign. If someone abuses a bug in the engine and as a result that hack ceases to work it's not my problem.
Re: r625 Translucent 3D slopes gone
Posted: Mon Nov 16, 2009 23:05
by Gez
Graf Zahl wrote:To make translucent sloped 3D floors work half of the engine needs a redesign.
That said, and just out of curiosity, what was so bad about additive transparent slopes? Judging from that screenshot, it seemed to work well enough.
Re: r625 Translucent 3D slopes gone
Posted: Mon Nov 16, 2009 23:27
by Graf Zahl
The sorting of polygons. Without translucent slopes it is all quite trivial and at no point I have to use complex calculations. But with slopes all that ease is gone and I'd have to implement something considerably more complex. With the current underlying data structures that's not really doable.
Re: r625 Translucent 3D slopes gone
Posted: Sun Dec 27, 2009 23:14
by TaBaR
How about this?
using gzdoom 1.3.17 r649
Re: r625 Translucent 3D slopes gone
Posted: Sun Dec 27, 2009 23:30
by Graf Zahl
Thanks for pointing out another hole I have to plug.
What happened here is that slopes created with slope things were altered after the 3D floor was defined - which was an undefined situation that could have bad side effects - so I had to switch the order of slope things processing and 3D floor generation - which effectively renders your demo worthless.
Re: r625 Translucent 3D slopes gone
Posted: Sun Dec 27, 2009 23:37
by TaBaR
why? what does it hurt?
Re: r625 Translucent 3D slopes gone
Posted: Sun Dec 27, 2009 23:59
by Enjay
That was cunning. However, whilst I was analysing what you had done, I figured out what was going on (the vertex things moving the floor after it had been established) and it did strike me as something unintended and which would get removed at some point. I didn't expect it to happen quite so quickly though. The change has already been committed.
Here's the explanation:
Changelog wrote:- fixed: Slope things must be processed before creating 3D floors. Otherwise
the 3D floors are not properly set up if the control sector is affected by a slope thing.
Re: r625 Translucent 3D slopes gone
Posted: Mon Dec 28, 2009 0:10
by TaBaR
whatever !
now i have a lot of levels i have to redo !
months of work gone !
thanks
Re: r625 Translucent 3D slopes gone
Posted: Mon Dec 28, 2009 0:18
by Graf Zahl
Translucent slopes don't work with how sorting of translucent stuff is done. You wouldn't think I'd disable it for no reason, would you?
Re: r625 Translucent 3D slopes gone
Posted: Mon Dec 28, 2009 0:25
by Graf Zahl
Enjay wrote: I didn't expect it to happen quite so quickly though. The change has already been committed.
Why not? The moment I saw it it was clear to me what was something wrong with the setup code. What may not be so obvious is that the 3D floor was not created properly. The post-creation sloping changes some stuff that the engine assumed was still unaltered.
Re: r625 Translucent 3D slopes gone
Posted: Mon Dec 28, 2009 0:31
by Enjay
I didn't mean that I didn't expect you to fix it quickly, it was merely that I had just downloaded the demo files, figured out what they were doing and typed a reply in the thread asking if this was actually something legal or if it was likely to change. However, when I tried to submit my post, you'd already replied saying that it would change (meaning there was no point in me actually submitting my post) and when I checked the SVN the fix was already committed.
ie, for me the "flash to bang time" of me seeing the examples and you plugging the hole was about 2 minutes. That's quick

Re: r625 Translucent 3D slopes gone
Posted: Mon Dec 28, 2009 0:54
by Enjay
Question: Should png textures with an alpha value transfer their translucency to 3D floors (sloped or otherwise)? At present, they do for the sides of a 3D floor but not for the top/bottom of it. Is this correct behaviour?
Re: r625 Translucent 3D slopes gone
Posted: Mon Dec 28, 2009 1:03
by Graf Zahl
I'll check tomorrow if it can remain like that.