Features the project must have will be revealed by the teacher in parts. What I already know:
Define Vertex, Edge, Face, Poly linked structs/classes. (Each edge has pointers to its neighbor faces/edges/vertices and so on)
Make scripts to generate polystructures.
Make a program to open .vtk and show wireframes and lighted objects (like polyhedra, spheres) made of rasterised triangle-faces.
I suspect there will also be tasks like rotate the object, move the camera point, move light source.
I will do the project in C++ with WinAPI.
Previous project:
14:30 started working after: tried to compile with debug version of the compiler, it failed because it can't find WinAPI function. But after that Release version worked with 0 bugs and 0 freezes. Recorded a video to show my teacher, that it compiles SOMETIMES.
I do not understand what I am doing, but at least I can do the next step, And I have 13 hours in a day( till I go to sleep today).
@qqii I am building everything again after every commit. I do not have any files compiled by previous version.
7:05 working on controls
7:35 working on projection methods
8:05 on opening files
8:35 chnging objects to pointers to hold less in memory
9:05 test compilation gave 500 errors. The program is not supposed to compile yet, there are many undefined things, but i do that just to see how far from the end i am.
9:35 reduced the number of errors to 307
10:05 reduced the number of errors to 12. Now can continue implementing functionality
10:35 compile errors to zero. but memory runtime error at opening files. Have to solve this first before anything
11:10 i can draw wireframes of cube and spheres, but the image is not centered, and many bugs. The mst difficult part (lighting) is still ahead
12:10 bugs and bugs, can't move further: the next part depends on the problematic one
6:18 corrected testing file, added depth buffer, line rendering function.
Upcoming difficulties: reading the file and filling a global Scene with the geometry. Reading config to set up lighting.
3h tally. Was including the suitable code bits (like color definitions, screen buffer, etc) from my 2d project, and it is already 430 lines of code over 3 headers and one .c . Have not yet defined structures to hold 3d entities