create-3d-icon / README.md
JacobLinCool's picture
docs: add info about docker image
72e7ace
metadata
title: Create 3D Icon
emoji: 🎨
colorFrom: purple
colorTo: gray
sdk: docker
app_port: 7860

Create 3D Icon

This is a small cli tool to generate 3D icons using Blender.

I use this side project to learn Blender with Python.

Examples

python create.py examples/LogosGithubIcon.svg
from to
LogosGithubIcon.svg LogosGithubIcon.png

python create.py --light-x 1 --light-strength 2 examples/LogosBlender.svg
from to
LogosBlender.svg LogosBlender.png

python create.py -r 0 -g 0.1 -b 0.3 -rx 5 -rz 5 -lx 1 -lz -1 -ls 100 --th 2 -d 0.6 examples/LogosGithub.svg
from to
LogosGithub.svg LogosGithub.png

Icons are from SVG Logos (CC0)

Install

I use poetry to manage dependencies.

poetry env use 3.10
poetry install

You may need to install Blender and add it to your path.

Docker

There is a pre-built docker image (for arm64 and amd64) available on Docker Hub.

docker run --rm -p 7680:7680 jacoblincool/create-3d-icon

You can visit http://localhost:7680 to see the example.

There is a hosted demo on Hugging Face Spaces