Giter Site home page Giter Site logo

adamsol / fractalview Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 2.0 3.76 MB

3D fractal renderer in GLSL.

License: MIT License

JavaScript 42.08% HTML 2.63% GLSL 53.17% SCSS 2.12%
fractal glsl webgl three-js electron ray-marching distance-estimation path-tracing javascript mandelbulb ifs sierpinski

fractalview's Introduction

FractalView

3D fractal renderer in GLSL.

Motivation

Fractals, with their infinite detail and unpredictability, are really amazing to explore.

Though there exist many fractal renderers, like Mandelbulb3D or Fragmentarium, which do their job very well and have many interesting features, I started this project (or its early, uglier versions) long before I tried using other software. FractalView's main goals, besides learning new things, are: GPU rendering, ease of use, and simplicity of code.

Features

  • Ray tracing with distance estimation (a.k.a. ray marching or sphere tracing).
  • Progressive rendering for instantaneous preview and cost-free anti-aliasing and depth of field.
  • Formulas for well-known fractals: Mandelbulb, Juliabulb, Mandelbox, Kaleidoscopic IFS.
  • Several lighting methods, including path tracing with global illumination.
  • Coloring using orbit trap method.
  • Parameter values adjustable with sliders.

To-Do

  • Better, deterministic lighting (shadows and ambient occlusion) without path tracing (which currently doesn't work well for fractal interiors).
  • Additional graphics effects: reflections, bloom, fog, texturing, etc.
  • Support for custom scripts, especially for rendering standard geometry.
  • Double precision calculations (probably not possible without a huge performance drop; shame on you, video card manufacturers!).

Usage

FractalView is written in Electron (Node.js), so NPM (v6) is required. All packages (like Three.js) will be installed automatically.

npm install
npm start

Try built-in fractals and play with their parameters or run some examples (Ctrl+O). Move camera with your mouse and WASDQE keys, use mouse wheel to control its speed (and focal distance).

Note that a fast, dedicated GPU is highly recommended, especially for path tracing.

fractalview's People

Contributors

adamsol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wwwk zhiwei-w-luo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.