All Projects → inconvergent → desert

inconvergent / desert

Licence: MIT License
A fast (?) random sampling drawing library

Programming Languages

python
139335 projects - #7 most used programming language
Cuda
1817 projects
shell
77523 projects

Projects that are alternatives of or similar to desert

drawa-android
🎨 Drawing application for Android made easy
Stars: ✭ 16 (-73.77%)
Mutual labels:  drawing, drawing-app
ZzSprite
Pixel Art Sprite Generator
Stars: ✭ 85 (+39.34%)
Mutual labels:  generative-art, generative
GenerativeArtists
No description or website provided.
Stars: ✭ 22 (-63.93%)
Mutual labels:  generative-art, generative
Generative-Art
A selection of generative art scripts written in Python
Stars: ✭ 284 (+365.57%)
Mutual labels:  generative-art, generative
samila
Generative Art Generator
Stars: ✭ 750 (+1129.51%)
Mutual labels:  generative-art, generative
GAS
Generative Art Synthesizer - a python program that generates python programs that generates generative art
Stars: ✭ 42 (-31.15%)
Mutual labels:  generative-art, generative
ludigraphix.github.io
Documentation for Ludigraphix
Stars: ✭ 21 (-65.57%)
Mutual labels:  drawing, drawing-app
Plotoptix
Data visualisation in Python based on OptiX 7.2 ray tracing framework.
Stars: ✭ 252 (+313.11%)
Mutual labels:  cuda, generative-art
glitch-image
🖼 Generate and save unique glitchy images
Stars: ✭ 46 (-24.59%)
Mutual labels:  generative-art, generative
grafx2
Mirror of GrafX2. Official repo is on gitlab.
Stars: ✭ 108 (+77.05%)
Mutual labels:  drawing, drawing-app
generative-art
Generative art experiments
Stars: ✭ 113 (+85.25%)
Mutual labels:  generative-art, generative
drawsvg-editor
Full SVG Editor to be installed as desktop app
Stars: ✭ 19 (-68.85%)
Mutual labels:  drawing, drawing-app
pencil-scribbles
Create pencil effect drawings from pictures using R
Stars: ✭ 30 (-50.82%)
Mutual labels:  drawing, generative-art
book-mdpc
Il cinema tra le righe... di codice!
Stars: ✭ 59 (-3.28%)
Mutual labels:  generative-art, generative
AsyPad
A simple drawing tool that can convert diagrams into Asymptote code.
Stars: ✭ 18 (-70.49%)
Mutual labels:  drawing, drawing-app
corruption-loops
Digitally disintegrating music
Stars: ✭ 37 (-39.34%)
Mutual labels:  generative-art, generative
Generative art
A collection of my generative artwork, mostly with Processing in Python mode
Stars: ✭ 1,477 (+2321.31%)
Mutual labels:  generative-art, generative
Triangle
Convert images to computer generated art using delaunay triangulation.
Stars: ✭ 1,838 (+2913.11%)
Mutual labels:  generative-art, generative
Drawing
Drawing and fill color
Stars: ✭ 37 (-39.34%)
Mutual labels:  drawing, drawing-app
pixelino
Pixel-drawing app for iOS ✍️
Stars: ✭ 45 (-26.23%)
Mutual labels:  drawing, drawing-app

Desert

Desert consists of two parts.

The main library is simply called Desert. It is a CUDA accelerated library for sandpainting: https://inconvergent.net/grains-of-sand/

The second part is called Erosion. A Redis-based client and worker that can accept and draw Desert primitives and commands encoded as JSON objects. That means that you can use the Erosion worker from any platform as long as you can construct JSON and send it to a Redis queue. Eg. if you want to program in a different language, while still having a fast drawing engine that benefits from CUDA.

I've written a little more about the library here: https://inconvergent.net/lost-in-the-desert/

img

Install

Use the install script:

./install.sh

This will use setuptools to install python libraries desert and erosion. As well as a terminal util called erosion. It will be available as ~/.local/bin/erosion if you installed with the install.sh script.

Examples

There are some examples in ./examples.

To use Desert via Python as a local library, see:

main.py

To see how Erosion works, you can run this command (from ./examples):

./erosion-send.py && ~/.local/bin/erosion worker --path ./ --show --vv

This will first send some Desert primitives to the Erosion (Redis) queue. Then it will run the Erosion worker, which draws those primitives. Finally it will save the resulting image.

To see how the Erosion terminal util works:

~/.local/bin/erosion -h

Dependencies

This code is developed on Ubuntu 16.04 LTS. I imagine you will be able to get it running on Mac as well.

The library depends on the CUDA toolkit (8.0), Redis (if you are using Erosion), and a few Python (3) packages. If you install using the install script, the python packages will be installed automatically.

On Use and Contributions

This code is a tool that I have written for my own use. I release it publicly in case people find it useful. It is not however intended as a collaboration/Open Source project. As such I am unlikely to accept PRs, reply to issues, or take requests.

Todo

Desert:

  • Circle: varying rad
  • Box: varying size

Notes

If cuda is not working try sudo ldconfig. and check $LD_LIBRARY_PATH

https://documen.tician.de/pycuda/tutorial.html#executing-a-kernel

http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#kernels

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].