Frictional Games Forum (read-only)
Hypothetical question (shaders/materials/etc) - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+--- Thread: Hypothetical question (shaders/materials/etc) (/thread-27702.html)



Hypothetical question (shaders/materials/etc) - MrBehemoth - 12-14-2014

Hypothetical question:

Can anyone think of a way to temporarily fake a lower screen resolution using shaders, refraction or some other jiggery-pokery?

For example (this is a totally made up scenario and not what I'm making) - say you were making an FC where your player character was a robot. Instead of losing sanity, your robot character loses processing power and the view becomes more pixellated (of course, without changing the actual screen resolution).

I imagine that clever shaders could maybe do something of the sort, but I'm not sure what is possible in HPL2 or how it would work. Another potential idea would be to mask the player's view with a refracting material, but the best I've been able to do with my experiments in that direction is a kind of mosaic glass effect, which is pretty, but not the same thing.

Any thoughts?


RE: Hypothetical question (shaders/materials/etc) - Daemian - 12-14-2014

You could use a timer that checks your health/sanity every 4-5 seconds, if it's below 100, you put a tv static effect with an insanity event. And maybe fade out the screen for a sec.


RE: Hypothetical question (shaders/materials/etc) - MrBehemoth - 12-14-2014

Sure, you're right: for the robot-player example I mentioned, that would be a sensible and doable alternative. Cool That's not actually what I want to use it for though. I don't want to say right now what it's really for, as it might never happen. Wink

What I was wondering about would be more complicated, or not even possible: specifically faking a lower resolution (i.e., pixellated) for a while, in game, whatever way it is applied in script.