AttributeError: 'OcclusionTexture' object has no attribute 'get_strength'
See original GitHub issueI get a new errror when trying to convert an gltf to usd.
Any idea where it could come from?
converted usd file extension from .usdz to .usdc: /var/app/current/tmp/9292b98543fcb47a2818f62cd71f62e03818eda225d96f818cb98c2cbfa9b98d/usdz/dist.usdc
Traceback (most recent call last):
File "/usr/local/gltf2usd/Source/gltf2usd.py", line 808, in <module>
convert_to_usd(os.path.expanduser(args.gltf_file), os.path.abspath(os.path.expanduser(args.usd_file)), args.fps, args.scale, args.arkit, args.verbose, args.use_euler_rotation)
File "/usr/local/gltf2usd/Source/gltf2usd.py", line 757, in convert_to_usd
usd = GLTF2USD(gltf_file=gltf_file, usd_file=usd_file, fps=fps, scale=scale, verbose=verbose, use_euler_rotation=use_euler_rotation)
File "/usr/local/gltf2usd/Source/gltf2usd.py", line 74, in __init__
self.convert()
File "/usr/local/gltf2usd/Source/gltf2usd.py", line 727, in convert
self._convert_materials_to_preview_surface_new()
File "/usr/local/gltf2usd/Source/gltf2usd.py", line 440, in _convert_materials_to_preview_surface_new
usd_material.convert_material_to_usd_preview_surface(material, self.output_dir)
File "/usr/local/gltf2usd/Source/_gltf2usd/usd_material.py", line 21, in convert_material_to_usd_preview_surface
usd_preview_surface = USDPreviewSurface(self._stage, gltf_material, self, output_directory)
File "/usr/local/gltf2usd/Source/_gltf2usd/usd_material.py", line 41, in __init__
self._initialize_from_gltf_material(gltf_material)
File "/usr/local/gltf2usd/Source/_gltf2usd/usd_material.py", line 103, in _initialize_from_gltf_material
self._set_occlusion_texture(gltf_material)
File "/usr/local/gltf2usd/Source/_gltf2usd/usd_material.py", line 146, in _set_occlusion_texture
occlusion_strength = occlusion_texture.get_strength()
AttributeError: 'OcclusionTexture' object has no attribute 'get_strength'
🍎 USDZ created: /var/app/current/tmp/9292b98543fcb47a2818f62cd71f62e03818eda225d96f818cb98c2cbfa9b98d/usdz/dist.usdz```
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Crash when at 50% of training #61 - GitHub
AttributeError : 'UNet2DConditionModel' object has no attribute 'enable_gradient_checkpointing'. this one is because the 'Gradient ...
Read more >loop breaks and gives an error as `'str' object has no attribute ...
I think you need to create the serializer to receive this data correctly. class AuditorSerializer(serializers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
While trying to re produce the bug, I just realised the reason. The USDZ was created correctly (that explains why on mac it’s previewable) but the maps were too heavy (4096x4096 maps for the ORM for 1.6 MB).
We are now converting all our maps to 2048 x 2048 jpegs.
@sayduck-daniel I see, just followed you.