[Solved] Model transparency through DECORATE?

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
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

[Solved] Model transparency through DECORATE?

Post by Tormentor667 »

Is it possible to set a model's transparency through DECORATE?
Last edited by Tormentor667 on Wed Jul 29, 2015 1:50 pm, edited 1 time in total.
User avatar
Ozymandias81
Posts: 2068
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: Model transparency through DECORATE?

Post by Ozymandias81 »

Tormentor667 wrote:Is it possible to set a model's transparency through DECORATE?
Check for the RTCWCar on BoA: MaxED did something like that workarounding with Renderstyle + Stencilcolor...

Code: Select all

ACTOR RTCWCar : 3dObstacle
{
	//$Category Models (Wolf3D)
	//$Title Staff Car
	//$Color 3

	Radius 32
	Height 32
	States
	{
		Spawn:
			SMGT A -1 NoDelay A_SpawnItemEx("RTCWCarGlass", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPITCH | SXF_TRANSFERROLL | SXF_TRANSFERSCALE)
			Stop
	}
}

ACTOR RTCWCarGlass : ModelBase
{
	RenderStyle Shaded
	StencilColor "CC CC CC"
}
... where car windows become quite transparent. Maybe this is what you're searching...
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Model transparency through DECORATE?

Post by Tormentor667 »

No, not what I am looking for, it's more that I wanted to know if A_FadeIn or A_FadeOut works on models
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: Model transparency through DECORATE?

Post by AFADoomer »

I know you can set the alpha of an actor via ACS and it will affect the model. I assume it works from within Decorate as well, but haven't tested it.
User avatar
Dark-Assassin
Posts: 743
Joined: Thu Mar 19, 2009 3:40 am
Location: South Australia

Re: Model transparency through DECORATE?

Post by Dark-Assassin »

Yea, alpha and render styles affect models. You can also get Additive models by using RenderStyle Add instead of making an alpha texture which will fail.
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Model transparency through DECORATE?

Post by Tormentor667 »

Thanks guys :)
Locked

Return to “Editing (Archive)”