AggrorJorn Posted January 21, 2019 Share Posted January 21, 2019 Should vertex colored fbx models work out of the box? I have a collection (+100) models that are vertex colored instead of having any textures. Loading them in using the editor, they remain grey. I tried to see if would require some sort of default empty material but to no avail. Opening them in other engines works directly. Does anyone have experience with this? This topic mentions altering some info in blender, but I am looking to see I can achieve this without actually altering all 100+ models in an external modeling program. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted January 21, 2019 Share Posted January 21, 2019 Seems like it might. Not sure about the code part of it. The below image is an untextured triangle (exported from Max). I've also attached a zip with the FBX and MDL. vertexcolortest.zip Also worth noting that if you open my FBX in a text editor, you'll see the following section, describing the vertex colors (3 RGBA sets): Quote LayerElementColor: 0 { Version: 101 Name: "" MappingInformationType: "ByPolygonVertex" ReferenceInformationType: "IndexToDirect" Colors: *12 { a: 0,0,1,1,0,1,0,1,1,0,0,1 } ColorIndex: *3 { a: 1,2,0 } } 1 Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted January 22, 2019 Share Posted January 22, 2019 @ Aggror in thread you link to, I created a simple machine and vertex painted it using 3D Coat ( you can use most 3d Modelling programs to do this). I then exported it as an FBX file and imported it straight into LW. The paint information was stored in the file and no textures were needed. So in answer to your question the texture information should be in your file and work straight out of the box. 1 Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 22, 2019 Author Share Posted January 22, 2019 Thanks for the replies @Thirsty Panther and @gamecreator. I am afraid the models that I bought do not have this element LayerElementColor but instead are refering to a material. There are no textures in the model pack, so I guess some other tricks are applied in other engines. Anyway, I am sure I can find some fbx batch export with color vertex somewhere for blender. Thanks for the help. If I find something useful, I will post back here. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted January 22, 2019 Share Posted January 22, 2019 Worst case, since it's text, maybe we could inject that information via some quick code. But I'm sure you'll find an exporter first. Quote Link to comment Share on other sites More sharing options...
aiaf Posted February 5, 2019 Share Posted February 5, 2019 You can vertex paint those models yourself in blender then export fbx to lw. I noticed you need many vertexes on model for this to look good.Doesnt work well for very low poly models. Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.