GithubHelp home page GithubHelp logo

glslmandel's Introduction

Explore Mandelbrot set in OpenGL

To build need to have GLFW library (binary and devel)

Files:

  • Mandelf.cpp -> explore mandelbrot with single (float) precision
  • Mandeld.cpp -> explore mandelbrot with double precision
  • Mandeld_fullColor.cpp -> explore mandelbrot with double precision and logaritmic smooth coloring

Files, all files, have extension .cpp but are written in C

To build use:

gcc -I. -lglfw -ld -lGL Mandel[d|f].cpp glad/glad.cpp

or

clang -I. -lglfw -ld -lGL Mandel[d|f].cpp glad/glad.cpp

For OS X users, need to add -D_OPENGL_4_1_ flag (OS X do not supports OpenGL 4.5)

Windows users can use the VisualStudio project attached.

Live/online WebGL 2 & WebAssembly versions available

Simple version: https://michelemorrone.eu/WebGL/glslMandel/Mandel.html

More complex with logarithmic smooth coloring: https://michelemorrone.eu/WebGL/glslMandelColor/Mandel.html

To run need a browser that have WebGL2 & WebAssembly features. Currently only FireFox or Chromium based browser (Chrome, Opera, Vivaldi, etc) supports it, in case of problems check for latest version or download a portable version. You can test the WebGL capabilities of your browser at the following link: WebGL 2 Report

glslmandel's People

Contributors

brutpitt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.