3 ms·
Where could one learn quartenion math? For educational purposes, I want to generate a 3d rotating cube on the screen without any help from 3d kits like OpenGL
by fb03 8y ago
Where could one learn quartenion math?
For educational purposes, I want to generate a 3d rotating cube on the screen without any help from 3d kits like OpenGL and etc (I want to learn all the math there is to do this without any help, only rastering).
Thanks in advance.
- codesushi42 8y agoYou will need more than quaternions to get a rotating cube working without OpenGL. You would need some kind of basic lighting for this to work. If you really want to build a 3d engine from scratch without OpenGL, I suggest checking this book out. It was written in the mid 90s and explains how to write a simple 3d engine in DOS. https://archive.org/details/BlackArt3DEBook https://archive.org/details/BlackArt3DEBook
- codesushi42 8y agoWell, I suppose you could create a wireframed cube without any lighting... But the above material is much more interesting.
- derjames 8y agoTry to find the papers from Ken Shoemake. He has an article in the book Graphics Gems IV ( ArcBall, Section III.1 ). A long time ago I wrote a STL viewer that utilizes quaternions to compute the model rotations using what I learnt from those papers. https://github.com/jimijimi/trekanter_mingw https://github.com/jimijimi/trekanter_mingw Warning: Very UGLY code, so be easy on me( win32 cross compiled on Linux, ugh! ).