Transparency in models

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Torr Samaho
Developer
Developer
Posts: 160
Joined: Fri Apr 13, 2007 8:26
Location: Germany
Contact:

Transparency in models

Post by Torr Samaho »

I'm trying to use some of the jDRP models in GZDoom and noticed that GZDoom renders the transparent parts solid: The upper part of the bottles in the screenies is supposed to be transparent. Both Doomsday (first shot) and Vavoom render it with transparency, GZDoom (second shot) does not.

Image
Image

Am I doing something wrong here or does GZDoom just not support transparency in models?
Spoiler: Model definition
User avatar
KeksDose
Stronghold Team
Posts: 319
Joined: Thu Apr 12, 2007 21:35
Location: Germany

Post by KeksDose »

Translucency for models isn't supported by GZDoom (I tried, no luck). If alpha channels would work right they would do the job perfectly, I think P:
User avatar
InsanityBringer
Posts: 137
Joined: Fri Jun 15, 2007 22:59

Post by InsanityBringer »

That doomsday screenshot looks sort of bad IMO. I don't think it fits into doom due to the hi res textures and werid lighting
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

GZDoom only supports binary transparency for models. Meaning the polygons will be either visible or invisible. Nothing in between is supported.

I've had luck making use of the alpha channel in PNGs for model textures, but as I've said, it's either opaque or 100% transparent.

Let me look for a post from Graf explaining why it's not supported...

EDIT:

http://forum.drdteam.org/viewtopic.php? ... ucent#8603
User avatar
Torr Samaho
Developer
Developer
Posts: 160
Joined: Fri Apr 13, 2007 8:26
Location: Germany
Contact:

Post by Torr Samaho »

Thanks for the info. Guess I'm out of luck then. It's not a big deal for the health potions, but the spheres just don't work without transparency.
DaniJ
Posts: 130
Joined: Sat Oct 08, 2005 19:22

Post by DaniJ »

That doomsday screenshot looks sort of bad IMO. I don't think it fits into doom due to the hi res textures and werid lighting
The bad lighting in that shot is actually drawn on the textures being used. It is not Doomsday's fault that the texture artist who created them doesn't seem to understand how to paint world textures.

Thankfully, there are newer resources available now [compared those in that shot] which much more closely resemble the original id art asset.
User avatar
InsanityBringer
Posts: 137
Joined: Fri Jun 15, 2007 22:59

Post by InsanityBringer »

Good. BTW:I meant nothing agaisnt DoomsDay. It is good for its own reasons
Locked

Return to “GZDoom”