Flag to make actor invisible to camera in first person

Moderator: GZDoom Developers

User avatar
Marisa the Magician
 
 
Posts: 3804
Joined: Fri Feb 08, 2008 9:15 am
Discord: Marisa the Magician#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Preferred Pronouns: She/Her
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Flag to make actor invisible to camera in first person

Post by Marisa the Magician »

What I'm about to suggest is going to sound like a complete mess, but I see it as a necessity for some important effects. This would be functionally similar to Unreal's bOwnerNoSee flag, which is used for things such as the shield belt visual effect on player models.

In a nutshell, the effects of this flag would make an actor get rendered only under special circumstances if a certain pointer (e.g.: its master) is the current camera. It would effectively be invisible in first person, except when reflected on mirrors or seen in camera textures (or when switching to chasecam).

I'm aware that Nash is working on something that's somewhat similar to this, but I've just been waiting for that for too long. If I have to delve into the guts of the engine myself to get what I need, I might as well try.
User avatar
Major Cooke
Posts: 8059
Joined: Sun Jan 28, 2007 3:55 pm

Re: Flag to make actor invisible to camera in first person

Post by Major Cooke »

If there's anyone who would have better luck on this front, it's you. I tried my hardest to get this to work with portals, but I failed miserably when it came to ViewPos. If you know how to do this, sweet!
User avatar
TehRealSalt
Posts: 141
Joined: Thu Apr 03, 2014 10:25 am
Discord: TehRealSalt#6754
Github ID: TehRealSalt
Graphics Processor: nVidia (Modern GZDoom)

Re: Flag to make actor invisible to camera in first person

Post by TehRealSalt »

I actually did this a couple days ago: https://github.com/coelckers/gzdoom/pull/1601
User avatar
Marisa the Magician
 
 
Posts: 3804
Joined: Fri Feb 08, 2008 9:15 am
Discord: Marisa the Magician#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Preferred Pronouns: She/Her
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Re: Flag to make actor invisible to camera in first person

Post by Marisa the Magician »

Thanks, that's just what I needed.
User avatar
Marisa the Magician
 
 
Posts: 3804
Joined: Fri Feb 08, 2008 9:15 am
Discord: Marisa the Magician#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Preferred Pronouns: She/Her
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Re: Flag to make actor invisible to camera in first person

Post by Marisa the Magician »

Can this be closed? The feature was already added.

Return to “Closed Feature Suggestions”