Flag to make actor invisible to camera in first person

Moderator: GZDoom Developers

Post Reply
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

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: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

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: 142
Joined: Thu Apr 03, 2014 10:25 am
Graphics Processor: nVidia (Modern GZDoom)
Contact:

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: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

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: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

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.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”