Film Grain effect?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
marigoldsofthenight
Regular
Posts: 44
Joined: Sat Aug 14, 2010 5:31 pm
Contact:

Film Grain effect?

#1 Post by marigoldsofthenight » Thu Nov 21, 2013 1:51 pm

I've been trying to add a fine 'film grain' look to my scenes with alpha channels, but I'm wondering if there's an easy way to overlay the effect over the whole game, menus and all?

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Film Grain effect?

#2 Post by PyTom » Thu Nov 21, 2013 1:53 pm

I don't think there's a good way to do this.

I don't think it can be done with simply "over" or "additive" blending. If there's a way to do it with just those operations, we can do it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Film Grain effect?

#3 Post by SundownKid » Thu Nov 21, 2013 2:12 pm

You can try adding a new layer to your game in the options script like:

Code: Select all

config.layers = [ 'master', 'transient', 'screens', 'overlay', 'texture']
Where "texture" is the new layer. Then you take a bunch of transparent noise images, animate them and show them on that layer. This may only work for in-game, I don't know about menus but I think it would be a bad idea to have a film grain effect over them for usability reasons.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]