Convert a 3D textured mesh to a colored 3D (color per vertex)

Dear all,

I process 3D meshes via graphs using C++ but I don’t any background on OpenGL (still very beginner).
My aim is to convert a 3D textured mesh to a 3D colored mesh (color per vertex) for a project I’m working on. I made several research, and I found that this process is called “Texture Transfer”. I tried with Meshlab, however this doesn’t work good. One advise me to ask OpenGl masters.
Can you provide me a small code allowing to read a 3D mesh with image textures, transfer texture to color vertices and finally save the resulting 3D colored mesh to .ply or .obj ?

Here is attached an example of a textured mesh I want to convert Bottle be - 3D model (*.gsm+*.3ds) for interior 3d visualization. | "Flacon CK be-one" - Collection.

Many thanks.

I think that’s an advanced topic.

Jeff

[QUOTE=OceanJeff40;1290018]I think that’s an advanced topic.

Jeff[/QUOTE]

Ok, I’m transferring it in the advanced topics of openGL.

Thanks