Posted 18 December 2012 - 05:38 AM
Multiple times have I - and I'm sure others - have tried to emulate basic level 3D graphics on CC.
There was usually one fatal flaw, which was surprisingly (in my case) not memory issues but was instead graphical limitations, there is only so much you can do with 50x18 pixels even with colour.
This project is my beginnings of an attempt at a extremely simple 3D game engine; note that I have little idea of what maths goes in to true 3D programming and that this code is not only not very functional but is also temporary, it is a test.
Currently it works by creating 2D (sort of 3D) panels in a 3D world using x, y, z, width, height, depth then calculates the distance between the world viewpoint (camera) and panel and scales the panel accordingly.
Before drawing it then decides if the camera can actually see the object based on it's base difference between the cameras coordinates and the objects coordinates, comparing against a camera's "rotation".
I have yet to implement distance ordering so that it draws sprites in distance order, furthest to nearest.
Currently this all works, with sprites and camera movement but sprites not being drawn when you go past them doesn't work along with a lot of things, it's very buggy and unfinished either way, here is the code:
http://pastebin.com/a6n055BY
I posted this because I lost enthusiasm in the project and was hoping not only could people give me a boost in whatever form (even basic interest) that would push me to improve it but also to help me improve it, either by taking the code (which I will update as best as possible) and modifying it or just suggesting improvements.
Please remember this is a huge test and may never properly work, I just want to be sure that it will never work instead of presuming it will never work.
So tell me what you think please :P/>
There was usually one fatal flaw, which was surprisingly (in my case) not memory issues but was instead graphical limitations, there is only so much you can do with 50x18 pixels even with colour.
This project is my beginnings of an attempt at a extremely simple 3D game engine; note that I have little idea of what maths goes in to true 3D programming and that this code is not only not very functional but is also temporary, it is a test.
Currently it works by creating 2D (sort of 3D) panels in a 3D world using x, y, z, width, height, depth then calculates the distance between the world viewpoint (camera) and panel and scales the panel accordingly.
Before drawing it then decides if the camera can actually see the object based on it's base difference between the cameras coordinates and the objects coordinates, comparing against a camera's "rotation".
I have yet to implement distance ordering so that it draws sprites in distance order, furthest to nearest.
Currently this all works, with sprites and camera movement but sprites not being drawn when you go past them doesn't work along with a lot of things, it's very buggy and unfinished either way, here is the code:
http://pastebin.com/a6n055BY
I posted this because I lost enthusiasm in the project and was hoping not only could people give me a boost in whatever form (even basic interest) that would push me to improve it but also to help me improve it, either by taking the code (which I will update as best as possible) and modifying it or just suggesting improvements.
Please remember this is a huge test and may never properly work, I just want to be sure that it will never work instead of presuming it will never work.
So tell me what you think please :P/>