LotusWhu / ModelNet_Blender_OFF2Multiview

from ModelNet off file to multiview images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlenderPhong

First, thanks for the work of weitang, this code is revised from https://github.com/WeiTang114/BlenderPhong.


中文博客地址:

https://blog.csdn.net/jorg_zhao/article/details/86309774

https://blog.csdn.net/jorg_zhao/article/details/88345324


This is an output from airplane.off:

We use blender-off-addon for off importing support.

Requirements

Usage

Because the blender install path is various with different OS, you should assign the absolute install path for Blender in WIN10

Run with Blender

<blender install path> phong.blend --background --python phong.py -- <model file> <output dir>

The followings are examples, you should change the absolute blender install path in win10.

Single .off

Win10:

"C:\Program Files\Blender Foundation\Blender\blender.exe" phong.blend --background --python phong.py -- .\\single_off_samples\\airplane_0001.off .\\single_samples_MV

Ubuntu:

blender phong.blend --background --python phong.py -- ./single_off_samples/airplane_0001.off ./single_samples_MV

Multiple models

Win10:

"C:\Program Files\Blender Foundation\Blender\blender.exe" phong.blend --background --python phong.py -- dataset.txt .\dataset_samples_MV

Ubuntu:

blender phong.blend --background --python phong.py -- dataset.txt ./dataset_samples_MV

About

from ModelNet off file to multiview images


Languages

Language:Python 100.0%