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.
Flag to make actor invisible to camera in first person
Moderator: GZDoom Developers
-
- 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
-
- Posts: 8197
- 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
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!
-
- Posts: 142
- Joined: Thu Apr 03, 2014 10:25 am
- Graphics Processor: nVidia (Modern GZDoom)
Re: Flag to make actor invisible to camera in first person
I actually did this a couple days ago: https://github.com/coelckers/gzdoom/pull/1601
-
- 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
Re: Flag to make actor invisible to camera in first person
Thanks, that's just what I needed.
-
- 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
Re: Flag to make actor invisible to camera in first person
Can this be closed? The feature was already added.