sine based rendering
- 3 Devlogs
- 7 Total hours
making a "graphics engine" based on sines and fourier series )
making a "graphics engine" based on sines and fourier series )
I did varios stuff, an editor, new structure, etc.
At the time its verryyy simple but I plan to add some more features )
I remade the project structure again! Shapes are now like nodes in other game engines, there are path shapes, and some other shapes like ShapeGroup and StyledShape. A PathShape always has a build_path() function, to create the path from harmonics.
The rendering system is modular, there is a main renderer class, that handles the main logic. And there is a specific renderer (pygame) that does the graphic stuff. The idea is, that it can be easily expanded to render with a different engine.
I’ve been working on better project structure. I added some classes, that make the rendering easier:
Also I added a fft function to later transform points into harmonics. - next i will make a drawing tool, and make an alphabet.
recently, I watched some videos about the fourier series, and the fourier transform. One guy even made a game out of it! I got inspired, and started another side-project XD.
My idea for this project is to make a simple font and sprite renderer, using the fourier series…
Its the algorithm for spliting any wave into varios sine waves. And if u combine two waves (x and y) you can draw any shape.
At the time I only have this small flower-demo, but later I will add more cool stuff :)
(maybe I will even do a game!)