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.
Post Reply
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Can a cameratexture have nightvision?

Post by Enjay »

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
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Can a cameratexture have nightvision?

Post by Caligari87 »

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
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Can a cameratexture have nightvision?

Post by Enjay »

Thanks, that would do the job nicely actually. I'll check it out.
Post Reply

Return to “Mapping”