[various?] Sprites losing transparency.

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [various?] Sprites losing transparency.

Re: [various?] Sprites losing transparency.

by Graf Zahl » Tue Jan 08, 2008 2:50 am

SnowKate709 wrote:I found out what's causing this to occur: High-resolution sprite replacements. When there's a high-res sprite in view, it causes all sprites to lose transparency. But this only happens in GZDoom's OpenGL mode, so it can be closed here and moved over there instead.

Thanks for the info. Actually, it's not hires that causes the problem but an alpha channel with values other than 0 and 1. I think it's fixed now.

Re: [various?] Sprites losing transparency.

by Kate » Tue Jan 08, 2008 1:08 am

Yes, it's supposed to have a black aura around it, which is made entirely invisible due to the entire alpha turning black. The low-res one doesn't, since obviously it's paletted and paletted PNGs can't contain a full 8-bit alpha.

...Actually I'll try making it 1-bit and see what happens.

Edit: Okay, I made it into a 1-bit alpha channel and it appears to work fine for what it's worth, so apparently you're right.

Re: [various?] Sprites losing transparency.

by bagheadspidey » Tue Jan 08, 2008 1:05 am

does the sprite have partial transparency?

Re: [various?] Sprites losing transparency.

by Kate » Tue Jan 08, 2008 12:29 am

I mean [wiki=HIRESTEX]replacements[/wiki].

Image
The high-res replacement in the shot is that red powerup icon in the back, which is a 256x256 true-color PNG sprite. It's the only PNG in the entire scene, and walking so that the offending sprite is out of view (or picking it up so it's destroyed) causes the boxes to go away. Removing the high-res replacement also causes it to go away, despite the original sprite also being a PNG (paletted, 32x32).

And before anyone says anything, the tutti-fruity textures are entirely intentional.

...What makes it ironic is that this is a wad based around bugs, so stuff like this could pass as "normal behavior".

Re: [various?] Sprites losing transparency.

by bagheadspidey » Mon Jan 07, 2008 11:47 pm

SnowKate709 wrote:I found out what's causing this to occur: High-resolution sprite replacements.
By high resolution, do you mean scaled? Some of the other noth sprites were already scaled before I added those bottles, and they didn't trigger the black squares bug. I'm pretty sure it's the partial transparency that causes the behavior.

Re: [various?] Sprites losing transparency.

by Kate » Mon Jan 07, 2008 10:07 pm

I found out what's causing this to occur: High-resolution sprite replacements. When there's a high-res sprite in view, it causes all sprites to lose transparency. But this only happens in GZDoom's OpenGL mode, so it can be closed here and moved over there instead.

Re: [various?] Sprites losing transparency.

by MDenham » Sun Dec 30, 2007 7:57 pm

MG_Man wrote: But on ZDoom when I minimize this and bring it back, the entire screen is white until I close it.
This is, unfortunately, somewhat normal Direct3D behavior.

Re: [various?] Sprites losing transparency.

by MG_Man » Sun Dec 30, 2007 7:16 pm

Then at this point, I can't say it's a driver problem. Mabye Graf or Randy can fix this with a little more input. Besides, it might just be small quirks in the transition between Direct3D.

Re: [various?] Sprites losing transparency.

by Enjay » Sun Dec 30, 2007 5:44 pm

MG_Man wrote:Turn on Write Combining and put Hardware Acceleration to full. If it already is, try making it lower to see if this fixes it. Try every step on the bar.
OK, tried this. Hardware acceleration was already at full and write combining was on. I tried all hardware acceleration settings until it was so low that GZdoom ran in software mode and only then did the black boxes get fixed. I tried switching off write combining and it had no effect.

[edit] and updating to the latest nvidia drivers doesn't help either.[/edit]

Re: [various?] Sprites losing transparency.

by MG_Man » Sun Dec 30, 2007 1:30 pm

ZDoom Revision r658. GZDoom Version v1.0.24. I will update GZDoom to see if anything changes.

EDIT: Still no black boxes. But on ZDoom when I minimize this and bring it back, the entire screen is white until I close it. This is new and now happens to everything.
EDIT2: ZDoom whites out when un-minimizing with beggar, but with normal ZDoom it's completely yellow at the menu but with black boxes for everything graphical...

I think these problems are definately related.
EDIT3: New GZDoom yields no black boxes.

Re: [various?] Sprites losing transparency.

by Enjay » Sun Dec 30, 2007 7:49 am

Graf Zahl wrote:Can you please *all* say which revision you are using?
Ooops, I thought I had mentioned somewhere that I am using GZdoom 1.0.29. I don't have any of the Zdoom SVN versions installed. So it may not be a Zdoom thing at all from my experience.

Anyway, for those who haven't seen it, here's a screenshot. Not all sprites are affected all the time. The beggars usually flash in and out of the effect as they walk. I think, during their walking cycle, it is the same frames that are affected/unaffected each time, but I'm not sure. In this pic, you can see add on sprites including bottle shards on the ground and the Doom tree all affected but some sprites working normally.
Image

Re: [various?] Sprites losing transparency.

by Project Shadowcat » Sun Dec 30, 2007 6:07 am

This is very true. I've simply had that in mind, it's just that I'll stick with stability for now.

Re: [various?] Sprites losing transparency.

by MDenham » Sun Dec 30, 2007 4:37 am

Project Dark Fox wrote:If a lot of stuff is breaking at this moment, I'm still sticking to WAY back to revision 574. :? It's a nice stable revision for now...
It's not so much that a lot of stuff is breaking so much as a lot of stuff is still in intermediate states between "old" and "new" functionality, and so it doesn't handle either one quite as well as one would hope.

It's not like they can just hide the current changes from us on the SVN server until everything's hashed out... :D

Re: [various?] Sprites losing transparency.

by Project Shadowcat » Sun Dec 30, 2007 3:52 am

If a lot of stuff is breaking at this moment, I'm still sticking to WAY back to revision 574. :? It's a nice stable revision for now...

Re: [various?] Sprites losing transparency.

by MDenham » Sun Dec 30, 2007 3:34 am

Cutmanmike wrote:(How do you get links to posts on this forum anyway?).
Near the top left corner of each post is a little page icon. Right-click it and copy the link for a link to that post.

Top