Anyway you can throw in a First person Labyrinth Explorer mode in there since you're already playing with the math?
Mode 7 - Get a 3D perspective on your world map
JS Plugins In DevelopmentI don't think it entirely works that way. It's one thing to take a map and implement it as a 3d object, but it's an almost entirely different beast to implement a 3d camera that does the first person thing and entirely overhaul the graphics engine. Correct me if im wrong, OP, but it seems like a lot to ask for first person mode as well as mode 7 in the same plugin.
Having worked on the current FPLE, I can say quite emphatically they are different. Especially since the mode 7 plugin doesn't look like it deals with raised objects or textured terrain.
Hey there, I want to say good job on these preliminary tests - MV is still missing 3D maps despite the engine having native support for hardware acceleration. I am particularly impressed with the mouse-look.
As for the WebGL requirement, a while ago I made some experiments with rendering 3D models in canvas: https://goo.gl/54QiTm that might give you some ideas on making a compatibility mode to run on instances without WebGL support (a lot of Android devices are in this category still).
I'm guessing right now you're taking the rendered tilemap and using it as a texture on a free-moving 3D mesh? This is what I explored in my early attempts, but overall I think it may be better to do a batched tile renderer, the logic being that if you're drawing the tiles to the tilemap, you might as well draw them to the screen in 3D and avoid the middle-step.
When I was working on my 3D maps Plugin I realised that there's a lot of components to be built to make a really flexible Plugin, the main one being the character movement, as such I'm working on a character movement Plugin before moving onto 3D maps. I'm interested if you'll be sticking to the 3D grid movement or if you will also implement a new movement system?
Will you also be exploring the possibility of having 3D models on the map? This is something on my feature list.
I am really excited to see your Plugin, really can't wait to see more.
As for the WebGL requirement, a while ago I made some experiments with rendering 3D models in canvas: https://goo.gl/54QiTm that might give you some ideas on making a compatibility mode to run on instances without WebGL support (a lot of Android devices are in this category still).
I'm guessing right now you're taking the rendered tilemap and using it as a texture on a free-moving 3D mesh? This is what I explored in my early attempts, but overall I think it may be better to do a batched tile renderer, the logic being that if you're drawing the tiles to the tilemap, you might as well draw them to the screen in 3D and avoid the middle-step.
When I was working on my 3D maps Plugin I realised that there's a lot of components to be built to make a really flexible Plugin, the main one being the character movement, as such I'm working on a character movement Plugin before moving onto 3D maps. I'm interested if you'll be sticking to the 3D grid movement or if you will also implement a new movement system?
Will you also be exploring the possibility of having 3D models on the map? This is something on my feature list.
I am really excited to see your Plugin, really can't wait to see more.
Actually I am just drawing the individual tiles in 3D without any texture conversion. The problem I'm running into with that is big framedrops whenever you move and rpg maker recalculates all the tiles. That's with a slight increase in tiles, to let you see really far you quickly hit the vertex limit.
Out of the box it'll just be tile based movement, but it should work with any movement system(may need tweaks for touch based movement).
No, I won't be adding 3D model support. In addition to going for the old school look I'm not using any 3D javascript libraries. Without any kind of scene hierarchy 3D models would be a pain.
Thanks for the info. I don't think I'd use MV's tile-mapper for updating the tiles or calculating visibility, I'd roll with a completely custom approach. MV is definitely optimised for rendering to a 2D surface that can be panned without updating, not a free-moving 3D surface, so a lot of recalculations happen each time the player takes a step.
I'm not sure what you mean by "vertex limit" - are each of your tiles an individually uploaded mesh? I still need to think about how I'm going to do the tile rendering. Javascript isn't very good with 3D mathematics. A clever frustum culling system would probably be best (quad tree should work super nice).
I'm still thinking about whether I want to generate meshes of repeating tile textures at run-time, which would mean exploding the tileset into a 3D texture at load-time to take advantage of hardware texture repeat and hardware tile animations. I am very interested in how you tackled these issues (if you tackled them at all, in some cases it's just faster to draw the whole thing without worrying, especially when it comes to Javascript performance).
I agree about avoiding 3D Javascript libraries. I've seen some solutions that do this, but for the end-user it's extra bloat and it locks out some options (Canvas rendering one of them, so they're definitely not an option for me).
EDIT: You've got me super excited about all this again! Thank you!
I'm not sure what you mean by "vertex limit" - are each of your tiles an individually uploaded mesh? I still need to think about how I'm going to do the tile rendering. Javascript isn't very good with 3D mathematics. A clever frustum culling system would probably be best (quad tree should work super nice).
I'm still thinking about whether I want to generate meshes of repeating tile textures at run-time, which would mean exploding the tileset into a 3D texture at load-time to take advantage of hardware texture repeat and hardware tile animations. I am very interested in how you tackled these issues (if you tackled them at all, in some cases it's just faster to draw the whole thing without worrying, especially when it comes to Javascript performance).
I agree about avoiding 3D Javascript libraries. I've seen some solutions that do this, but for the end-user it's extra bloat and it locks out some options (Canvas rendering one of them, so they're definitely not an option for me).
EDIT: You've got me super excited about all this again! Thank you!
Awesome job man! can't wait to test it out.
Man, this looks awesome...
Cool.
This is exactly what i wanted for my project. really good job.
This is exactly what i wanted for my project. really good job.
Hello @agoaj , have you halted work on this? It was looking pretty promising.
I think no one is going to finish this plugin. And the worst part is that there are no more Mode 7 plugins for MV in development or finished. Even VX Ace has a script for this feature, but it seems that JavaScript can't handle Mode 7 without lag, frame drops or glitches.
@agoaj I would pay for this plugin.
The story is a little more complicated than this. MV can handle "mode 7" (and 3D in general) far better than previous vanilla RPG Maker versions - this is thanks to the native support for WebGL.
However, MV also runs on platforms that do not have WebGL support, so Canvas2D (software graphics, no graphics card used) needs to be supported too. Canvas2D does not have 3D support, so to code 3D with this requires a heck of a lot of code, most developers will start going down this rabbit hole then quickly regret it. Even 3D Plugins such as agoaj's one here that demand WebGL require a lot of code to be written for handling the 3D mathematics and environment, the amount of work required is huge.
With MV and WebGL a Plugin developer can very quickly get 3D graphics running with 3rd party libraries like three.js, however these libraries tend to forgo Canvas2D support, so while three.js gives you quick results for a nice demo to show people, it's not ideal for full-spec Plugins.
Previous RPG Maker versions tend to require an additional Windows code library (DLL) that handles the "mode 7" effect in high-speed native code (usually written in C or C++), as the Ruby interpreter was too slow to do any 3D effects at satisfactory performance. You've also got millions of C/C++ resources and libraries for 3D rendering at your disposal, all with minimal performance impact.
In general, yes MV has worse performance than older RPG Makers, but the fact that it supports WebGL means it can do far more than older RPG Makers without having to dive into C/C++ binaries. MV does have a performance ceiling, though - Javascript is not very fast and it's far more difficult to use native code in MV than in older versions (very much far more) so MV's WebGL will still be slower than the experimental OpenGL scripts I wrote for XP/VX/VXAce.
---
There's also a community aspect here; MV in general seems to have a far less receptive community when it comes to advanced Plugins such as this one than previous RPG Makers. 3D graphics in XP/VX/VXAce would have hundreds of people supporting it, lots of testers, dedicated development, and the community would celebrate its achievement, with MV and its community we don't see this at all. Someone makes a 3D/online-multiplayer/first-person-dungeon/side-scroller Plugin for MV and it seems that very few people care; not faulting the community on this, but that's something that us 15 year RPG Maker veterans have noticed - it just doesn't seem worth the effort these days to build complex/advanced Plugins.
---
Back on the subject of 3D maps Plugins, as I've said up above I'm actually planning one still, one that uses both WebGL and Canvas2D, but first I need to do the ground-work and for me that meant a new movement system that is more ideal for 3D maps - which is why Altimit Movement exists.
The next stage is to write the 3D graphics renderer, and if you've understood what I've written above you'd know that this is no simple task. There is a middle-ground; emscripten. This toolchain compiles C/C++ into optimised Javascript, and is how engines like Unreal Engine and Unity run in the web-browser; it would probably be easier to write the 3D engine in C/C++ and compile it to Javascript, using all the C/C++ 3D libraries desired. Bringing Canvas2D support into this would be the hard part.
---
So yeah, it's a complicated story, there's definitely lots of options to explore - each with draw-backs and limitations, and there are people thinking about this and taking their time with planning how to go about this, but in the case of my studio we need to be smart with picking-and-choosing which problems to solve first as developing this stuff costs us a lot of money - I think for a developer who is using MV in their spare-time and does not have the dedicated resources it would be even harder.
I can't speak for agoaj, but if I were to guess I'd say they decided to stop and think about the best way to do this Plugin and put it on hold whilst they gather their ideas and skills together to make it the best 3D Plugin they can make.
i donjt read your book up lol.
But is very easy to make 3d now with plane plugin.
http://pixijs.io/examples/#/projection/plane.js
i use it for make a fake 3d like mario paper .
Its not reel 3d , its caled 2.5D.
its the 4 Scale point with a texture update on the center anchor. (same like photoshop do)
easy step with add parralaxe and sprite inside a plane container.
but for good 3d game , Unity exist for thats.
But is very easy to make 3d now with plane plugin.
http://pixijs.io/examples/#/projection/plane.js
i use it for make a fake 3d like mario paper .
Its not reel 3d , its caled 2.5D.
its the 4 Scale point with a texture update on the center anchor. (same like photoshop do)
easy step with add parralaxe and sprite inside a plane container.
but for good 3d game , Unity exist for thats.
This looks promising, but using a parallax as base is not the same as rendering an rpg maker map in mode7 though.
https://gameofbombs.github.io/pixi-bin/index.html
this its maybe similar with pixi
i say parralaxe, because i work only with custom parralaxe animations .
but you can use it in the new map shader of rmmv, in pixi-tilemap.js
this its maybe similar with pixi
i say parralaxe, because i work only with custom parralaxe animations .
but you can use it in the new map shader of rmmv, in pixi-tilemap.js
How would this work for a project ? Simply adding in the java script to the plugin folder ?
@agoaj Are you still working on this? I mean even very basic release without buggy or unfinished features (like the curvature thing) would be mighty useful.
is there a link to the plugin? i'd love to be able to use this in my game :3
There is no link, this project seems to be not continued after all. The author is missing since months, so I don't think he will be finishing this plugin.
Original thread: https://forums.rpgmakerweb.com/threads/mode-7-get-a-3d-perspective-on-your-world-map.76903/