What's wrong with those 3d sloped windows?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

What's wrong with those 3d sloped windows?

Post by Ozymandias81 »

Hello mappers/modders,

while doing a map for Blade of Agony, I encountered a strange issue that's quite giving me the holy crap: why those 3d sloped sectors are not translucent in game as they're shown in GZDB? Any suggestions/aids are REAAAALLY appreciate, thanks.

Keep in mind that above sectors you see are sloped floors in UDMF format (both control & tagged sectors).
Spoiler:
WHAT.zip
Doom 2 in UDMF Format, load it with GZDoom
(2.66 KiB) Downloaded 48 times
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: What's wrong with those 3d sloped windows?

Post by Gez »

[wiki]3D floors[/wiki] are not allowed to be sloped and translucent at the same time. See the third item in the "important notes".
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Ozymandias81 »

Gez wrote:[wiki]3D floors[/wiki] are not allowed to be sloped and translucent at the same time. See the third item in the "important notes".
Are there another ways / workarounds to make above stuff? Could be this a somewhat feature suggestion for GZDoom?
User avatar
Zanieon
Posts: 2059
Joined: Tue Jan 13, 2009 4:13 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Somewhere in the future
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Zanieon »

Yes, use the alpha of the image, obviously you will need it to be a truecolor png.
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Ozymandias81 »

Revilution wrote:Yes, use the alpha of the image, obviously you will need it to be a truecolor png.
To me it works only with "grate" like textures. I tried to convert a TX on BoA from Doom to PNG TrueColor and didn't work.
User avatar
Zanieon
Posts: 2059
Joined: Tue Jan 13, 2009 4:13 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Somewhere in the future
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Zanieon »

simply convert will not work, you have to apply the alpha into the image yourself (Photoshop/Gimp/whatever) and reimport in slade.
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Ozymandias81 »

Uhmmm... it seems that I am not enough skilled to apply alpha on non-scratch images... :-(

This would be the texture I'm trying to edit with GIMP, but even if I add a level on it (with or without changin' it into TrueColor) or I just apply that alpha, I obtain the same result while checking it on GZDoom: no translucence at all.
That's a Doom Paletted PNG texture.

Image
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Tormentor667 »

50% translucency
Attachments
hw1fFJA.png
hw1fFJA.png (18.42 KiB) Viewed 915 times
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Ozymandias81 »

Thankx Torm! I really need it.
User avatar
Kappes Buur
 
 
Posts: 4197
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Kappes Buur »

If ever you want to do this yourself, load the png into Paint.Net
hit F4 to open the Layer dialog
change the opacity towards 0, depending on what you have in mind
hit ok
save

Image
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: What's wrong with those 3d sloped windows?

Post by Graf Zahl »

Just a note.

Translucency on sloped 3D floors is not supported - period. That includes an alpha channel coming from the texture.
The reason for this limitation is that Doom's sector based level design makes it impossible to sort these sloped translucent planes properly but for translucent stuff to render in proper order it needs to be sorted before drawing.
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Ozymandias81 »

Graf Zahl wrote:Just a note.

Translucency on sloped 3D floors is not supported - period. That includes an alpha channel coming from the texture.
The reason for this limitation is that Doom's sector based level design makes it impossible to sort these sloped translucent planes properly but for translucent stuff to render in proper order it needs to be sorted before drawing.
So no way to make my request something like a feature request that could be implemented on future GZDoom versions?
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: What's wrong with those 3d sloped windows?

Post by AFADoomer »

One way you can do it that is (I think) future proof...

Make a model that's a flat cube and texture it with a solid windowpane texture.
Add it to MODELDEF with INHERITACTORPITCH and INHERITACTORROLL.
Add it to DECORATE and set the Renderstyle and Alpha to make it translucent.

Then add it to the map and adjust the angle/pitch and scale to make it fit your opening... This adds the advantage of being able to make the window shootable, with the possible downside that clipping will be sloppy because you are blocking the opening with a thing versus a 3D floor.

That's what I did here:
Image
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: What's wrong with those 3d sloped windows?

Post by Ozymandias81 »

Uhmm... I had a somewhat suggestion like this but for breakable windows and not for sloped ones.... Very good suggestion and amazing Trekkian screenie. Thankx AFADoomer, maybe I'll go for it. :cool:
Locked

Return to “Editing (Archive)”