[Solvvvvved?] Chainlink Fence Transparency Problem

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
Niekitty
Posts: 12
Joined: Fri Aug 04, 2023 10:48 pm
Operating System Version (Optional): Win 10 Pro
Location: Sadly not hell.

[Solvvvvved?] Chainlink Fence Transparency Problem

Post by Niekitty »

FAIR WARNING: I AM RELATIVELY NEW TO ALL THIS

Sooo... I've been working on a little project, mostly my way of learning to do new things. I'd like to think I've come a long way already, despite not having much programming experience... but I just got to shaping in the last area in my MAP01 and ran into something that I can't figure out.
I have a chainlink fence texture. It's in the PK3. I set up the chainlink fence in the editor (I'm using Slade3. UDB and I don't get along very well). Sure enough, in the editor's 3d view I can see my chainlink fence and see through it just fine as per normal. I pop in to test an overhead light... and in GZDoom the parts of the texture where I should be able to see through are just... grey.
Fair enough, I go to the Goog. See comments about using a palleted image... yes, it is. Don't use cyan? No, already figured that out, setting the transparency is built into Slade's texture converter, it's 255,0,255. No issue. Texture Filtering? Yeah, it all looks better now, but still no transparency.



As noted, in Slade's 3d view, it's perfectly fine:


But once it runs...


Now... one other caveat here.
The way I learn a new system of doing something is to keep cooking up little projects and pushing my limits every time. This latest is an effort at a multiple map PK3 with some extra stuff thrown in for fun.
My previous mini-project was me learning to use portals and 3d floors and all that fun stuff... and I had a transparent texture in there, implemented in EXACTLY the same way... and it works just fine. Even just went back and checked it and... it just worked.
The ONLY thing I could think of that's different is that this one has a spotlight near it, instead of a point light, so I switched to a point light (looked terrible there) but still had the transparency problem.

I'd appreciate any ideas. Would it help if I uploaded the whole pack?

EDIT: Okay... So I had not realized that transparency stopped working on map geometry that wasn't a single poly... so a line with open space on either side can have transparency, but a Lower, Middle, or Upper that is part of some geometry can't? So... now i'm going to have to pull some kind of trick to make my fence, since the ceilings are much higher. NERGH!

EDIT EDIT: Well, this ended up being one of those "Well that worked but I have no clue why the hell it did" things. Despite the ceiling being 320 units above, the fence, when applied to a single linedef and unpegged only displayed once, not tiling up to the ceiling, andit has working transparency, so... ... ... ... WELL THERE THAT'S DONE, NOW ON TO MAKING A WORKING LANTERN "WEAPON" BECAUSE APPARENTLY I AM A TOTAL MASOCHIST! 8D

Return to “Assets (and other stuff)”