Background
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing and motion tracking, even video editing and game creation.
The following table shows the instance environment.
Instance Type | g7.2xlarge.4 |
Region | North China 2 |
System Disk | 50GB |
Data Disk | 50GB |
OS | Windows2019-DataCenter-vGPU |
EIP Bandwidth | 5Mbps |
Procedure
1. Apply for a GPU cloud server instance in eSurfing Cloud. In this topic, a GPU cloud server of g7.2xlarge.4 image acceleration basic type is created. Select Windows2019-DataCenter-vGPU, configure the ultra-high I/O system disk and data disk (50 GB each), add NIC, select the VPC and subnet, add the default security group, purchase EIP, create a username and password, and start the server.
Note:
If your own image has not been installed with the GRID graphics driver, the rendering OpenGL feature is unavailable. Please install the driver. For more information, see Install GRID Driver.
2. Install Blender. Download Blender at https://www.blender.org/download/ and install it. Choose Blender - version 3.1.2 and unzip to a specified directory.
3. Configure environment variables, right-click the computer, click Properties, select Advanced in the pop-up window, and click environment variables to configure.
4. Restart the cloud server, run the Windows+R key, and enter cmd.
5. Type blender in the command line. If you can launch the blender page, the Blender is successfully installed.
6. Set rendering parameters. We recommend that you set all parameters directly in Blender. The command line only determines the number of frames to render.
7. We recommend that you save the project file (blend) in an easy-to-remember location, for example, C:\test.blend. Enter blender -b "C:\test.blend" -o frame_##### -f 2128 and run the above code. After a while, you can see the output in the project directory.
Role of the above code
Parameter | Content |
-b | Run silently (without running the GUI interface), followed by the project directory address. Add double quotation marks if there is a space |
-o | Output directory and file name. # represents the frame number. One # represents a digit. Fill with 0 for null digits. |
-f | Rendering frame number. Make sure this parameter is at the end |
8. Running the following animated image command line will render 2128 to 3000 frames and output to the project directory/out/ directory.
blender -b "C:\test.blend" -o "/out/frame_#####" -s 2128 -e 3000 Note:
No parameters are specified in the command line. Parameters are set using the project file. Otherwise, parameters are entered according to the setting in the project file. For more parameters in the command line, refer to https://docs.blender.org/manual/zh-hans/dev/advanced/command_line/render.html.