4D now that I think about it. There are 3 parameters: u,v,w. W isn't used, but you can change it if you'd like
Parametric surface of a tumor cell I pulled out of my calc textbook
- GLFW
- GL 4.2
- GLAD (already included when compiling)
- STB_IMAGE (for loading images, also included)
- GLM (install this from their repository)
- Dear Imgui (already included when compiling)
- All of the above dependencies installed
- g++
The make file relies on the `find` command, so you may not be able to compile at all on a Windows machine, or just use WSL.
- git clone https://github.com/classAndrew/cubicoid.git
- cd cubicoid
- mkdir bin
- make
To run, bin/runner
Currently, you have to write your own mini programs and compile with in order to graph anything. I'm currently working on implementing an evaluator or a nicer way to just link already compiled to objects together. If you're itching to get graphing, take a look at vert_gen.cpp which specifies x, y, z coords with a given transformation of u, v, w (w is not used).
Compile and run if you want to render a sample surface.
- Dynamic loading of compiled functions for drawing the surface
- Maybe port to webGL some time
- Right now, I'm not utilizing compute shaders to their maximum potential. All vertices are calculated by the CPU and passed to the shaders only to draw stuff