Still hovering over these forums regularly in case anybody needs Qiso support etc, but otherwise much less active than I used to be.
Some of you might remember years ago I started tinkering with developing a 3D engine for Solar2D - well, still Corona SDK back then. I always intended to jump back onto this and turn it into a proper plugin with a variety of basic shapes and support to import .obj files but alas the years are flying by and I just never get time for it, so I’ve decided the best thing I can do at this point is to upload my work so far and see if anybody else wants to build from it. So here we are!
If you just launch main.lua in the simulator you should see spinning cubes and the code to generate this scene is really simple and self explanatory. The engine itself is in the plugin folder - again my intention was to eventually release this as a plugin. Following the code through for how everything works should be easy enough, it’s pretty decently commented I believe. There are also various TODO lines and obviously temporary bits so it might even be clear where I was planning to extend and replace functionality. Much of this is very crude at the moment to be honest. It only does cubes for example, but how the vertices are mapped out for those should be indicative of how they’d be mapped out for other shapes too.
Anyway, I just hope this is useful or at least motivating for anybody else wanting to do 3D in Solar2D. All I ask is that if anybody does build from this, I’d appreciate if you could just attribute QWeb Ltd in some way.
Q3d 3D Engine.zip (1.1 MB)