[Solved] Model transparency through DECORATE?
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.
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.
- 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?
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.
- 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?
Check for the RTCWCar on BoA: MaxED did something like that workarounding with Renderstyle + Stencilcolor...Tormentor667 wrote:Is it possible to set a model's transparency through DECORATE?
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"
}- 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?
No, not what I am looking for, it's more that I wanted to know if A_FadeIn or A_FadeOut works on models
Re: Model transparency through DECORATE?
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.
- Dark-Assassin
- Posts: 743
- Joined: Thu Mar 19, 2009 3:40 am
- Location: South Australia
Re: Model transparency through DECORATE?
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.
- 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?
Thanks guys 
