Skip to content

Render shapeNetSem model with Blender Render engine or Cycles Render engine. Get RGBD images and masks from this script.

Notifications You must be signed in to change notification settings

Kristing-Mini/shapeNetSem-Blender-Cycles-Render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShapeNetSem Blender Render

This is a script to render .obj files with Blender. We can render with Blender render engine and Cycles render engine.
Tested with Blender 2.79.
Tested on Linux, Windows.

Brief Statement

We can get RGB images, depth, and mask from this scripts.
Download the .obj files and .mtl files from ShapeNet website.
Download the textures.zip from ShapeNet website and extract to the folder where the .obj files and .mtl files are located.
Run blender.py to use Blender Render engines to render image
Run cycles.py to use Cycles Render engines to render image.
We use exr format to save depth infomation. fileSwitch.py provide a way to change the .exr file to .tiff file.
If you want to run with Blender Render engines, you can use the command like this
blender --background --python blender.py -- --views=the number of views you want --obj_file=the path to the obj files --output_folder==the path to the folder you want to save the render output
For example,
blender --background --python blender.py -- --views=4 --obj_file=./obj --output_folder=./blender_render_output
If you want to render with Cycles Render engines, just change the python file to cycles.py Also, you can move the background option. The background options is used for UI-less rendering.

Example

Cycles Render

Image text

Blender Render

Image text

About

Render shapeNetSem model with Blender Render engine or Cycles Render engine. Get RGBD images and masks from this script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages