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,848
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

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top