RMVXA-GL
RPG Maker VX Ace OpenGL
RPG Maker VX Ace OpenGL
This is a re-approach to my last attempt with using GLSL shaders in RMVXA.
The GLSL project had a number of flaws, most of it coming from that it was produced when I had little experience with desktop GL and I had very little experience with Ruby and I was more interested in hacking the Game runtime than creating a usable API.
If you are unfamiliar with my previous attempts; this project is a 3D rendering API so you can call OpenGL rendering commands and write the result to an RPG Maker bitmap.
This also supports loading an RPG Maker bitmap into an OpenGL texture, so you can load bitmaps from RPG Maker and render them in 3D.
In theory this will work with XP and VX, but VXA is what I am developing this on so it's the primary target for now.
System Requirements
Read this!
OpenGL 2.1 support is currently untested. It works with OpenGL 3.1 on NVidia, Intel and AMD GPUs, but 2.1 support is untested (However, it is implemented as best as I could without a 2.1 GPU).
These are the minimum supported GPUs:
- AMD Radeon HD 6350 or later
- ATI Radeon HD 2350 or later
- NVidia GeForce 6100 or later
- First-generation Intel Core graphics or later
Download Alpha 2
Screen-shots

Super Simple Bur!

Gameboy Pixelation and Palette!

3 colours per component + 1.5x zoom!

Refraction shader!

Spinning cube!
This is more of a try-for-your-self thing, so download the demo and have a walk around.
Demo runs slow!
The post-processing effect is choked by the snap_to_bitmap method, which is slow and is not intended for real-time (This method is usually called once for static image processing such as opening a menu or similar, this demo calls it every frame).
The character on the left will advise you to turn off "reduce screen flickering" (Basically turn of the runtime's vsync), doing that for me gives me a solid 60 FPS on my 2011 gaming PC, with it turned on gives me a solid 59 FPS. My 2012 mid-range laptop gets 15 to 45 FPS in this demo.
The actual 3D rendering is very fast; all GPU memory is allocated/destroyed at initialise/terminate so the slowest part of the rendering is uploading and downloading the texture to and from the GPU, which I actually performance tested against on-GPU memory and had very little performance difference.
TLDR: RPG Maker's snap_to_bitmap is slow, someone make me a new map rendering class so I can directly grab the bitmap as it is rendered (Or better yet, a map rendering class that renders directly to OpenGL!).
So what is this?
This will be an API for rendering 3D polygons within RPG Maker, it comes with my DLL which deals with all the OpenGL stuff and I am writing an API for using it.
It's intended for scripters who want to write 3D graphics, so if you don't script then this isn't for you.
What does this actually mean?
This API set will hopefully let us do cool stuff in RPG Maker;
- 3D battle animations
- 3D maps
- 3D battlers and enemies
- 3D battle-scenes (Like Playstation Final Fantasy titles)
- Even faster, even cooler "Mode 7" (3D maps, again)
- Screen-space shaders (Like in this post-processing demo)
- Map special effects (Per-pixel lighting, bump mapping, water refraction)
- Weather effects (Pixel shader rain, snow, heat-waves)
- 3D menu systems (Even stuff like 3D rotating weapon icons)
- Awesome battle transitions (FFX or FFXIII style)
Demo is cool, now what?
Open up the shaders folder, open the "fragment.fsh" file in a text editor like Notepad++ and perhaps modify the pixel shader to make some new post-processing effects.
To enable the debug console (Which will log your shader compile errors) uncomment line 408 in RMVXA-GL (#Lib.Console_Show) to enable the console when testing your game.
There is a crash if you output too much stuff to the console, I am working on this.
Give me feedback please.


