yuki-koyama / blender-cli-rendering

Blender Python scripts for rendering images directly from command-line interface
GNU General Public License v3.0
733 stars 107 forks source link

weird mocap rendering result #28

Closed hangg7 closed 3 years ago

hangg7 commented 3 years ago

Hi, thanks for sharing this codebase! I'm trying your mocap script (10_mocap.py) by following this command: https://github.com/yuki-koyama/blender-cli-rendering/blob/dd283ebde3c1cf7c77504f1bc6651cec458cb805/run.sh#L30

Yet the results I got seems pretty weird, frame_0001

I'm rather new to blender and cannot quite debug it on my end. I imagine it might be caused by wrong ambient value of the scene. What is your idea?

yuki-koyama commented 3 years ago

Hi, I'm aware of this problem. Sorry!

The reason for this vivid pink is that Blender could not find linked texture files. The floor and wall objects in this scene use Concrete07 textures, but I guess they are missing in your local directory.

This repository includes texture files via git submodule and it requires git lfs, which makes the cloning procedure really complicated. (I want to simplify this mechanism but I could not find time to work on this yet)

Possible quick fixes are:

yuki-koyama commented 3 years ago

If you could successfully clone the repository, then the local directory should look like this: image

hangg7 commented 3 years ago

thanks for your quick reply! correctly cloning submodules fixes my issue. maybe adding an init script that recursively update submodules can make setup a bit easier ;)

yuki-koyama commented 3 years ago

Thank you for the suggestion!

bsridatta commented 3 years ago

Thanks a lot for the amazing repo. Sorry to bring this up again, I have downloaded the zip file provided and placed it in external like in the file structure image above. But it still not able find them and background is pink. Am I missing something or should it be clone using git lfs commands? I have tried and see all files in proper location but somethings is missing? should I install them somehow? Please let me know thanks.

image

yuki-koyama commented 3 years ago

Hi, sorry for the inconvenience! Does the [2K]Concrete07 directory contain necessary texture files (i.e., Concrete07_AO.jpg, Concrete07_col.jpg, Concrete07_disp.jpg, Concrete07_nrm.jpg, Concrete07_rgh.jpg)?

Also, it would be helpful if you could attach the console log as well. Thanks!

bsridatta commented 3 years ago

Thanks a lot for you quick response. I finally understood it ! The materials from zip file and by clone were corrupt for some reason. I was wondering why I am not seeing the thumbnail preview and downloaded new materials online and it seems to work. Thanks

yuki-koyama commented 3 years ago

corrupt for some reason

I guess this is because git lfs failed to pull the actual binary files correctly somehow.

Anyway, thank you for reporting the issue! I believe this discussion will be helpful for other users.

bsridatta commented 3 years ago

Yes, it's weird but the mistake is on my end. But it could be something folks can check if the materials are not rendered. Thanks a lot for the help!