stanford-shapenet-renderer icon indicating copy to clipboard operation
stanford-shapenet-renderer copied to clipboard

Rendering artifact

Open shinxg opened this issue 4 years ago • 4 comments

Thanks for @panmari sharing rendering code. I am wondering if there is a solution to the rendering artifact below. I have tried bpy.ops.mesh.normals_make_consistent(inside=False). But it doesn't work. Really appreciate you help! image

shinxg avatar Sep 26 '19 03:09 shinxg

Sorry for the late reply. I imagine this is a pecularity of this mesh. Do you have a link handy? Or were you already able to resolve this issue?

panmari avatar Dec 08 '19 17:12 panmari

I guess so, there are lots of meshes whose faces' normal are not right in ShapeNet(car, guitar...). They look abnormal when face culling mode is not set in MeshLab. I've tried to make it look normal in Blender by searching Blender docs and modifying your scripts but failed. Finally, I solved it
by using the KeyShot script(https://github.com/shinxg/CGScripts/blob/master/RenderImagesForAllModels.py). Here is a shape link(https://drive.google.com/drive/folders/1BO3jw5GaO2JKmgV_iQBK4u1JfM9r8U7N?usp=sharing). If you add a face culling mode in this blender script, please let me know. Thanks!

shinxg avatar Dec 09 '19 02:12 shinxg

I see this in a few models in ShapeNetv2 as well, along side with other artifacts (missing texture, inverted faces). This looks like z-fighting, and if the dataset is only used for machine learning it shouldn't be that huge of an issue.

Another person also had the same issue here.

aluo-x avatar Jan 14 '20 23:01 aluo-x

Adding an option for face culling sounds like a good idea! Would you like to send a PR so others can benefit from your solution?

panmari avatar Apr 12 '21 14:04 panmari