Gltf doesn't export instances #96517
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#96517
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
{F12929942}System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.79
Blender Version
Broken: version: 3.2.0 Alpha, branch: master, commit date: 2022-03-15 21:22, hash:
blender/blender@379bd6d50c
Worked: Previous alpha -> hash: fcda858e3200
gltf doesn't export instances, full geometry is exported instead
Exporting .glb file for unreal engine results in datasmith importing everything as a separate mesh, this isn't case in previous alpha where instances are properly exported.
EDIT: added basic file, export glb and reimport (instances aren't preserved)
Added subscriber: @lacilaci
Added subscriber: @JulienDuroure
Changed status from 'Needs Triage' to: 'Needs User Info'
Hello,
As requested by guidelines, can you please upload a simple test case where problem occurs?
Added subscriber: @PratikPB2123
Hi, sorry. Added file to description. It's simple, 4 boxes instanced. Just export glb, reimport, and now instances are regular geometry. previous version (the hash in description) exported instances properly. I get same results importing the files to unreal(which is how I found out it's not working now)
On simple test case, with 2 objects sharing a same mesh (Alt+D) + a another independent cube, and in a collection instanced 2 times, I don't have any issue.
I have only 2 meshes in glTF file, as planned:
untitled.blend
I can't reproduce. I also have only 1 mesh data in glTF exported
Can you please upload the gltf you generated on your side?
Hi I added the file. I also realized I'm using these settings on export
So, even in your example file if you export using selected objects and apply modifiers it will also generate geometry instead using instances. I guess apply modifiers is working differently then before as this was non issue in previous blender version.
I confirm the regression when using Apply Modifier.
Changed status from 'Needs User Info' to: 'Confirmed'
This issue was referenced by
1d5c8b54ee
Changed status from 'Confirmed' to: 'Resolved'
@JulienDuroure
Hi, is this already in latest 3.2 alpha? Hash: 931ae424b9ef
Cause if I enable same settings (Selected objects, Apply Modifiers) I still end up with real geometry being exported.
Hello,
Yes, it should be.
I can't reproduce your issue with 931ae424b9ef.
With your file, and selected objects + Apply Modifiers, I have only 1 mesh exported, as expected
demoexportglb.blend
Well, it seems it only works if there aren't any actual modifiers though. Try with this file where the objects have modifiers. Now if you try to export with (apply modifiers) instancing won't work
Hello,
Your latest case is different from what you define at first in this ticket, and is not a regression, as it is the way it is working from 2.79 version.
Technically, we currently don't detect difference in modifier parameters, so we can't instanciate mesh, as we can't be sure if mesh with modifiers are different or not.
But, isn't the "apply modifiers" supposed to just apply modifiers and then export instances? Regardless of how different said modifier settings are?
This is how it worked before, as I mentioned in original post, older alpha did apply modifiers and export instances properly. It really doesn't matter difference in modifiers as I don't want them exported when I tick "apply modifiers" on export.