GithubHelp home page GithubHelp logo

caydendw / julia_render Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 18 KB

A multithreaded julia renderer that I used to render a beautiful animation

License: GNU General Public License v3.0

C 78.20% Makefile 21.80%

julia_render's Introduction

Julia render

Simple little julia render that I used to create a very lovely animation. To see the results of that, see https://youtu.be/6tMu-61DL7I or https://youtu.be/3ZkzaIJ__7o.

Usage

  1. Edit src/main.c and change the constants as desired. N.B: CHANGE THE THREADS VALUE TO THE AMMOUNT OF CORES YOU HAVE OR SUFFER. Modify how the colours array is filled in for nicer colours.
  2. run make
  3. run ./julia
  4. OPTIONAL: Run ./julia & instead to do it in the background instead
  5. OPTIONAL: Run make renice to give the process slightly more favourable CPU usage (Might bring your computer to a crawl)
  6. Once the program is done, use make render (Or make nvrender to use CUDA on an NVidia graphics card) to render a video file.
  7. OPTIONAL: Use make small (Or make nvsmall to use CUDA on an NVidia graphics card) to compress the video into a more standard video size

Improvements

  • A possible improvement would be to move the Julia renderer to the GPU using GLSL or CUDA or something but I decided just to hurt my CPU instead.
  • Something else to improve would be to find a way to avoid using SDL in favour of something a little faster. STBI renderer the PNGs a little too slow so I stuck with SDL instead.
  • Another good idea would be to figure out a format to replace PNG. Compressing the PNGs is costly. The issue is that disk space is limited and PNGs compress the best without losing detail in the image. Maybe making some sort of "on-the-fly" stitching together of the images so that only the video remains but I was too lazy to do this.

Colours

The colour palette is taken from https://github.com/HackerPoet/FractalSoundExplorer. It is pre-rendered instead as to make it slightly faster.

License

GPL-v3.0 :)

julia_render's People

Contributors

caydendw avatar

Stargazers

Adam Salhi avatar

Watchers

 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.