Coder Social home page Coder Social logo

flow's Introduction

flow

image info

what

a command line program that produces high resolution png file with procedural 2d art

note : this is a on-going project, it is not finished. Only tested on my machines.

how

Based on flow fields and 2d distance fields

Signed distance fields are used to create the flow field.

anti-aliasing

Line/disc/triangle are rasterized with a king of MSAA, for each pixel we compute distance to the primitive for 256 samples positions. This part is written with AVX intrinsic because it's the most expensive functions.

multithread

Goal is to generate big high quality images (4k and more). Most computation happen on big array and can be splitted :

  • array of angle can be computed separetly on multiple thread
  • simulating points is independant, can be splitted
  • rasterization also can be splitted in different bucket that prevent accessing to the same pixel

Task scheduler used : https://github.com/vurtun/mmx/blob/master/sched.h

color

Currently using r8g8b8a8 image but the plan is to use linear color in float and write hdr.

Using https://github.com/nothings/stb/blob/master/stb_image_write.h

flow's People

Contributors

geolm avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

brucelevis

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.