Recently, there was a desire to write a mini 3D engine. There is knowledge of mathematics, I would like, without using practically any libraries other than Vindos, to write it from scratch. I need operators to draw a point, and draw a line on a form or screen, preferably as close as possible to the commands sent to the video card. And, if there is one, then the painting team of the triangle) I would be grateful for providing any links and information.
- You write that you do not want to use libraries. Why do you need drawing functions? - Jakeroid
- almost do not want to use. if there is no drawing in the standard ones, then libraries can also be used, but I would like the simplest commands without any processing, working as fast as possible - Vincento Law
- The fastest possible thing is that it is as close as possible to the hardware, and this is the driver. After the drivers are already DirectDraw and OpenGL, and there already is everything you want to do) Next, WinAPI and so on. - insolor
- But is there an opportunity to get access to the work of the drivers?) It did not work with the drivers before - Vincento Law
2 answers
IMHO, this is the case when your bike will not work better than the finished one. The functions of the same OpenGL are implemented at the driver level, for example, the video card itself actually performs the projection. In general, you can google on the topic of rendering . If you are specifically interested in projecting, you can see here: Perspective Transformations .
- Thanks, it doesn't matter to me that he is better. I usually end up with just getting to the best bike, but with my own efforts, sometimes with clues of course. But after that I fully know the device of this bike and will never forget it. Of course, it is presumptuous to think that I can create OpenGL, which has been made by more than one person for more than one year, but I need to dig into this) Look for rendering, thanks for the help, for the links! - Vincento Law
Use either OpenGL or Direct3D (without D3DX). If the video driver is installed, you will not have to carry anything with you.
If you basically do not want to use anything other than WinAPI, google GDI. But it is slow, because it is soft, and writing 3D on it is inconvenient.
I personally recommend using OpenGL. You can explore it on the "OpenGL Superbook."
- Thank you, I just started working with OpenGL, I wondered how it projects the 3-D stage onto the plane and in general how everything works. And it became interesting to me to write my own engine, which will work differently. I know that at the deep level OpenGL and DirectX are very similar. The reluctance to use third-party libraries is caused by the fact that there is a lot of excess already implemented. I would like to have the simplest commands and create everything myself. Probably, I explained the poorly in the question what I want) And yes, I like to reinvent the wheel. I so much better understand the device of certain things. - Vincento Law