Skip to content

A program that automates Blender's CLI rendering system and provides a user interface without having to open the program itself. This helps to optimize performance and increase stability.

Notifications You must be signed in to change notification settings

IRPCode/Blender-CLI-Rendering-UI-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Blender CLI Rendering UI Client

This tool is to make it easier to render from the command line without having to learn how to use Blender's CLI, making it more user friendly, especially to newer users.

The source code is available here

Download the .jar file here

Prerequisites

The following programs are required in order for you to run the software:

How to use the software

Make sure Blender is installed to the following location:
C:\Program Files\Blender Foundation\Blender X.X
  • This should be the default location, but it must be here in order to work properly

  • After downloading Java from the provided link above, ensure you run the downloadable and follow its instructions

Running the program

This is what the program will look like.

image

  • In the first section, there is a button to open up an integrated file browser retrieve your file. It must be a .blend file in order for the program to work.

image

  • Once selected, you can search for your .blend file. In this case, the shown file below is 1CLIGroundRenderTest.blend.

image

  • Afterwards, we have a few sections. Starting off, we have your rendering device. CPU is for CPU rendering, Optix is for Nvidia GPUs, while CUDA is an older platform for Nvidia GPUs
  • OneAPI is for Intel GPUs (Intel® Arc™ graphics card with the Xe HPG architecture), HIP is for AMD GPUs, and Metal is for Apple ARM Silicon
  • You may want to use CUDA if you are just barely above your VRAM limits, otherwise use CPU render if your scene is too large

image

  • Take note that the program tells you to use the folder that you must use the folder created when Blender is first installed.

image

  • This is due to Blender overwriting files for smaller updates (4.2 vs 4.2.X). You can identify newer files for larger updates (4.2 vs 4.3), as seen below:

image

  • You can now select what type of rendering engine you are using. Using scene settings simply uses the rendering engine set in your profile
  • Using a different rendering engine sets the rendering engine settings (such as their sample count) to their default settings (Cycles: 4096, EEVEE Next: 64)

image

  • You can set Blender's CLI rendering client to render a specific frame, or a set of frames

image

image

  • Once done, you can render your image!

image

The Command Line

  • Once you hit the 'Render!' button, the program will do two things:
    • It will open up the command line
    • It will open up the C:\tmp folder (This is where your images will be outputted to)

image

  • Once completed, you can take a look at your rendered image!

1Peak-1334-38M-07-54-92-CLI

Why CLI Rendering?

Command line rendering has a few advantages over rendering within Blender:

  • It does not have to update any GUIs, so it uses less memory and renders slightly faster
  • Due to this, it is also more stable with larger scenes, and is significantly less prone to crashing

From testing, here are a few results from rendering in Blender, and rendering from the CLI. All tests were using the Cycles rendering engine with default settings, and the resolution (2560 x 1600).


  • Test 1:

1Peak-1334-38M-07-54-92-CLI

  • CLI: (Mem): 1334.38MB, (Time): 07.54.92
  • In Blender: (Mem): 1542.92MB, (Time): 08.08.42

  • Test 2:

2Peak-320-14M-05-05-55-CLI

  • CLI: (Mem): 320.14MB, (Time): 05.05.55
  • In Blender: (Mem): 560.84MB, (Time): 05.04.84
    • Time is not always faster, but it usually is in most instances

  • Test 3:

3Peak-863-80M-36-30-91-CLI

  • CLI: (Mem): 863.80MB, (Time): 36.30.91
  • In Blender: (Mem): 1179.24MB, (Time): 36.31.03

Test Machine Specs:
  • Processor: AMD Ryzen 7 7745HX
  • Memory: 32GB DDR5 5200 MT/s
  • GPU: Mobile RTX 4060

About

A program that automates Blender's CLI rendering system and provides a user interface without having to open the program itself. This helps to optimize performance and increase stability.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages