• 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.

Vertex Painting and data export

Messages
24
Country
germany
Dear forum.
In another thread I found the attached object that has coloured vertecis. The pictures in the thread show the object painted correctly.
When I try to import the object to ModelconverterX (latest version 1.5.0.0), I only get a white object not coloured at all.
What am I doing wrong?
Could anyone please help me?

Next question is how to export to obj format, but not to the Wavefront format, but to the old type of format. I could not find an appropriate format in the export list. Does anyone know an appropriate tool?
This would be a great help for me.
Thank you very much and best regards,
Walter
PS: I have not found the old thread and I hope its ok for the owner to post the data here, because he also posted them in the forum.
 

Attachments

Make sure you have the current version of MCX, and the right buttons checked
Untitled.png
 
Wow, got to love that simple shader alert for dopes like me!

He might mean the color thumbnails in the actual material editor window, if so, MCX can only display polygon color in the editor. I am pretty sure that since the editor cannot read vertex color, it also cannot edit it, once committed. We do have the preview render, as Dick has demonstrated.
 
The next issue is why do you want the 'old' OBJ format?
 
Hi rhumbaflappy
Clicking the complex shader button was the solution for my problem. Thank you.
Regarding your question for the obj format. I`m using a very old program that can only use the old obj format.
Maybe you know a tool that can convert collada or fbx or any standard format to the old version of obj file.
Thank you.
 
MCX does have an export for an older OBJ, but not what you want? That export loses the vertex coloring. The newer obj export retains it.
 
Sorry, I tried both OBJ exporters, but they don´t work for my old application, so I thought there might be another tool working.
I love MCX, its a perfect tool for many of my problems I have to solve, especially for converting from one format to the other.
But especially for vertex painted objects I´m lookin for a tool to convert to old OBJ or .x format.
 
Do you mean the DirectX file format or the fs2004-fsx x file format?
 
I mean DirectX format.
My software can use DirectX or OBJ (old version) format for import. In general I´m using ModelconverterX for this and it works fine, but for vertex painted object I´m not able to export from MCX in a proper format. So I´m looking for a different tool for this special purpose.
 
Hi,

I'm not sure if the wavefront obj format supports vertex colors. I will check that.

At the moment MCX only exports the vertex color to gltf, as MSFS is the only sim I'm aware of that uses them. FSX and P3D don't.
 
I see there is a kind of standard way to store vertex colors in obj files that different tools support. I can try to add that to MCX as well.

Which tool do you need to import the files in?
 
Hi Arno
I´m using EEP, this is a train simulation software, using a very old standard. To import objects to the software you can only use obj or .x format. I know that the software can import obj files with colored vertex. So if you would like to add to MCX this would be great for me. For importing standard obj files to EEP, with normal texturing, your current export tools work fine.
Beside this I wanted to say thank you for this great and very very useful software tool!!
Please let me know how I can make a little donation for your great work.
 
Hi,

I have found that the most common way to store the vertex colors is to specify them after the x y z coordinates of the vertices (so a line like x y z r g b). Do you know if that is also the way that EEP supports it? Because else it would still not help you very much.
 
I used MeshLab to view some examples. Here's a view of an MCX-exported OBJ from a vertex-colored glTF:
Untitled.png

It appears the OBJ export works fine, but the OBJ import does not show the colors. Importing the valid MCX-OBJ does not export correctly. So there is a problem in MCX as to the reading of the OBJ, but perhaps not the exporting.
 

Attachments

Last edited:
Hi Dick,
I used MeshLab to view some examples. Here's a view of an MCX-exported OBJ from a vertex-colored glTF:
MCX has two OBJ exporters. One is used the Assimp library and the other one (called Wavefront OBJ (old)) is a custom one I made. Of those two the Assimp one does export the vertex colors already I see.
It appears the OBJ export works fine, but the OBJ import does not show the colors. Importing the valid MCX-OBJ does not export correctly. So there is a problem in MCX as to the reading of the OBJ, but perhaps not the exporting.
Correct, my OBJ importer does not support this yet. I'll add that feature soon.
 
Hi Arno
Sorry, I´m not a programmer, so I can´t tell you if the format is correct or not.
As far as I understood. Your exporter already works fine with vertex colours but you import does´nt.
So I´ll wait for the update.
Thank you for your effort.
Just a quick reminder for Arno that MCX support relative to MeshLab implementation of Vertex Colors was discussed here in 2015: :pushpin:
Thank you for your assistance. I will check and I think its very helpful for me.
I used MeshLab to view some examples. Here's a view of an MCX-exported OBJ from a vertex-colored glTF:
Thank you. I will download the tool and check it.
 
Hi again:

Perhaps the converting-vertex color-to-texture workflow cited in this mini-tutorial may prove useful while we await further MCX updates by Arno ? :idea:



Additionally, tutorial videos by one of the MeshLab developers are here:

Code:
https://www.youtube.com/watch?v=OJZRuIzHcVw&list=UULF70CKZQPj_ZAJ0Osrm6TyTg&index=37

GaryGB
 
Last edited:
Hi GaryGB
Sorry my software can´t use texture for this special purpose, it needs vertex colour. But for study, the videos are good. Thank you.
 
Back
Top