Code Monkey home page Code Monkey logo

zify's Introduction

zify

Zify (read "zee-ify") will add depth to icons. As input, it takes:

  • A black and white image.
  • A Blender 3D template (see design directory).

It then traces the outlines of the black material in the image, and substitutes that for the letter A in the template. The result is then rendered and output as an image.

Examples

IN: 2d frog OUT: 70-bronze 96-polished-gold 49-material-of-3laseray 50-white-marble 5-camouflage 90-lava 61-abstract-glass 91-water 67-polystyrene 80-chocolate frog forest glass frog

Running zify

If you have docker, you can run:

./zify_with_docker.sh design/example.blend input/frog.png out.png

If you are willing to install everything mentioned in the docker/Dockerfile file, then you can run:

./zify.sh design/example.blend input/frog.png out.png

You can control some parameters with environment variables:

ZIFY_SCALE=50 ZIFY_SAMPLES=20 ./zify.sh design/example.blend input/frog.png out.png
  • ZIFY_SCALE sets the render resolution as a percentage.
  • ZIFY_SAMPLES sets the number of samples to make (set to 0 to use the setting for previews in blender).

zify's People

Contributors

paulfitz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zify's Issues

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.