Myvideo

Guest

Login

IFS Plotter (C++ / SFML)

Uploaded By: Myvideo
4 views
0
0 votes
0

Yo ! A big program I've been working on : a multipurpose plotter that is able to display any 2D scatter plot. To do that, I've coded my own equation parser. The user inputs the formula as a string and the parser is able to interpret the symbols into a mathematical equation. It is able to read any combination of operators, functions and variables. It takes into account the order of operations - parenthesis level included- by creating a parse tree similar to the syntax tree in a computer algebra system. I can then assign a value to the parameters and get the result of the equation the user entered. It is pretty complex and needed a lot of time to understand how to code it. So the variables x, y and t are reserved to create the 2D plot. The user can then input the equation he wishes and the program iterates it for him. We can then plot all sorts of curves - attractors, parametric, brownian movment,... I also coded a simple GLSL shader that converts the final alpha t

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later