Xyene / sphere2cube

Python script to map an equirectangular (cylindrical projection, skysphere) map into 6 cube (cubemap, skybox) faces.
https://pypi.python.org/pypi/sphere2cube
GNU Affero General Public License v3.0
92 stars 19 forks source link

Output is pink #13

Open lucydjo opened 3 years ago

lucydjo commented 3 years ago

Hello !

Thank you for your script. Unfortunately the output images are totally pink.

Do you know what I do wrong?

a14d commented 3 years ago

I got the same thing.

a14d commented 3 years ago

@lucydjo Have you found a solution to that ?

vyletien commented 3 years ago

@a14d All image output are pink.
i found other project here, it work right. https://github.com/jaxry/panorama-to-cubemap

sanxofon commented 2 years ago

Same problem here (Windows version). Cube2Sphere works fine, though.

thygrrr commented 2 years ago

Same issue here, with Blender 3.1, 2.93, and 2.83 on Windows 11 running in xonsh (but probably would be the same in cmd.exe)

huseynaliyar commented 2 years ago

the same issue, output is pink

wk39 commented 1 year ago

workaround

edit ~/.local/bin/pythonXXX/site-packages/sphere2cube/blender_init.py (installation directory may differ. you can check by 'pip show sphere2cube')

comment out below line

bpy.data.textures[0].image = bpy.data.images.load("%s" % sys.argv[-6])

add new line

bpy.data.images['test.jpg'].filepath = "%s" % sys.argv[-6]

good luck