Flag to make actor invisible to camera in first person

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Flag to make actor invisible to camera in first person

Postby Marisa the Magician » Sat Apr 23, 2022 5:45 am

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
Marisa the Magician
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa the Magician#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Major Cooke » Sun May 08, 2022 1:25 pm

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
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

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

Postby TehRealSalt » Mon May 09, 2022 3:25 am

I actually did this a couple days ago: https://github.com/coelckers/gzdoom/pull/1601
User avatar
TehRealSalt
ヽ(◕ᴥ◕)ノ
 
Joined: 03 Apr 2014
Discord: TehRealSalt#6754
Github ID: TehRealSalt
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

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

Postby Marisa the Magician » Mon May 09, 2022 4:25 am

Thanks, that's just what I needed.
User avatar
Marisa the Magician
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa the Magician#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests