question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'OcclusionTexture' object has no attribute 'get_strength'

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Oct 29, 2018

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.

0reactions
kcoleycommented, Oct 28, 2018

@sayduck-daniel I see, just followed you.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found