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

Incorrect import of glb with vertex colors #1241

Open
mvaligursky opened this issue Dec 21, 2024 · 6 comments
Open

Incorrect import of glb with vertex colors #1241

mvaligursky opened this issue Dec 21, 2024 · 6 comments
Assignees
Labels
area: asset import bug Something isn't working

Comments

@mvaligursky
Copy link

See the forum thread with a repro glb here, I can confirm it's not working.
https://forum.playcanvas.com/t/help-w-vertex-color-from-blender-4-2-playcanvas/38593

@jameskane05
Copy link

jameskane05 commented Jan 16, 2025

Hi, there! I have a game launching in March, sponsored by HTC - announced yesterday, check out the trailer - and I am approaching the time for optimization. Really hoping to be able to bake lighting/color down to vertex color in the gltf pipeline. Any chance this could get a bump, @slimbuck?

@slimbuck
Copy link
Member

Hi @jameskane05 , I have started investigating and will try get this fixed today or monday with view to release next week sometime. Would that work for you?

@jameskane05
Copy link

That works great, thank you so much! 🙏

@slimbuck
Copy link
Member

Sorry @jameskane05 , I didn't get back to you earlier. This should have been sorted weeks ago. I'm going to assume that's the case and close this issue, but please reopen if there is anything left to do.

@jameskane05
Copy link

jameskane05 commented Jan 29, 2025

Hey sorry, @slimbuck, I'm still seeing the same thing.

Grab the Khronos-provided test cube here:

https://github.com/KhronosGroup/glTF-Sample-Models/tree/main/2.0/BoxVertexColors/glTF-Binary

This comes with no material, just vertex color - so dropping in the Template shows standard white. To attempt to show vertex color, you have to create a new entity, add a Render component, select this asset, then add to that a new material with the Vertex Color checkbox checked. But the colors are still coming in crazy:

Image

Should look like:

Image

Happens in v1 and v2 of the editor. It also happens even when there is a material on the cube that is sampling vertex color.

Image

Am I thinking about this wrong?

@mvaligursky mvaligursky reopened this Jan 29, 2025
@slimbuck
Copy link
Member

Hi @jameskane05 ,

No you're not wrong. I managed to reproduce, it's still broken. Really sorry about that.

My original test was fixed, but this will require more investigation on our side.

Thanks

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

No branches or pull requests

3 participants