lonkaars / liehjuck

Simple software rasterizer (school project)
3 stars 0 forks source link

Create a 3D->2D projector #17

Closed lonkaars closed 4 years ago

lonkaars commented 4 years ago

Add a method to the object class that projects the 3D vertices to 2D screen coordinates. This method should be defined in scene.cpp and should return an std::vector<std::array<Position2D, 3>> with the vector length being the same as object.vertices.size().

lonkaars commented 4 years ago

Progress on this issue:

Total time spent on this: 12h27m

I'll add more items to this checklist if necessary

lonkaars commented 4 years ago

@amieleg I need a draw loop in order to implement the above in c++. Here's how it's done in js: https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame

lonkaars commented 4 years ago

Waiting for mainloop-window merge to dev for 3d-projector-cpp merge to dev, then dev to master