Page MenuHome

Export of .x3d files with H3D extensions not working
Confirmed, NormalPublic

Description

System Information
Operating system: Windows 10 x64
Graphics card: AMD RX 590

Blender Version
Broken: 2.83.4

Short description of error
Error while exporting .x3d files with H3D extensions enabled

Exact steps for others to reproduce the error
After importing any .obj file and selecting File -> Export -> .x3d I choose to enable H3D Extensions. When I hit Export X3D, the following error message appears:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_x3d\__init__.py", line 240, in execute
    return export_x3d.save(context, **keywords)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_x3d\export_x3d.py", line 1605, in save
    name_decorations=name_decorations,
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_x3d\export_x3d.py", line 299, in export
    gpu_shader_cache[None] = gpu.export_shader(scene, gpu_shader_dummy_mat)
AttributeError: module 'gpu' has no attribute 'export_shader'

Event Timeline

Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.EditedFri, Aug 21, 5:15 PM

The GPU module was rewritten for Blender 2.80 and the gpu.export_shader function doesn't exist anymore. This required change must have been missed when porting the add-on to the new API.