GLTF exporter does not obey linked asset "Renderable" #104750

Open
opened 2023-07-12 16:17:02 +02:00 by Isiac Dagraca · 2 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98

Blender Version
Broken: version: 3.3.8, branch: master, commit date: 2023-06-19 13:34, hash: 6a4c537c211e
Worked: Unknown

Short description of error
When exporting a GLTF if a file is linked, when exported it will export EVERYTHING, even if "Limit to Renderable" is toggled. This seems contrary to other exporters like USD

Exact steps for others to reproduce the error

  1. Open attached blend file which includes multiple cubes, one marked as visible but not renderable, another marked renderable but not visible, and another that's both (labeled "neither" but I'm in a rush).
  2. Link the cubes visible collection to a new file
  3. Render to confirm only two cubes should show
  4. export scene as GLTF and toggle the limit to renderable.
  5. Open GLTF and find 3 cubes.
**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98 **Blender Version** Broken: version: 3.3.8, branch: master, commit date: 2023-06-19 13:34, hash: `6a4c537c211e` Worked: Unknown **Short description of error** When exporting a GLTF if a file is linked, when exported it will export EVERYTHING, even if "Limit to Renderable" is toggled. This seems contrary to other exporters like USD **Exact steps for others to reproduce the error** 1. Open attached blend file which includes multiple cubes, one marked as visible but not renderable, another marked renderable but not visible, and another that's both (labeled "neither" but I'm in a rush). 2. Link the cubes visible collection to a new file 3. Render to confirm only two cubes should show 4. export scene as GLTF and toggle the limit to renderable. 5. Open GLTF and find 3 cubes.
Isiac Dagraca added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-07-12 16:17:02 +02:00
Member

Confirmed.
Seems visibility & renderability status can't be accessed via linked collections.
I will check.

(Note that USD don't have option to export renderable objects only, so not sure why you talk about that as an example)

Confirmed. Seems visibility & renderability status can't be accessed via linked collections. I will check. (Note that USD don't have option to export renderable objects only, so not sure why you talk about that as an example)
Julien Duroure self-assigned this 2023-07-13 06:14:05 +02:00
Julien Duroure added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-07-13 06:14:13 +02:00
Author

(Note that USD don't have option to export renderable objects only, so not sure why you talk about that as an example)

USD exporter "Visible Only" seems to use renderable toggle not visibility toggle. As such it exports properly compared to GLTF.

This is part of why I discovered the problem cause I was intent on using USD first (but for some reason it didn't handle materials well) and was confused at how GLTF exported.

> (Note that USD don't have option to export renderable objects only, so not sure why you talk about that as an example) USD exporter "Visible Only" seems to use renderable toggle not visibility toggle. As such it exports properly compared to GLTF. This is part of why I discovered the problem cause I was intent on using USD first (but for some reason it didn't handle materials well) and was confused at how GLTF exported.
Germano Cavalcante added the
Module
Add-ons (BF-Blender)
label 2023-07-14 01:29:20 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#104750
No description provided.