You are browsing as a guest. Sign up (or log in) to start making projects!

sine based rendering

  • 3 Devlogs
  • 7 Total hours

making a "graphics engine" based on sines and fourier series )

Open comments for this post

4h 7m 42s logged

sine-drawing tool!

I did varios stuff, an editor, new structure, etc.

Editor

At the time its verryyy simple but I plan to add some more features )

Project structure

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.

New shapes

  • GroupShape (combines multiple shapes into one)
  • StyledShape (sets a ShapeStyle for the passed shape (or shape group))

rendering system

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.

further plans

  • make a file format for saving harmonics.
  • add an export option to the editor (exports to a file)
  • make a font! (But later ig…)
0
0
5
Open comments for this post

1h 41m 56s logged

working on project structure

I’ve been working on better project structure. I added some classes, that make the rendering easier:

  • HarmonicShape
    • the shape, encoded in harmonics
  • RenderStyle
    • stores the color, width and in the future other render propereties.
  • StyledShape
    • the final shape object, that combines the harmonic shape and the render style.
    • will store the animation for the shape (modifies harmonics)
  • HarmonicSprite
    • stores a list of shapes (StyledShape) and handles updates and animations
  • PygameRenderer
    • renders sprites on the screen

Also I added a fft function to later transform points into harmonics. - next i will make a drawing tool, and make an alphabet.

0
0
7
Open comments for this post

1h 9m 18s logged

Another side-project :D

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.

Project idea

My idea for this project is to make a simple font and sprite renderer, using the fourier series…

What is a fourier series / transform?

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.

Why is it so cool?

  • if you fade the harmonics, you can make transitions between shapes, animate them, and much more.
  • it uses less storage then traditional apps, because it has no big assets (harmonics are tiny). BUT it probably will use more ram, because its computing all the paths live.

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!)

0
0
5

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…