|
|
|
|
|
by jonnelafin
2020 days ago
|
|
> I'd be really happy if I can just: > 1. Create a window 2. Render pixels in that window that allow 2D/3D space drawing/coloring. 3. Create some basic shapes from a square to a cube and further real-time transformations. It can't be that complicated can it? Hah. All this really depends on what language you want to do this on. (A viable example on Java)[https://youtu.be/KA6rJZOfTTQ]. I think what you want is basic software rendering, so be advised: software rendering gets really slow really fast. I tried something akin to this a couple years back l, it didn't end too well, but I learned a ton in the process, feel free to (take a look )[https://github.com/jonnelafin/PB3D], but the code is crap, so I think you are better off on writing your own. Also these are some wikipedia articles on perspective transformations etc: (Perspective projection)[https://en.m.wikipedia.org/wiki/3D_projection] (Perspective projection -> Mathematical formulas) (Rotation matricies)[https://en.m.wikipedia.org/wiki/Rotation_matrix] |
|