Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.42 KB

File metadata and controls

44 lines (32 loc) · 1.42 KB

Pretty Math

A selection of math visualizations/art-ish tools

Uses Dear Imgui for gui

Model Viewer

Can load arbitrary obj files. Can generate a solid of revolution and calculate the volume. Can generate a solid of Extrusion where the side length is determined by a function and cross sections perpendicular to the x-axis and calculate volume

Modelviewer Example Normals Normal Shaded generated solids Modelviewer Example Shaded Phong Shaded generated solids

OpenGL Shader Editor

Uniform editors single pass shader editor much like Shadertoy supports setting int, float, and vec3 uniforms renders to framebuffer and texture to be used in gui as a texture OpenGL Example

2D attractors

in the form of

xnew=f(x,y,a,b,c,d)
ynew=g(x,y,a,b,c,d)
plot(xnew,ynew)
x=xnew
y=ynew

Example Attractor 1 Example Attractor 2

Features:

  • fine control over output parameters
  • Expression parser to take new formulas at run time. Accepts ln, sin, cos, and more coming soon
  • Gradient Support and editor