The Daily Click ::. Forums ::. Klik Coding Help ::. Night time filters/shaders?
 

Post Reply  Post Oekaki 
 

Posted By Message

Jake G



Registered
  06/03/2010
Points
  782

Wii OwnerVIP Member
4th February, 2014 at 04/02/2014 12:57:31 -

Ideally I'd like to somehow be able to use frames that I have already created but make everything in the scene appear to be more as if it is night time. The general darkening if the scene with maybe some highlights from the moonlight. Is there any easy way to achieve this - perhaps using shaders? Thanks!

 
Visit www.voltic.com.au - you probably won't regret it!

~Gradually getting less bad at making games~

hapsi



Registered
  13/11/2003
Points
  775
4th February, 2014 at 04/02/2014 15:48:23 -

If the resolution is small, the easiest way is to create a semi-transparent active object over the screen. However if there is a solution with shaders i'd recommend that.

 
[Signature][/Signature]

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
6th February, 2014 at 06/02/2014 08:43:53 -

I would make an object thats layered over top of everything, maybe use a filter to make it somewhat transparent and have it set to a timer to cycle through frames of an animation. you could imitate night and day like that.

 
[Game design makes my brain feel like its gonna explode.]

Jake G



Registered
  06/03/2010
Points
  782

Wii OwnerVIP Member
6th February, 2014 at 06/02/2014 13:02:33 -

Thanks for your replies!

The resolution is 1280 x 720, ideally I'd like shaders as a transparent object will probably just dim everything. I don't need the scene to dynamically change from day to night. 90% of the game will be during "day time" but occasionally at some points there will be scenes at night time. I suppose I could just make a separate frame for these night time scenes - It would have been cool to re-use existing assets though

 
Visit www.voltic.com.au - you probably won't regret it!

~Gradually getting less bad at making games~

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
6th February, 2014 at 06/02/2014 22:11:18 -

There probably isn't a suitable shader already, but it would be fairly trivial to write one that just cuts out a lot of the red and green, lowers the saturation a bit, and maybe ups the contrast slightly - which is basically all you need.
eg. http://sdrv.ms/LCCk16 (a *very* quick and simple example)

Or like the others say - just a dark orange object on top of the frame, with a "subtract" effect, ought to be a simple and effective solution.

Edited by Sketchy

 
n/a

Jake G



Registered
  06/03/2010
Points
  782

Wii OwnerVIP Member
10th February, 2014 at 10/02/2014 08:20:10 -

The dark orange + subtract worked pretty well thanks everyone.

 
Visit www.voltic.com.au - you probably won't regret it!

~Gradually getting less bad at making games~
   

Post Reply



 



Advertisement

Worth A Click