A webapp that plots multivariable functions into an immersive VR environment. Enter any function of the form f(x, y) and fly around a 3D graph of it in your browser.
Live demo: vr-plotter.dsobani.com
Type a mathematical expression in terms of x and y, hit Plot, and the app generates a VR scene populated with spheres at every (x, y, z) point on the surface. Use WASD to fly around and drag the mouse to look.
Functions are entered using JavaScript's Math object:
| Math notation | Input |
|---|---|
| sin(x) | Math.sin(x) |
| e^x | Math.exp(x) |
| x² | Math.pow(x, 2) |
Do not include
z =— just the right-hand side expression.
3*Math.exp(-Math.pow(x,2)-Math.pow(y,2))
Math.pow(x,2) + Math.pow(y,2)
Math.sin(x)+Math.cos(y)
docker compose upThen open http://localhost:8080.
Serve the project from any PHP-enabled web server (Apache, nginx + php-fpm, or php -S localhost:8080).
- A-Frame — WebVR framework
- PHP — server-side expression injection into the scene
- Bootstrap 4



