Sprites disappear behind void space

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Sprites disappear behind void space

Post by Nevander »

If there is a sprite that has a large enough horizontal length, it can disappear behind geometry that is single sided. As an example, go to MAP04 of Going Down and go to the same places I am in the screenshot below. If you move left or right when facing the rocket boxes, the sprites will vanish even though the thing itself is still there. In the left screenshot, you can see all 3 boxes there. When I move to my left, the closest two boxes vanish behind the pillar.

Image

What is causing this, and furthermore is it normal?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sprites disappear behind void space

Post by Graf Zahl »

Welcome to Doom's wonderful way of handling sprite drawing. The rocket boxes are particularly susceptible because their sprites are quite a bit larger than their actual object size.
User avatar
Reactor
Posts: 2091
Joined: Thu Feb 03, 2011 6:39 pm
Location: Island's Beauty, Hungary

Re: Sprites disappear behind void space

Post by Reactor »

Ugh, that looks nasty. Is this thing also present in GZDoom? :?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sprites disappear behind void space

Post by Graf Zahl »

It's not as pronounced but the basic processing method being used here means that if you just get the right map construct it may still happen.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Sprites disappear behind void space

Post by Nash »

Would the RenderRadius property help this situation?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sprites disappear behind void space

Post by Graf Zahl »

It should, yes. But it isn't set for any stock item and cannot possibly compensate for sprite replacements that are larger than expected.
Post Reply

Return to “General”