Skip to content

Graphs an interactive 3D function using OpenGL tessellation shaders

License

Notifications You must be signed in to change notification settings

dfontenot/3dgraph

Repository files navigation

3dgraph

Graph a 3d function using OpenGL or OpenGL ES.

OpenGL requirements

Requires OpenGL 4.1 for hardware tessellation, or OpenGL ES 3.0 (software tessellation) for the es build.

Building

Need a C++23 capable compiler (at least GCC14, or at least clang20), cmake, and conan package manager

Can treat the build helper script like cmake, all args passed to it will be forwarded to cmake

  • ./run-build.sh

Controls

  • Up / down : Control the divisor of the 3D function
  • Left / right: "Pan" the 3D function (render different parts of the surface). Hold shift to pan on Y axis
  • WASD: Orbit the mesh. Hold shift to slow down the orbit.
  • E: Toggle wireframe only view (OpenGL 4.1 only)
  • Scroll wheel: Change the tessellation level of the mesh
  • Plus / minus: Zoom in and out
  • Q: Quit

About

Graphs an interactive 3D function using OpenGL tessellation shaders

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published