Difference between revisions of "Applications/Blender"

From HPC
Jump to: navigation , search
m (Navigation)
m
Line 4: Line 4:
  
 
* Description: Blender is a free and open-source 3D creation suite. It supports the entirety of the 3D pipeline—modelling, rigging, animation, simulation, rendering, compositing and motion tracking, and even video editing and game creation.
 
* Description: Blender is a free and open-source 3D creation suite. It supports the entirety of the 3D pipeline—modelling, rigging, animation, simulation, rendering, compositing and motion tracking, and even video editing and game creation.
* Version: 2.79b, 2.80, 2.80a and 2.83.2
+
* Version: 2.79, 2.80, 2.80a and 2.83.2
* Modules: blender/2.79, blender/2.80, blender 2.80a and blender/2.83.2
+
* Modules: blender/2.79, blender/2.80, blender 2.80a and blender/2.83.2 (preferred)
 
* Licence: Free, open-source
 
* Licence: Free, open-source
  
Line 21: Line 21:
 
[username@login] $ module add blender/2.83.2
 
[username@login] $ module add blender/2.83.2
 
[username@login] $ blender
 
[username@login] $ blender
 +
 +
</pre>
 +
 +
===Batch Job===
 +
 +
This example is for rendering an animation file
 +
 +
<pre>
 +
blender -b file.blend -E CYCLES -s 10 -e 500 -t 2 -a
 +
</pre>
 +
 +
* -E CYCLES Use the “Cycles Render” engine. For a list of available render engines, run blender -E help.
 +
* -s 10 -e 500 Set the start frame to 10 and the end frame to 500.
 +
* -t 2 Use only two threads.
 +
 +
The batch script would look like this
 +
 +
<pre style="background-color: #f5f5dc; color: black; font-family: monospace, sans-serif;">
 +
 +
#!/bin/bash
 +
#SBATCH -J jobname          # Job name, you can change it to whatever you want
 +
#SBATCH -n 1                # Number of cores
 +
#SBATCH -o %N.%j.out        # Standard output will be written here
 +
#SBATCH -e %N.%j.err        # Standard error will be written here
 +
#SBATCH --gres=gpu          # use the GPU resource not the CPU
 +
#SBATCH -p gpu              # Slurm partition, where you want the job to be queued
 +
#SBATCH -t=00:40:00        # Run for 40 minutes
 +
 +
module load blender/2.83.2
 +
blender -b file.blend -E CYCLES -s 10 -e 500 -t 2 -a
  
 
</pre>
 
</pre>

Revision as of 14:59, 16 November 2022

Application Details

  • Description: Blender is a free and open-source 3D creation suite. It supports the entirety of the 3D pipeline—modelling, rigging, animation, simulation, rendering, compositing and motion tracking, and even video editing and game creation.
  • Version: 2.79, 2.80, 2.80a and 2.83.2
  • Modules: blender/2.79, blender/2.80, blender 2.80a and blender/2.83.2 (preferred)
  • Licence: Free, open-source

Usage Examples

Interactive session


[username@login] $ interactive -p gpu
salloc: Granted job allocation 933039
Job ID 933039 connecting to gpu02, please wait...
Last login: Mon Apr  9 13:13:05 2018

[username@login] $ module add blender/2.83.2
[username@login] $ blender

Batch Job

This example is for rendering an animation file

blender -b file.blend -E CYCLES -s 10 -e 500 -t 2 -a
  • -E CYCLES Use the “Cycles Render” engine. For a list of available render engines, run blender -E help.
  • -s 10 -e 500 Set the start frame to 10 and the end frame to 500.
  • -t 2 Use only two threads.

The batch script would look like this


#!/bin/bash
#SBATCH -J jobname          # Job name, you can change it to whatever you want
#SBATCH -n 1                # Number of cores 
#SBATCH -o %N.%j.out        # Standard output will be written here
#SBATCH -e %N.%j.err        # Standard error will be written here
#SBATCH --gres=gpu          # use the GPU resource not the CPU
#SBATCH -p gpu              # Slurm partition, where you want the job to be queued 
#SBATCH -t=00:40:00         # Run for 40 minutes

module load blender/2.83.2
blender -b file.blend -E CYCLES -s 10 -e 500 -t 2 -a

Documentation

This can be found at https://docs.blender.org/.

Further Information





Modules | Main Page | Further Topics