pix2surf icon indicating copy to clipboard operation
pix2surf copied to clipboard

The version of blender

Open hzhao1997 opened this issue 4 years ago • 5 comments

Thanks for you work! I have installed the Blender 2.90.1 but I run into some trouble when executing the demo:

Blender 2.90.1 (hash 3e85bb34d0d7 built 2020-09-23 08:34:47) xcb_connection_has_error() returned true xcb_connection_has_error() returned true found bundled python: /home/zhaohao/blender/2.90/python ArgumentParser(prog='blender', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True) ['blender', '--background', '--python', 'render.py', '--', '--body_tex', './test_data/images/body_tex/body_tex.jpg', '--body_mesh', './test_data/meshes/shorts/body_0.obj', '--up_tex', './output/up.jpg', '--up_mesh', './test_data/meshes/shorts/upper_0.obj', '--low_mesh', './test_data/meshes/shorts/lower_0.obj', '--low_tex', './output/low.jpg', '--renderfolder', './video'] 4 ['--body_tex', './test_data/images/body_tex/body_tex.jpg', '--body_mesh', './test_data/meshes/shorts/body_0.obj', '--up_tex', './output/up.jpg', '--up_mesh', './test_data/meshes/shorts/upper_0.obj', '--low_mesh', './test_data/meshes/shorts/lower_0.obj', '--low_tex', './output/low.jpg', '--renderfolder', './video'] ./test_data/meshes/shorts/body_0.obj Traceback (most recent call last): File "/home/zhaohao/pix2surf/render.py", line 171, in renderer = Renderer() File "/home/zhaohao/pix2surf/render.py", line 13, in init self.setup_scene() File "/home/zhaohao/pix2surf/render.py", line 59, in setup_scene self.scene.render.alpha_mode = 'TRANSPARENT' AttributeError: 'RenderSettings' object has no attribute 'alpha_mode'

Blender quit

Could you tell me how to solve it? Thanks again~

hzhao1997 avatar Oct 08 '20 11:10 hzhao1997

Hi @haoZ-920 Try this

import os
os.environ["LD_PRELOAD"] = ""

!apt remove libtcmalloc-minimal4
!apt install libtcmalloc-minimal4

os.environ["LD_PRELOAD"] = "/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0"

!wget https://download.blender.org/release/Blender2.79/blender-2.79-linux-glibc219-x86_64.tar.bz2
!tar -xf blender-2.79-linux-glibc219-x86_64.tar.bz2

# if you still get any errors regarding LD_PRELOAD you can check whether a good path is applied (if the version of library has not changed)
!dpkg -L libtcmalloc-minimal4 

!ln -s /content/blender-2.79-linux-glibc219-x86_64/blender /usr/local/bin/blender
!blender -v

MotiBaadror avatar Oct 09 '20 08:10 MotiBaadror

Alternatively, you can download the same version used originally (version 2.79): https://download.blender.org/release/Blender2.79/

That version does not have that error.

alexantoniogonzalez2 avatar Feb 01 '21 09:02 alexantoniogonzalez2

Try to install blender==2.79 it would work you don't need to update the render.py file.

https://blenderartists.org/t/solved-run-blender-without-the-in-ubuntu/458966

OR

Either you can update render.py according to blender version >2.79 https://blenderartists.org/t/2-80-cheat-sheet-for-updating-add-ons/1148974

Void-Mohit avatar Jun 04 '21 17:06 Void-Mohit

Hi @Void-Mohit , can you generate new garment mesh?

chenw191 avatar Jun 05 '21 02:06 chenw191

Hi, @chenw191 I am working on it .

Void-Mohit avatar Jun 09 '21 10:06 Void-Mohit