explosiveduck / ed2d

Explosive Duck 2D
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Add support for 3D rendering, fix Mesh #19

Open AlexMarinescu opened 9 years ago

AlexMarinescu commented 9 years ago

Update the 2D pipeline to handle 3D objects. Currently CSG and GJK support 3D objects but they would be rendered in 2D. So in order for this to work mesh, shaders and camera have to be updated or added. Mesh was updated due to addition of CSG and camera is being worked on. Shaders will be updated to render 3D objects. Currently the shaders will only rendered textures 2D geometry.

AlexMarinescu commented 8 years ago

So ran into issues. I manged to get camera to use view class to switch projections modes and any 2D objects render properly but no 3D objects yet. It is either the shaders or data being sent to the vbos. Or the camera does not point into the correct location. Need to look into this a bit deeper.

mdsitton commented 8 years ago

Ok so this now works, but the old 2d stuff is now broken. Over the next few weeks hopefully this will all get ironed out and we can close this. Then we will need to see where we want to go with issue #10

AlexMarinescu commented 8 years ago

Basically meshbase will get nuked, mesh will be converted to do the job of the meshbase and then entity will be a new class to tie in together, CSG, manually defined 2D and 3D objects, loaded objects and physics object. Gonna rename the title of this issue a bit.