Can a cameratexture have nightvision?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Can a cameratexture have nightvision?

Postby Enjay » Tue Dec 28, 2021 9:56 pm

I expect this will be answered with a pretty quick "no" but, as per the title, I was wondering if a camera texture can be given an effect like the enhanced GZDoom night vision effect (green colour with inverted palette enemies).

I had an idea of being able to have infra-red cameras that can "see" in a dark room and display the result on a monitor (camera texture).

Can it be done?
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Can a cameratexture have nightvision?

Postby Caligari87 » Tue Dec 28, 2021 10:17 pm

I don't know about that specific nightvision effect (probably not since the inverted monsters are a hardcoded effect) but I know you can generally apply shaders to camera textures and/or use camera textures as inputs for shaders. So in theory you could use something like my realistic nightvision shader as a texture shader for a camera texture. I played around with this once and made it work for Hideous Destructor, but unfortunately didn't save the proof of concept.
.

8-)
User avatar
Caligari87
User Accounts Assistant
 
Joined: 26 Feb 2004
Discord: Caligari87#3089
Github ID: caligari87

Re: Can a cameratexture have nightvision?

Postby Enjay » Wed Dec 29, 2021 1:22 pm

Thanks, that would do the job nicely actually. I'll check it out.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland


Return to Mapping

Who is online

Users browsing this forum: No registered users and 0 guests