USD Export don´t export Vertex Colors ( Color Attributes ) #99211

Open
opened 2022-06-27 17:01:28 +02:00 by Jordi · 24 comments

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

Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: e05e1e3691
Worked: Not known

Short description of error
USD Exporter don´t export Vertex Colors ( Color Attributes )

Exact steps for others to reproduce the error
Just paint some VC on the default cube with Vextex Paint Mode, then try to export the cube.
Exporter don´t have the "Color Attributes" checkbox ( Importer has it )
You can then try to reimport the USD file and check that your VC aren´t there.CUBE.blend
imagen.png

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.40 **Blender Version** Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: `e05e1e3691` Worked: Not known **Short description of error** USD Exporter don´t export Vertex Colors ( Color Attributes ) **Exact steps for others to reproduce the error** Just paint some VC on the default cube with Vextex Paint Mode, then try to export the cube. Exporter don´t have the "Color Attributes" checkbox ( Importer has it ) You can then try to reimport the USD file and check that your VC aren´t there.[CUBE.blend](https://archive.blender.org/developer/F13232764/CUBE.blend) ![imagen.png](https://archive.blender.org/developer/F13232753/imagen.png)
Author

Added subscriber: @JVM

Added subscriber: @JVM

Added subscriber: @KevinCurry_Unity

Added subscriber: @KevinCurry_Unity

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

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

I can replicate this issue in Blender latest.

I can replicate this issue in Blender latest.
Member

Added subscribers: @makowalski, @lichtwerk

Added subscribers: @makowalski, @lichtwerk
Member

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'
Member

This is just not implemented afaict.
@makowalski : do you want to keep this as TODO?

This is just not implemented afaict. @makowalski : do you want to keep this as TODO?

This is already implemented in the universal-scene-description branch, so it's just a matter of patching that code into master. I will take this task.

This is already implemented in the `universal-scene-description` branch, so it's just a matter of patching that code into `master`. I will take this task.
Michael Kowalski self-assigned this 2022-06-29 15:26:51 +02:00
Author

Just tested on the last Alembic exporter and found the same problem here, should i rise a separate bug report i guess? @makowalski ?

Just tested on the last Alembic exporter and found the same problem here, should i rise a separate bug report i guess? @makowalski ?

Added subscriber: @kevindietrich

Added subscriber: @kevindietrich

@JVM Yes, I would suggest a separate bug report for Alembic, since the work would need to be split up to different tasks for the Alembic/USD exporters. I will certainly coordinate with @kevindietrich (who is handling the Alembic exporter) to make sure we are in alignment on the approach to solve this.

@JVM Yes, I would suggest a separate bug report for Alembic, since the work would need to be split up to different tasks for the Alembic/USD exporters. I will certainly coordinate with @kevindietrich (who is handling the Alembic exporter) to make sure we are in alignment on the approach to solve this.
Author

Thanks for the info @makowalski , i´ll do it tomorrow then

Thanks for the info @makowalski , i´ll do it tomorrow then
Author

@makowalski @kevindietrich task for the Albembic bug is created here : https:*developer.blender.org/T99293

@makowalski @kevindietrich task for the Albembic bug is created here : [https:*developer.blender.org/T99293](https:*developer.blender.org/T99293)
Author

@makowalski Where i can test USD last changes? i only found a a month old build here for the USD branch : https:*builder.blender.org/download/experimental/archive/

@makowalski Where i can test USD last changes? i only found a a month old build here for the USD branch : [https:*builder.blender.org/download/experimental/archive/](https:*builder.blender.org/download/experimental/archive/)

Hi @JVM Support for exporting color attributes is available in that USD branch build from June 15 (1d5d49775c). You should see a Vertex Colors checkbox (enabled by default) under Mesh Options in the USD export dialog. This should allow you to test color attribute IO, but please let me know if you run into any issues. (BTW, I'll be renaming that option Color Attributes soon, to match the new naming convention.)

image.png

Hi @JVM Support for exporting color attributes is available in that USD branch build from June 15 (1d5d49775c7e). You should see a `Vertex Colors` checkbox (enabled by default) under `Mesh Options` in the USD export dialog. This should allow you to test color attribute IO, but please let me know if you run into any issues. (BTW, I'll be renaming that option `Color Attributes` soon, to match the new naming convention.) ![image.png](https://archive.blender.org/developer/F13294952/image.png)
Author

So its only on that branch, which it´s based on 3.2.0 alpha right?
Only problem i see is that we´re currently working on 3.2.1, and it´s not suitable to mantain a diferent blender version only for the export...
The USD branch will be merged on 3.3 then?

So its only on that branch, which it´s based on 3.2.0 alpha right? Only problem i see is that we´re currently working on 3.2.1, and it´s not suitable to mantain a diferent blender version only for the export... The USD branch will be merged on 3.3 then?

In #99211#1390958, @JVM wrote:
So its only on that branch, which it´s based on 3.2.0 alpha right?
Only problem i see is that we´re currently working on 3.2.1, and it´s not suitable to mantain a diferent blender version only for the export...
The USD branch will be merged on 3.3 then?

I will be creating a patch including the color attribute IO from the USD branch for review, but I haven't done so yet. I don't have an exact timeline for this right now, because there are several other bug fixes and patches currently in progress, but this won't be in time for the 3.3 release.

> In #99211#1390958, @JVM wrote: > So its only on that branch, which it´s based on 3.2.0 alpha right? > Only problem i see is that we´re currently working on 3.2.1, and it´s not suitable to mantain a diferent blender version only for the export... > The USD branch will be merged on 3.3 then? I will be creating a patch including the color attribute IO from the USD branch for review, but I haven't done so yet. I don't have an exact timeline for this right now, because there are several other bug fixes and patches currently in progress, but this won't be in time for the 3.3 release.

Added subscriber: @codeloadgame

Added subscriber: @codeloadgame

Added subscriber: @dagnode

Added subscriber: @dagnode

I tried exporting Vertex Colors using 3 versions of Blender. The Mac Silicon versions didn't work for me.

  • 3.4.0 Alpha - USD branch (linux) - works
  • 3.4.0 Alpha (mac-silicon) - does not export primvars:Col
  • 3.4.0 Alpha - USD branch (mac-silicon) - does not export primvars:Col

Repro using a Plane w/ vertex colors.

I tried exporting Vertex Colors using 3 versions of Blender. The Mac Silicon versions didn't work for me. - 3.4.0 Alpha - USD branch (linux) - works - 3.4.0 Alpha (mac-silicon) - does not export primvars:Col - 3.4.0 Alpha - USD branch (mac-silicon) - does not export primvars:Col Repro using a Plane w/ vertex colors.

In #99211#1434553, @dagnode wrote:
I tried exporting Vertex Colors using 3 versions of Blender. The Mac Silicon versions didn't work for me.

  • 3.4.0 Alpha - USD branch (linux) - works
  • 3.4.0 Alpha (mac-silicon) - does not export primvars:Col
  • 3.4.0 Alpha - USD branch (mac-silicon) - does not export primvars:Col

Repro using a Plane w/ vertex colors.

Thanks for pointing this out, @dagnode. This was previously working, so I'll do some testing to determine what might have changed.

> In #99211#1434553, @dagnode wrote: > I tried exporting Vertex Colors using 3 versions of Blender. The Mac Silicon versions didn't work for me. > > - 3.4.0 Alpha - USD branch (linux) - works > - 3.4.0 Alpha (mac-silicon) - does not export primvars:Col > - 3.4.0 Alpha - USD branch (mac-silicon) - does not export primvars:Col > > Repro using a Plane w/ vertex colors. Thanks for pointing this out, @dagnode. This was previously working, so I'll do some testing to determine what might have changed.

Hi @dagnode So I just tested the latest (October 18) experimental build of the universal-scene-description branch for Windows, available here:

https://builder.blender.org/download/experimental/

It seemed to successfully export the primvars:Col from the CUBE.blend file you provided. I was also able to import the Col attribute from the saved USDA. Please note that this currently only handles attributes of type CD_PROP_BYTE_COLOR.

Unfortunately, I'm unable to test for Mac at the moment. Were you exporting using the latest build from October 18? If you're still having the issue, I'll try to arrange for additional testing on Mac.

Hi @dagnode So I just tested the latest (October 18) experimental build of the `universal-scene-description` branch for Windows, available here: https://builder.blender.org/download/experimental/ It seemed to successfully export the `primvars:Col` from the CUBE.blend file you provided. I was also able to import the `Col` attribute from the saved USDA. Please note that this currently only handles attributes of type `CD_PROP_BYTE_COLOR`. Unfortunately, I'm unable to test for Mac at the moment. Were you exporting using the latest build from October 18? If you're still having the issue, I'll try to arrange for additional testing on Mac.

Hey @makowalski -- sorry for the false alarm. I tested again (and using the October 18 build) on Linux and Mac and it worked fine. It looks like it may have been a problem with the blend file I was using and not the software version. When I copied my blend file to Linux, it also did not export vertex colors (even though they show up in the viewport and the mesh details UI). I'll see if there are any repro steps and, if so, file a separate ticket. Thanks for you great work on USD support in Blender!

Hey @makowalski -- sorry for the false alarm. I tested again (and using the October 18 build) on Linux and Mac and it worked fine. It looks like it may have been a problem with the blend file I was using and not the software version. When I copied my blend file to Linux, it also did not export vertex colors (even though they show up in the viewport and the mesh details UI). I'll see if there are any repro steps and, if so, file a separate ticket. Thanks for you great work on USD support in Blender!

Thanks for the update, @dagnode. Yes, please keep us posted of any additional issues. BTW, patch D16108, currently under review, will add the color export functionality to the master branch, with some additional improvements (e.g., handling float colors).

Thanks for the update, @dagnode. Yes, please keep us posted of any additional issues. BTW, patch [D16108](https://archive.blender.org/developer/D16108), currently under review, will add the color export functionality to the master branch, with some additional improvements (e.g., handling float colors).
Bastien Montagne added this to the Pipeline, Assets & IO project 2023-02-09 15:40:38 +01:00
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:54:03 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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 Assignees
6 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#99211
No description provided.