Decals on 3D floors?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom 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.
Post Reply
Azagthoth
Posts: 63
Joined: Wed Jan 20, 2021 4:06 pm

Decals on 3D floors?

Post by Azagthoth »

Hi again. I'm trying to put decals on 3d floors but I can't figure out how. I've been told that decals cant be put on middle textures. Is this true for 3D floors as well? If so, how can I use upper or lower texture instead? I see the flags "16:Use upper texture" and "32:Use lower texture" but they don't seem to do anything. What now?

Edit:
Apparently, according to these threads, it should be possible but maybe it's bugged? Or is it fixed? I'm confused. Can someone confirm or deny this?

viewtopic.php?f=7&t=61500
viewtopic.php?t=61404
Last edited by Azagthoth on Sat Jul 24, 2021 5:09 pm, edited 1 time in total.
User avatar
axredneck
Posts: 356
Joined: Mon Dec 11, 2017 2:09 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch
Graphics Processor: nVidia with Vulkan support
Location: Russia
Contact:

Re: Decals on 3D floors?

Post by axredneck »

Sometimes i just place separate linedefs with midtextures of decals. I know it's common method for ports that don't have decals.
Azagthoth
Posts: 63
Joined: Wed Jan 20, 2021 4:06 pm

Re: Decals on 3D floors?

Post by Azagthoth »

axredneck wrote:Sometimes i just place separate linedefs with midtextures of decals.
That won't work in my case because I need to dynamically be able to add decals. Like with SpawnDecal for instance.
User avatar
Logan MTM
Posts: 678
Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil

Re: Decals on 3D floors?

Post by Logan MTM »

Make your "Decal" as an Actor with WALLSPRITE and done! 8-)
Azagthoth
Posts: 63
Joined: Wed Jan 20, 2021 4:06 pm

Re: Decals on 3D floors?

Post by Azagthoth »

Logan MTM wrote:Make your "Decal" as an Actor with WALLSPRITE and done! 8-)
Can you give me an example of how to do that? I need a way to get the angle of the wall then, don't I? Otherwise, how do I know which angle to spawn the Actor at?

Code: Select all

Actor REDX
{
	+NOGRAVITY
	+WALLSPRITE
	States
	{
		Spawn:
			REDX A -1 Bright
	}
}
User avatar
Logan MTM
Posts: 678
Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil

Re: Decals on 3D floors?

Post by Logan MTM »

Spoiler:
This the a Actor Code:

Code: Select all

ACTOR Hand 8600
{
Scale 0.15
RenderStyle Translucent
Alpha 0.8

+NOINTERACTION
+WALLSPRITE

States
 {
 Spawn:
 NULL A 0 
 
 Hand:
 EMIA Z 1 Bright
 Loop 
  }
}
You can Set his angle in MapEditor or :

ACS - https://zdoom.org/wiki/ChangeActorAngle
DECORATE - https://zdoom.org/wiki/A_SetAngle
User avatar
inkoalawetrust
Posts: 70
Joined: Mon Aug 26, 2019 9:18 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Decals on 3D floors?

Post by inkoalawetrust »

I'm not sure what all of you are talking about, decals render on the sides of 3D floors just fine. And I don't see any reason for why pre-placed ones wouldn't either.

Image
Post Reply

Return to “Mapping”