Grabbing the screen without Bitmap.snap?

Firgof

Artist / Designer
Veteran
Joined
Jul 29, 2012
Messages
236
Reaction score
214
First Language
English
Primarily Uses
Working on a game that I'd like to do a 'screen ghosting' effect/glitch, where I take a snap of the present scene (aka 'taking a screenshot'), lower the snap's alpha, and place it at a random small amount of offset for a short period of time before I destroy it.  Unfortunately, Bitmap.snap is incredibly heavily burdensome (135ms!!!) and so it just can't work for real-time purposes.


You can see the effect in motion in RPG Maker VXA here:










Is there any way to ask PIXI.JS for its last rendered screen, or a faster method to grab the screen -- really, anything that would allow me to accomplish the above?  I've considered doing a shader - but I know nothing about shaders or how to implement them in RPG Maker MV.


Any and all suggestions are welcome.
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,851
First Language
English
When I run Bitmap.snap, the first time it takes 100+ ms, but then after that it takes on average 40 ms.


The speed of the computer probably makes a difference though, as well as the size of the canvas.


I don't know any faster ways of grabbing what's rendered on the stage though.
 
Last edited by a moderator:

Firgof

Artist / Designer
Veteran
Joined
Jul 29, 2012
Messages
236
Reaction score
214
First Language
English
Primarily Uses
I'm willing to do things like just read straight from the video card buffer [thus making the game desktop only] if that's what it takes.


As aforementioned in my post, a shader would probably do what I'm asking for here a lot faster - but I don't know how to implement a shader that would accomplish the above effect.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

While we prepare the official trailer, enjoy this kind-of-second teaser! ^^
-Ele
New Episodes of RPG Shenanigans Uploaded to Youtube!

Episode 5 - Surprise Party!
Youtube Link:
Episode 6 - Killer Gin
Youtube Link:
Episode 7 - Gaia's Melody: Echoed Melodies
(Coming soon!)

Episode 8 - Clarent Saga: Tactics
(Coming soon!)

Episode 9 - Star Shift
(Coming soon!)
When the Map Generator throws in the assets in the most dumbest way possible - your path is blocked :D

I went to sleep at 3 am because of my anxiety. Set up my alarm for 7 am so that I could have sasagues for breakfast and do morning routine before lessons starts at 8 am. I knew I wouldn't be able to sleep even after my lessons finished because I have to visit my grandparents today I was sad bc I was really tired. Thats when I realised. My lesson starts at 9 am. I could get one extra hour of sleep if I didnt forget it

Forum statistics

Threads
107,563
Messages
1,030,574
Members
139,671
Latest member
WDRS
Top