Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when only vertices are exported as glb, Vertex color is incorrect #2319

Open
chen649285912 opened this issue Aug 14, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@chen649285912
Copy link

chen649285912 commented Aug 14, 2024

What I want to do?
I want to export a point cloud model with color in blender, and render it in babylon.js. Like this photo
QQ截图20240814164622

Steps to reproduce the behavior:

  1. I generated a mesh point with vertex color data through geometry node in blender
    2

  2. Then convert it to a vertex-only mesh, and you can query the vertex to see the color attribute
    3

3.Export glb, use recommended vertex export options (cannot export correctly using various options)
4

  1. I put it into the babylon sandbox and found that the vertex color is incorrect
    5

I want to know what this problem is, please check it out, thank you very much!

The following are the test files(Contains glb and blend files)
test.zip

Version
-windows 11

  • Blender 4.2
    -addon version 4.3.12

I personally speculate that this is because i can only export and import vertex colors based on face corner-byte color in blender.
If so, I hope that the function of exporting vertex-color can be added to meet the demand of exporting point clouds separately.
Thanks again!

@julienduroure
Copy link
Collaborator

Confirmed.
The exported gltf file is not valid.
I have a fix in progress, but seems I also discovered that it will need more work on alpha VC .

@julienduroure julienduroure added this to the Blender 4.2 LTS milestone Aug 15, 2024
@julienduroure julienduroure added the bug Something isn't working label Aug 15, 2024
@chen649285912
Copy link
Author

Thanks, I'll be looking forward to this fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants