Error faced while exporting .blend file as .glb #85599

Closed
opened 2021-02-13 07:29:26 +01:00 by Jithu J Abraham · 12 comments

PC Specifications :
OS : Windows 10
Procssor : AMD Ryzen 7 2700X 8-core processor
Graphics: Geforce GTX 1080 Ti
Graphics Driver version: 460.79

Blender Version: Tried many different versions but most recently 2.91.0

Pagename: addons/import_export/scene_gltf2

Hi, so I have been trying to do some animations using Blender for a project of mine and tried to export the files in .glb file format but I have been getting some sort of random errors when I view these animations, like the components won't follow the required path or sometimes may be deformed. The problem here is that these errors are not exactly consistent meaning that trying to export multiple times just ends up giving different errors.

Please find the attachments...these are some of the errors I find while trying to view the .glb file.

Screenshot 2021-02-12 163029

Screenshot 2021-02-12 163050

If you can help me out in any way it would be much appreciated. You can find the blend file I created and the exported glb file in the drive link below.

https://drive.google.com/drive/folders/1KCFb-8UQ6Z48PFNJ8hG1g7I3Wjn6Ad4D?usp=sharing

Ok so after a lot of redoing...I think the problem is because a component is being scale up from 0 to 1 and im guessign this is not possible in .glb. But this is also confusing as Ive already somehow gotten the software to export a more complicated blend file properly to .glb with all the required animations but cant seem to redo this again.

Ive also included this successfully exported .glb and .blend file in the drive link

Steps to reproduce:

  • Create simple cube

  • Add armature and parent bone to cube

  • Add simple animation of three keyframes.

    • 1st keyframe : scale to 0
    • 2nd keyframe : scale to 1
    • 3rd keyframe translation
  • Export to .glb

Expectation: .glb file when opened should give proper animations

PC Specifications : OS : Windows 10 Procssor : AMD Ryzen 7 2700X 8-core processor Graphics: Geforce GTX 1080 Ti Graphics Driver version: 460.79 Blender Version: Tried many different versions but most recently 2.91.0 Pagename: `addons/import_export/scene_gltf2` Hi, so I have been trying to do some animations using Blender for a project of mine and tried to export the files in .glb file format but I have been getting some sort of random errors when I view these animations, like the components won't follow the required path or sometimes may be deformed. The problem here is that these errors are not exactly consistent meaning that trying to export multiple times just ends up giving different errors. Please find the attachments...these are some of the errors I find while trying to view the .glb file. Screenshot 2021-02-12 163029 Screenshot 2021-02-12 163050 If you can help me out in any way it would be much appreciated. You can find the blend file I created and the exported glb file in the drive link below. https://drive.google.com/drive/folders/1KCFb-8UQ6Z48PFNJ8hG1g7I3Wjn6Ad4D?usp=sharing --------------------------------------------------------------------------------------- Ok so after a lot of redoing...I think the problem is because a component is being scale up from 0 to 1 and im guessign this is not possible in .glb. But this is also confusing as Ive already somehow gotten the software to export a more complicated blend file properly to .glb with all the required animations but cant seem to redo this again. Ive also included this successfully exported .glb and .blend file in the drive link Steps to reproduce: - Create simple cube - Add armature and parent bone to cube - Add simple animation of three keyframes. - 1st keyframe : scale to 0 - 2nd keyframe : scale to 1 - 3rd keyframe translation - Export to .glb Expectation: .glb file when opened should give proper animations

Added subscriber: @send2jithu

Added subscriber: @send2jithu

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Please edit your report to follow the submission template . We expect all reports to include:

  • system information (operating system, GPU, graphics driver version),
  • affected Blender version,
  • previous Blender version that worked properly,
  • a short and precise description of the issue,
  • step by step instructions to reproduce it and
  • a minimal .blend file that showcases the problem.

Currently the referenced screenshots are missing from your report. Upload them directly on this website.

Please open Blender's installation directory and double click on the blender_debug_log.cmd, assuming you're using Windows. This will start Blender in debug mode and create log files. Try to make Blender fails to export the project. Once it does, close Blender. The Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop.

2019_12_04_upload_icon_developer_blender_org.png

Please edit your report to follow the [submission template ](https://developer.blender.org/maniphest/task/edit/form/1/). We expect all reports to include: - system information (operating system, GPU, graphics driver version), - affected Blender version, - previous Blender version that worked properly, - ~~a short and precise description of the issue,~~ - step by step instructions to reproduce it and - a *minimal* .blend file that showcases the problem. Currently the referenced screenshots are missing from your report. Upload them directly on this website. Please open Blender's installation directory and double click on the `blender_debug_log.cmd`, assuming you're using Windows. This will start Blender in debug mode and create log files. Try to make Blender fails to export the project. Once it does, close Blender. The Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. ![2019_12_04_upload_icon_developer_blender_org.png](https://archive.blender.org/developer/F8190038/2019_12_04_upload_icon_developer_blender_org.png)

For future bug reports please create them either through Help > Report a Bug in Blender or for add-ons through Edit > Preferences > Add-ons and from the details section of the affected add-on by pressing the Report a Bug button. You have originally created a bug report with the template for a documentation page.

For future bug reports please create them either through *Help > Report a Bug* in Blender or for add-ons through *Edit > Preferences > Add-ons* and from the details section of the affected add-on by pressing the *Report a Bug* button. You have originally created a bug report with the template for a documentation page.

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Simple file to reproduce. Export then import again. Observe the scale of the object is always zero.

glbZeroAnimation.blend

Simple file to reproduce. Export then import again. Observe the scale of the object is always zero. [glbZeroAnimation.blend](https://archive.blender.org/developer/F12906101/glbZeroAnimation.blend)
Member

Some notes:

  • fbx can't export it correctly either (or at least, it can't be re-imported)
  • You can export glTF/glb by setting a frame where bone scale is not 0 (so in simple file, not frame 0) , and export with option "Use current frame" (in Animation tab)
Some notes: - fbx can't export it correctly either (or at least, it can't be re-imported) - You can export glTF/glb by setting a frame where bone scale is not 0 (so in simple file, not frame 0) , and export with option "Use current frame" (in Animation tab)
Member

Hello,
Seems we can now close this old ticket.
Armature are now exported by default with rest pose, no more pose mode (since a few releases)
So, it exports correctly, even if scale is zero at first frame

Hello, Seems we can now close this old ticket. Armature are now exported by default with rest pose, no more pose mode (since a few releases) So, it exports correctly, even if scale is zero at first frame
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-10-31 19:30:35 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#85599
No description provided.