Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple version #2

Open
gustavo-alberto opened this issue Nov 16, 2021 · 0 comments
Open

A simple version #2

gustavo-alberto opened this issue Nov 16, 2021 · 0 comments

Comments

@gustavo-alberto
Copy link

This version don't require a authentication with google drive storage. It saves in the colab running section. The user just need to upload the .blend file into section.

This code was modified to render only one frame. But its almost identical to the video version.

Here is the code

Download Blender from Blender Repository.

#Other Versions are here: https://download.blender.org/release/
#=====================================
!wget https://download.blender.org/release/Blender2.93/blender-2.93.5-linux-x64.tar.xz

Unzip Blender

!tar xf blender-2.93.5-linux-x64.tar.xz

Deletes the Default libtcmalloc-minimal4 version and installs the Ubuntu default version

import os
os.environ["LD_PRELOAD"] = ""
#Deletes wrong Version of libtcmalloc-minimal4
!apt remove libtcmalloc-minimal4
#Installs correct version of libtcmalloc-minimal4
!apt install libtcmalloc-minimal4
#Adds this library to the user environment
os.environ["LD_PRELOAD"] = "/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0"

Path of Blender File to be Rendered

filename = 'render.blend'

Render Single Frame:

#Render Single Frame: Change -f 1 to -f 100 to render frame 100 for example
#===========================================================================

With debug on

#!./blender-2.93.5-linux-x64/blender -b $filename -noaudio -E 'CYCLES' --debug-all -o "/content/render" -f 1 -F 'PNG' -- --cycles-device CUDA

With debug off

!./blender-2.93.5-linux-x64/blender -b $filename -noaudio -E 'CYCLES' -o "/content/render" -f 100 -F 'PNG' -- --cycles-device CUDA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant