Mitsuba for ShapeNet
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 14 commits ahead of mitsuba-renderer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
data SCons: do not require Qt5 language tools (mitsuba-renderer#79) Jul 12, 2018
doc
include/mitsuba
shapenet fix ShapeNetTriangle constructor bug and add rendering scripts and re… May 4, 2017
src
.agignore
.gitignore
.hgignore ported hgignore to a gitignore file, a few updates to both Jul 28, 2014
.hgtags
.ycm_extra_conf.py
LICENSE
README.md
SConstruct
setpath.csh
setpath.sh

README.md

mitsuba-shapenet

Most ShapeNet models are exported from SketchUp with double-faces. In original Mitsuba renderer without back-face culling, there are black pixels when intersecting the 'back side' face. There are also some categories, such as cars, are not double-sided. Some of them only have flipped faces, which makes backface culling not work.

This fork simply implements a 'shapenet' shape importer. It reads model and material from ShapeNet .obj files and assign them with proper 'twosided' BSDF.

For more details about mitsuba renderer, please visit its homepage at https://www.mitsuba-renderer.org/ .

And for the dependency of the project, please check https://www.mitsuba-renderer.org/repos/ .

On Windows, you can simply put the dependencies_windows repo under the project folder and rename it as mitsuba-shapenet\dependencies. It would automatically find required headers and libraries.

If you meet the problem of missing header such as mitsuba_precompiled_header.hpp, please turn off MTS_USE_PCH flag during CMake.

Currently it cannot handle per-vertex normal or smooth group in ShapeNet obj. You can use 'maxSmoothAngle' to add some smoothness rendering effect.

Samples

Rendering scripts and results can be found here. Images rendered with this ShapeNet importer(left) and Mitsuba OBJ importer(right):

alt text alt text

alt text alt text