Check out enclosed screen shots. The screenshot of Modo is how I set the vertex colors up. Exported it as a FBX.
When I import that FBX into Playcanvas and chose the ‘Convert to GLB’ option the vertex colors see fine. An example is the left object in the Playcanvas screen shot.
When I import the FBX into Playcanvas without having the ‘Convert to GLB’ option selected (the imported format is JSON) the vertex colors are goofy.
Feels like a bug. Let me know if I am missing something.
Hey this definitely feels like a bug. Feel free to create an issue Issues · playcanvas/editor · GitHub but I suspect it won’t have a high priority as the json format is very much replaced by the glb. What reason do you have to use the json format?
This is an older project with tons of models in it. A lot of the models / code are still referencing the old .json format. In this case I’m trying to use vertex colors to identify specific groups of vertices for deformation. I added the vertex colors and reimported using the same format as what was previously uploaded. Importing as .glb worked fine though.
If the .json format is being deprecated in favor of .glb we’ll make it a point to avoid the older .json format
Yes, at some point in the near future we’ll hide the option to use json format for new project. It will still be available for existing projects, so no need to move away from it, but I’d recommend to start using glb format where possible, as it’s faster and has a lot more features.
Sounds good, thanks for the response. Looking forward to PlayCanvas 2.0
1 Like