(Resolved, new issue) FLATSPRITE Crashes after a few seconds

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
SamotnyOgorek
Posts: 22
Joined: Mon Jan 18, 2016 9:09 am
Graphics Processor: nVidia with Vulkan support
Location: Somewhere in Poland

(Resolved, new issue) FLATSPRITE Crashes after a few seconds

Post by SamotnyOgorek »

Hi all, recently i've been messing around with GZDooM-specific stuff, and found this flag called +FLATSPRITE.
The first thing that came to my mind is to create an actor which is just a flat blood pool, so that i won't need to make a 3d model or make a really small 3d floor with a blood texture.
However, a few seconds after i load up a map with it, the game just crashes. If i can see it before it crashes, it will just freeze until it crashes...

Here's the decorate:

Code: Select all

ACTOR CucBloodPool 31000
{
	Scale 0.5
	Height 1
	Radius 25
	+FLATSPRITE
	+NOBLOCKMAP
	+DONTSPLASH
	+NOGRAVITY
	
	States
	{
		Spawn:
		TNT1 A 0 A_SetPitch(90)
		Goto Pool
		
		Pool:
		BSPL A 1
		Loop
	}
}
And here's an example .wad:
https://www.dropbox.com/s/qjaxdaqdgit5k ... e.wad?dl=0

Thanks in advance :D
Last edited by SamotnyOgorek on Sun Jul 24, 2016 12:42 pm, edited 1 time in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: +FLATSPRITE Crashes after a few seconds

Post by Graf Zahl »

This bug has already been fixed for the next devbuild.
User avatar
SamotnyOgorek
Posts: 22
Joined: Mon Jan 18, 2016 9:09 am
Graphics Processor: nVidia with Vulkan support
Location: Somewhere in Poland

Re: +FLATSPRITE Crashes after a few seconds

Post by SamotnyOgorek »

Oh, okay then :D Will update!
User avatar
SamotnyOgorek
Posts: 22
Joined: Mon Jan 18, 2016 9:09 am
Graphics Processor: nVidia with Vulkan support
Location: Somewhere in Poland

Re: +FLATSPRITE Crashes after a few seconds

Post by SamotnyOgorek »

Doesnt crash now, but i cant seem to rotate it to sit on the floor properly...
Image
Last edited by wildweasel on Sun Jul 24, 2016 3:16 pm, edited 1 time in total.
Reason: Image too large, reduced it to a Large Thumbnail in accordance with the rules.
Houruck
Posts: 11
Joined: Sat Aug 08, 2015 6:38 am
Location: Budapest, Hungary
Contact:

Re: (Resolved, new issue) FLATSPRITE Crashes after a few sec

Post by Houruck »

I was about to post the same issue. Tried to use FLATSPRITE as a way to create blood decals and other decoration on the floor. I think I managed to get the offset just right so it is on the same level as the floor itself but viewed from certain angles it hides sprites "on top of it".

Image
User avatar
Caligari87
Admin
Posts: 6236
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: (Resolved, new issue) FLATSPRITE Crashes after a few sec

Post by Caligari87 »

I think It's a sprite clipping / zbuffer thing. Flat or not, it's technically "in front of" the other sprite and so is rendered first. I imagine a possible solution would be more, smaller sprites instead (see the Droplets mod, which does this), so any overlap is less obvious.

8-)
Houruck
Posts: 11
Joined: Sat Aug 08, 2015 6:38 am
Location: Budapest, Hungary
Contact:

Re: (Resolved, new issue) FLATSPRITE Crashes after a few sec

Post by Houruck »

I was thinking the same. So there is no was to make it always render in the background compared to other actors.
Edit: I only noticed now that OP has a different problem. Apply A_SetPitch (90) when you spawn it.
It won't work for pools of blood or other larger floor decals for the reasons I posted before.
Locked

Return to “Editing (Archive)”