-
Notifications
You must be signed in to change notification settings - Fork 29
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
Comments
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? |
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? |
That works great, thank you so much! 🙏 |
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. |
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: Should look like: 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. Am I thinking about this wrong? |
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 |
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
The text was updated successfully, but these errors were encountered: