blender-web-server
is designed to integrate the powerful capabilities of Blender with web-based applications, enabling Blender to be accessed and controlled via a web server. This project is particularly useful for those looking to integrate Blender into web-based 3D modeling and rendering workflows. See a live implementation at polygona.io.
Built using FastAPI, the blender-web-server
is containerized for ease of deployment, utilizing Docker for consistent and scalable environments. For file storage and management, the project is configured to work with DigitalOcean Spaces.
- Python 3.10 and
pip
(Check withpython --version
andpip --version
) - Docker
-
Prepare Virtual Environment:
- Install
virtualenv
if not already available:pip install virtualenv
- Install
-
Environment Configuration:
- Duplicate the environment template:
cp ./app/.env-example ./app/.env
- Edit
./app/.env
to include the necessary environment variables.
- Duplicate the environment template:
-
Running the Application:
- Execute the development script:
./dev.sh
- Execute the development script:
The application is now accessible at http://localhost:8080
To build and run blender-web-server
within a Docker container, use the following commands:
docker build -t blender-container .
docker run -it --rm -p 8080:8080 blender-container
This will create a Docker image named blender-container
and run it, making the application accessible at http://localhost:8080
.
We welcome contributions to blender-web-server
! Please read our Contributing Guidelines for details on how to submit pull requests, and expectations regarding code contributions.
If you find this project valuable or if it helps you in your projects, consider sponsoring it through GitHub Sponsors! Your support is essential to maintain and develop the project further.
This project is licensed under the GNU General Public License - see the LICENSE file for details.