All Projects → weiaicunzai → blender_shapenet_render

weiaicunzai / blender_shapenet_render

Licence: other
Blender render script for ShapeNet models

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to blender shapenet render

Blender-Add-on-Manager
Blender Add-on Manager to install/uninstall/update from GitHub
Stars: ✭ 130 (+100%)
Mutual labels:  blender-scripts
Spaceshipgenerator
A Blender script to procedurally generate 3D spaceships
Stars: ✭ 6,992 (+10656.92%)
Mutual labels:  blender-scripts
cookie-factory
Processing-style Scripting Add-on for Blender
Stars: ✭ 21 (-67.69%)
Mutual labels:  blender-scripts
pulverize
A multi-process rendering script for Blender VSE.
Stars: ✭ 54 (-16.92%)
Mutual labels:  blender-scripts
BlendShell
A Blender plugin for making hollow models suitable for 3D printing.
Stars: ✭ 33 (-49.23%)
Mutual labels:  blender-scripts
Character-UI
Blender add-on for creating simple yet functional UIs for your characters.
Stars: ✭ 28 (-56.92%)
Mutual labels:  blender-scripts
kaleidoscope
🍀 A small collection of creative nodes to generate color palette and store values for Blender
Stars: ✭ 99 (+52.31%)
Mutual labels:  blender-scripts
Jaks Blender Scripts
Various Python Scripts for Blender
Stars: ✭ 26 (-60%)
Mutual labels:  blender-scripts
blender-mqo
Blender Add-on: Metasequoia File Importer/Exporter
Stars: ✭ 27 (-58.46%)
Mutual labels:  blender-scripts
MustardUI
Custom UI for Blender human models. It features automatic outfits switch, custom properties support, armature panel creation, and much more.
Stars: ✭ 122 (+87.69%)
Mutual labels:  blender-scripts
assemblme
Iterative object assembly animations made simple
Stars: ✭ 19 (-70.77%)
Mutual labels:  blender-scripts
MindMapper
Blender Python - Node-based multi-line text and image flowchart
Stars: ✭ 58 (-10.77%)
Mutual labels:  blender-scripts
3dn-bip
A Python library for Blender addons. Blazingly fast preview loads in Blender. Images of arbitrary size. bpy.utils.previews drop-in replacement.
Stars: ✭ 41 (-36.92%)
Mutual labels:  blender-scripts
blendmaxwell
Maxwell Render exporter for Blender
Stars: ✭ 23 (-64.62%)
Mutual labels:  blender-scripts

Blender script for rendering ShapeNet models

This repo contains the implementation of Blender Python script for rendering ShapeNet obj files

example:

rendered rgb images with random background images

rendered depth images:

pose:

4.374694554125504453e-01 -4.180723275263726890e-01 7.961381881998743637e-01 1.691706400439716873e+00
8.974623655743290129e-01 1.474515273040246655e-01 -4.157154855070874788e-01 -8.246252502494784142e-01
5.640734111112344351e-02 8.963668844113694689e-01 4.397097116636921044e-01 9.232025044714089468e-01
0.000000000000000000e+00 0.000000000000000000e+00 0.000000000000000000e+00 1.000000000000000000e+00

this matrix contains rotation matrix and translation vector, transforms coordinates from object coordinates to camera coordinates(actually is original camera pose to rotated camera pose since Blender computes everything in world coordinates system). I've verified the rotation matrix using CPP Eigen library, Python Tansforms3d library, CPP Opencv library, but if im wrong, plz let me know.

useage for Python code

0. requirement

Python 3.5

Blender 2.79

ShapeNet Dataset(if not, you need to modify the code yourself)

background images(recommend PASCAL VOC)

1. configuration file

you need to change the settings.py file before you run the python file!!!

all the configurations needed are in '''settings.py''', you need to set your own:

  • ShapeNet dataset path: g_shapenet_path
  • Blender executable path: g_blender_excutable_path

and other configurations you might want to change:

  • background image folder path: g_background_image_path
  • synthetic rgb image folder path: g_syn_rgb_folder
  • synthetic depth image folder path: g_syn_depth_folder
  • pose folder: g_syn_pose_foloder

for more configuration informations, plz refer to Blender API Document

2. viewpoint file

All txt files in the folder view_points are viewpoints file, you can generate new viewpoints file using render for cnn

  • you can change the the camera clip distance by modifying varibale distance_min and distance_max in RenderForCNN/blob/master/render_pipeline/kde/sample_viewpoints.m,

  • and view point number generated per categlory by modifying num_samples in RenderForCNN/blob/master/render_pipeline/kde/run_sampling.m

3. start rendering

python run_render.py

this command will render the rgb, depth image and generate pose file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].