• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS20 gltf vertex color

Messages
482
Country
hungary
Hi Arno!

When importing a gltf model to MCX the vertex color information gets lost. Is it possible to keep it somehow?
The MFSF material is still applied on the object, the polys have different vertex color, just no base color texture.


Thanks a lot!

1619534193068.png


1619534637760.png
 
Hi,

Do you mean that this object has no color for the material that is applied and only a vertex color? MCX does not use vertex colors indeed, it only supports to set the color at the triangle level.
 
Hi Arno!


MSFS Material is applied on the object with white base color. But the different vertices - in my case different polygons - are "painted" with different vertex color. That pin what you see on the first picture is one object. Some polygons have yellow, others green and some red color.
If this object is inserted into MSFS it looks exactly as in 3DS Max.

Moreover MSFS encourages us to use vertex colors on lower LOD's.
From SDK:
  • Low poly LoDs often do not need a texture at all, and you can simply use the vertex colour (this is essentially a "free" way to colour a model because of the single-vertex format.
 
OK, sounds like I have to extend MCX to use the vertex color as well. Quick work around might be to at least read the vertex color and use it to set the triangle material right. But that would not give the benefits the SDK describes. Would you have a simple test object that uses some vertex colors? Might be just a few boxes.
 
OK, sounds like I have to extend MCX to use the vertex color as well. Quick work around might be to at least read the vertex color and use it to set the triangle material right. But that would not give the benefits the SDK describes. Would you have a simple test object that uses some vertex colors? Might be just a few boxes.
Yes of course!

Please give me a day.
 
Hello:

IIUC, if MCX added the ability to process Vertex Colors, that 'could' potentially make other enhanced features possible. :idea:





This may allow users of Sketchup and MeshLab to generate Ambient Occlusion via Vertex Colors ...and burn that into mapped Materials via MCX.

That could open up possibilities for another FS content creation work-flow via Sketchup without post-processing by 3DSMAX or Blender. :)


PS: It is interesting to see the processing functions ASSIMP is already able to work with: :scratchch






Thanks in advance for considering further extending this functionality in MCX. :wizard:

GaryGB
 
Last edited:
Hi Arno!

Sorry I do not want you stress you on this one, I can imagine how busy you are. Is the vertex coloring planned to be implemented in MCX?

Thanks a lot!
 
Hi,

Yes, it is planned to be implemented, but too be honest it also had slipped my mind as I was working on other features.

I have added it to the todo list now in the bug tracker:

But it might take a while to finish it, as the summer holiday is about to start.
 
I finally found the time to start with this feature. I am not sure how long it will take, as I will have to update the glTF reader, glTF writer, the internal data model and the MCX preview for this.
 
I finally found the time to start with this feature. I am not sure how long it will take, as I will have to update the glTF reader, glTF writer, the internal data model and the MCX preview for this.
Thanks Arno, it is great news. If you need any help like sample or testing just let me know.
 
I think the sample you uploaded before the summer should be enough to get me started.
 
Making progress, the reading and rendering is working now. Only the exporting I need to work on.

1632599817983.png
 
Hi,

I have finished implementing this now. The vertex colors are now exported to glTF, COLLADA and FBX as well. So that means they won't be lost anymore when you work with your model in MCX. A new development release will be online later this morning.
 
Back
Top