FBX exporter ignore new vertex colors attribute #98721

Closed
opened 2022-06-09 11:56:36 +02:00 by Alberto Velázquez · 27 comments

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

Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: blender/blender@e05e1e3691
Worked: (newest version of Blender that worked as expected)

Short description of error
FBX exporter ignore new vertex colors attribute

Exact steps for others to reproduce the error
Create any mesh
Enter in vertex Paint
add a new vertex color attribute (color or byte color)
paint some vertex colors in the mesh
Export to FBX
import in any software or see in the windows 3D viewer.

In my tests (unreal, max and windows viewer) no program found any vertex color data.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15 **Blender Version** Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: `blender/blender@e05e1e3691` Worked: (newest version of Blender that worked as expected) **Short description of error** FBX exporter ignore new vertex colors attribute **Exact steps for others to reproduce the error** Create any mesh Enter in vertex Paint add a new vertex color attribute (color or byte color) paint some vertex colors in the mesh Export to FBX import in any software or see in the windows 3D viewer. In my tests (unreal, max and windows viewer) no program found any vertex color data.

Added subscriber: @AlbertoVelazquez

Added subscriber: @AlbertoVelazquez

I'm checking that same problems happens with all importers that I have tried (OBJ/GLTF) so I suppose that all exporter are affected.

I'm checking that same problems happens with all importers that I have tried (OBJ/GLTF) so I suppose that all exporter are affected.
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

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

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

I can't seem to replicate that. Importing back into Blender yields the same vertex colors. You perhaps attach a simple file that reproduces the issue, along with its exported FBX.

I can't seem to replicate that. Importing back into Blender yields the same vertex colors. You perhaps attach a simple file that reproduces the issue, along with its exported FBX.

I created a blend test file

imagen.png

With this results

imagen.png

Blender Color Attribute Test file.blend

Vertex Color.fbx

Vertex Byte Color.fbx

Face Corner Color.fbx

Face Corner Byte Color.fbx

Like I see is a limitation of what type of attributes is used in the exporter.

I created a blend test file ![imagen.png](https://archive.blender.org/developer/F13141504/imagen.png) With this results ![imagen.png](https://archive.blender.org/developer/F13141515/imagen.png) [Blender Color Attribute Test file.blend](https://archive.blender.org/developer/F13141521/Blender_Color_Attribute_Test_file.blend) [Vertex Color.fbx](https://archive.blender.org/developer/F13141520/Vertex_Color.fbx) [Vertex Byte Color.fbx](https://archive.blender.org/developer/F13141519/Vertex_Byte_Color.fbx) [Face Corner Color.fbx](https://archive.blender.org/developer/F13141518/Face_Corner_Color.fbx) [Face Corner Byte Color.fbx](https://archive.blender.org/developer/F13141517/Face_Corner_Byte_Color.fbx) Like I see is a limitation of what type of attributes is used in the exporter.
Member

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

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

I see, you are right. Currently, Blender have a limited definition of what vertex colors are, and those are the face corner byte colors. Exporters just use the vertex colors that Blender provides through its API.

So the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors.

For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

I see, you are right. Currently, Blender have a limited definition of what vertex colors are, and those are the face corner byte colors. Exporters just use the vertex colors that Blender provides through its API. So the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors. For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

@OmarEmaraDev I have same opinion that you, but it will create a lot of insecurity in users. Cannot be the user warned in some way? It will be hard for user to know this limitation without trial and error.

@OmarEmaraDev I have same opinion that you, but it will create a lot of insecurity in users. Cannot be the user warned in some way? It will be hard for user to know this limitation without trial and error.
Member

How do you suggest the exporters can warn the user?

How do you suggest the exporters can warn the user?

In principle, I can think of two ways.

  • A warning in the attributes color about the behavior.
  • A warning in each exporter in the export options.

The first one seems to me the most correct. A warning where it says "Only Face Corner Byte Color will be considered by the exports".

And, besides, it should be documented in the manual.

In principle, I can think of two ways. - A warning in the attributes color about the behavior. - A warning in each exporter in the export options. The first one seems to me the most correct. A warning where it says "Only Face Corner Byte Color will be considered by the exports". And, besides, it should be documented in the manual.
Member

I think this should go the manual and tool tips in the exporter for now at least.

I think this should go the manual and tool tips in the exporter for now at least.

Added subscriber: @aras_p

Added subscriber: @aras_p

In #98721#1371425, @AlbertoVelazquez wrote:
I'm checking that same problems happens with all importers that I have tried (OBJ/GLTF) so I suppose that all exporter are affected.

OBJ should actually work just fine, in Blender 3.3 - can you try an alpha build from https://builder.blender.org/download/daily/ ?

> In #98721#1371425, @AlbertoVelazquez wrote: > I'm checking that same problems happens with all importers that I have tried (OBJ/GLTF) so I suppose that all exporter are affected. OBJ should actually work just fine, in Blender 3.3 - can you try an alpha build from https://builder.blender.org/download/daily/ ?

I don't usually export in OBJ, so I don't know if the default options are asl correct for exporting vertex color. But I have not been able to get max or windows viewer to find a vertex color channel in any of its forms (vertex, facecorner) or types (color or byte).

I don't usually export in OBJ, so I don't know if the default options are asl correct for exporting vertex color. But I have not been able to get max or windows viewer to find a vertex color channel in any of its forms (vertex, facecorner) or types (color or byte).

Added subscriber: @BlenderInsight

Added subscriber: @BlenderInsight

I think this should be considered a bug for now and not a future feature.
The reason for it is that this change where you suddenly have to go from Vertex Colors to *"Face Corner + Byte Color" makes it impossible to Geometry Nodes to set Vertex Colors to "Byte Color" as output since it does not support "Byte Color" as output...only "Color" in .3.2.
So this change broke a all my stuff that I had built in Geometry nodes where I use Vertex Colors and want to Export as FBX in to Unreal Engine.
It worked fine before this possibility to tell Blender what type of Vertex Color it should use.

I think this should be considered a bug for now and not a future feature. The reason for it is that this change where you suddenly have to go from Vertex Colors to *"Face Corner + Byte Color" makes it impossible to Geometry Nodes to set Vertex Colors to "Byte Color" as output since it does not support "Byte Color" as output...only "Color" in .3.2. So this change broke a all my stuff that I had built in Geometry nodes where I use Vertex Colors and want to Export as FBX in to Unreal Engine. It worked fine before this possibility to tell Blender what type of Vertex Color it should use.

Added subscriber: @dpotuznik

Added subscriber: @dpotuznik

Hi,

for me too is more of a bug.
because on all 3D software when we deal with vertex color is ... a vertex color that it..
for me you add more confusion to the user, I am pretty new on blender (Thank you for this amazing software :) ) ..
for example, I still don't know how I can export the vertex color to Unreal.
i have made a bake material color to vertex color save the object on fbx , and when I try to reload the fbx on blender the vertex color is gone !
so how can I export vertex color on fbx ?

Thank you for your hard work
have a once day
Daniel

Hi, for me too is more of a bug. because on all 3D software when we deal with vertex color is ... a vertex color that it.. for me you add more confusion to the user, I am pretty new on blender (Thank you for this amazing software :) ) .. for example, I still don't know how I can export the vertex color to Unreal. i have made a bake material color to vertex color save the object on fbx , and when I try to reload the fbx on blender the vertex color is gone ! so how can I export vertex color on fbx ? Thank you for your hard work have a once day Daniel

or maybe , can you on the export option add an option like "convert Face to vertex color"
or even simply auto convert vertex color to Face Corner when you export on gltf or fbx ... to be seamless for the user ?

or maybe , can you on the export option add an option like "convert Face to vertex color" or even simply auto convert vertex color to Face Corner when you export on gltf or fbx ... to be seamless for the user ?

Added subscriber: @panakotta00

Added subscriber: @panakotta00

In #98721#1408558, @dpotuznik wrote:
Hi,

for me too is more of a bug.
because on all 3D software when we deal with vertex color is ... a vertex color that it..
for me you add more confusion to the user, I am pretty new on blender (Thank you for this amazing software :) ) ..
for example, I still don't know how I can export the vertex color to Unreal.
i have made a bake material color to vertex color save the object on fbx , and when I try to reload the fbx on blender the vertex color is gone !
so how can I export vertex color on fbx ?

Thank you for your hard work
have a once day
Daniel

First comment here,

I just wanted to let you know I got the vertex colors working with unreal.

In the Unreal Import Settings, change "Vertex Color Import Option" to "Replace".

I then was able to import vertex colors of type "Face Corner - Byte Color".

> In #98721#1408558, @dpotuznik wrote: > Hi, > > for me too is more of a bug. > because on all 3D software when we deal with vertex color is ... a vertex color that it.. > for me you add more confusion to the user, I am pretty new on blender (Thank you for this amazing software :) ) .. > for example, I still don't know how I can export the vertex color to Unreal. > i have made a bake material color to vertex color save the object on fbx , and when I try to reload the fbx on blender the vertex color is gone ! > so how can I export vertex color on fbx ? > > Thank you for your hard work > have a once day > Daniel First comment here, I just wanted to let you know I got the vertex colors working with unreal. In the Unreal Import Settings, change "`Vertex Color Import Option`" to "`Replace`". I then was able to import vertex colors of type "Face Corner - Byte Color".
Aras Pranckevicius self-assigned this 2022-09-12 11:53:22 +02:00

Changed status from 'Archived' to: 'Confirmed'

Changed status from 'Archived' to: 'Confirmed'

This issue was referenced by 692f4691ab

This issue was referenced by 692f4691abc6a21f9d30f94a99882f2c46330903

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Fixed by D15942

Fixed by [D15942](https://archive.blender.org/developer/D15942)

Added subscriber: @IgorFrolov

Added subscriber: @IgorFrolov
Sign in to join this conversation.
No Milestone
No project
8 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#98721
No description provided.