robmcrosby / BlenderUSDZ

Simple USDZ file exporter plugin for Blender3D
GNU General Public License v3.0
477 stars 66 forks source link

Does not work with Transparency or Alpha PNG? #20

Open enzyme69 opened 4 years ago

enzyme69 commented 4 years ago

Hi I tested the USDZ export, so far so good! It seems to be working for simple material, but if I use transparency shader or PNG with alpha, it does not seem to work:

PinClipart_com_snow-flake-clip-art_4527047

Screen Shot 2019-11-21 at 9 16 36 am

Any idea on this?

robmcrosby commented 4 years ago

Hi Jimmy,

It would seem that the plugin does not support baking alpha transparency textures at this time. Right now the only way to get transparency is by setting the transmission value in the Principled BSDF for the entire material. Im going to see if I can update the plugin soon to support alpha textures soon. In the meantime you can try to export the model as a .usda object by adding the .usda extension to your model name when exporting. This would get you text version of the usd file that you can then edit with any text editor. To convert to usdz you would need to use either Apple's usdz_converter or Pixar's usdz converter tool. I'll be sure to update you when I have a fix in the plugin and thanks for the feedback.

Robert Crosby

On Wed, Nov 20, 2019 at 5:22 PM Jimmy Gunawan notifications@github.com wrote:

Hi I tested the USDZ export, so far so good! It seems to be working for simple material, but if I use transparency shader or PNG with alpha, it does not seem to work:

[image: PinClipart_com_snow-flake-clip-art_4527047] https://user-images.githubusercontent.com/3952687/69282924-801bcd00-0c3f-11ea-9071-671b17d98f88.png

[image: Screen Shot 2019-11-21 at 9 16 36 am] https://user-images.githubusercontent.com/3952687/69282997-a04b8c00-0c3f-11ea-8f6f-044105bf3307.png

Any idea on this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/robmcrosby/BlenderUSDZ/issues/20?email_source=notifications&email_token=AAKCGVXDMGNNMAG663KTOUDQUW2DPA5CNFSM4JP2D4U2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2552UQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKCGVS42FNQMBLFVE36B3LQUW2DPANCNFSM4JP2D4UQ .

enzyme69 commented 4 years ago

Thanks Robert! Great addon~

tonkado commented 4 years ago

Hi everyone!

Maybe it could be helpful for someone. I found a workaround to export USDZ with png textures and transparency. You need to save alpha to the separate png file and use it as Image Texture in Principled BSDF shader for alpha: 2020-04-09_01-06-56


Thanks for the extension Robert! BTW its working perfectly on Win10 x64 | Blender 2.8.

413x-p commented 3 years ago

@tonkado

BTW its working perfectly on Win10 x64 | Blender 2.8.

Hello, thanks for the info. It would be awesome if your method (and the plugin) would work with alpha just like that.

How did you managed to install the plugin for Windows 10? did you use the io_scene_usdz.zip archive? I cant install the plugin on Blender 2.91 and Blender 2.93 Alpha. After i install the plugin it wont appear in the list so i cant activate it.

Can you please give me some tips about how did u manage to make it run?

Thank you.

EDIT:

I have managed to install it on Windows 10. The io_scene_usdz.zip archive might be corrupted (Blender cant install it and 7-Zip cant open it) so i had to copy the *.py files from this Git repository to C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_usdz (i have manually created the folder) and i was able to activate it. I still have to test it, though, i think there wont be any problems.

Thank you, really unique addon. Trust me, i have searched everywhere :D.

tonkado commented 3 years ago

I'm using blender 2.91 2021-03-12_18-12-35

And actually it works even without saving alpha in separate file. Just PNG with transparency.

https://user-images.githubusercontent.com/13105418/110989202-6ee15d00-8369-11eb-8feb-435256115ea1.mp4