s-leger / archipack

Archipack for blender 2.79
https://blender-archipack.org
GNU General Public License v3.0
356 stars 49 forks source link

Export glTF fails with certain Archipack library assets #347

Open tonygr1 opened 1 year ago

tonygr1 commented 1 year ago

Archipack version: 2.5.1

Blender version: 3.3.1

Os version: Windows 11

Description of the issue: Regarding Blender (3.3 LTS)Export>glTF (.glb). This fails if the scene contains the following Categories of Archipack library Presets: Windows, Stairs, Kitchen. Apparently the other assets work, although I did not try every single asset in each category. Windows is the most important asset of all, followed by Stairs. Doors appears to work fine. Export error

tonygr1 commented 1 year ago

The issue is narrowed down to the Glass shader used in the Library material preset. I created my own Glass shader and replaced in the Archipack library. This solves the problem as a workaround.

tonygr1 commented 1 year ago

Attached pic of the Glass shader that works with glTF export now. Glass shader

s-leger commented 1 year ago

Thank you for reporting, You should also report to gltf's exporter dev, as the error is on that side, (whatever the materials setting in blender, zero division should never occur).

tonygr1 commented 1 year ago

Blender bug report has been filed.

tonygr1 commented 1 year ago

Here is the response from the Developer:

Hello, Thanks for the reporting. This bug is already fixed in master, and will be included in 3.3.2 , 3.4 and upper version. Thanks !

Note: Problem come from IOR = 1.0, you can workaround by changing this value