Can i directly read/modify pixels of image on CDD?(answered)

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
User avatar
SONTSE
Regular
Posts: 95
Joined: Sun Nov 24, 2013 10:49 pm
Completed: 8 VN's so far
Contact:

Can i directly read/modify pixels of image on CDD?(answered)

#1 Post by SONTSE » Wed Oct 08, 2014 12:38 pm

I want to make some effects using cdd (like dynamic lighting, blurs, distortions, Motion Portrait mimicry, etc ) which seemingly require direct access to the pixel matrix. is there a standard methods for it? like renpy.displayeable class properties or some functions maybe? I failed to find any and all i can think for now is to make an array of one-pixel im.Crop-s, but that would be unimaginably ugly ^^''''

upd: updated question instead of replying to avoid bump. A clear negative answer is also a good one? so thanks PyTom n_n
Last edited by SONTSE on Thu Oct 09, 2014 3:54 pm, edited 1 time in total.
Look! It's moving. It's alive. It's alive... IT'S ALIVE! Oh, in the name of God! Now I know what it feels like to be God!(@Henry_Frankenstein. Sums up my coding style)

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: Can i directly read/modify pixels of image on CDD?

#2 Post by PyTom » Wed Oct 08, 2014 5:41 pm

No.

Everything is loaded into the GPU, so you can't easily read it with the CPU. My eventual plan is to add pixel shader support to allow for some of that, but that's still a bit off. (iOS will come out first.)
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

Post Reply

Who is online

Users browsing this forum: Google [Bot]