## Color Integration For simImportMesh in Regular-API

Requests or suggestions for new features
smeissne
Posts: 1
Joined: 22 Oct 2016, 10:10

### Color Integration For simImportMesh in Regular-API

Hello,

currently I'm working on a Plugin which allows you to import an OpenStreetMap map to generate a 3D V-Rep Scene. My 3D street objects, like houses and trees, are saved in an *.obj file and imported by the simImportMesh() function of the Regular API. If I do the import manually then colors are correctly defined. Using the Regular API all colors are set randomly and have to be changed manually like:

Code: Select all

simSetShapeColor(shapeHandle,"",sim_colorcomponent_ambient,grey);
Is there a way to import the the color information from the *.obj.mtl file like the frontend function does? I think results would look quiet better.

Thank you and kind regards,
Sören

coppelia
Posts: 7850
Joined: 14 Dec 2012, 00:25

### Re: Color Integration For simImportMesh in Regular-API

Hello Sören,

this looks interesting!

Have you tried with simImportShape? This will however directly create the shape objects.

Let me know,

Cheers

atom
Posts: 2
Joined: 16 Jun 2017, 12:37

### Re: Color Integration For simImportMesh in Regular-API

Hi Sören,

I'm trying to achieve the same functionality but a much basic version, i wanted to import OSM roads into V-rep, can i know of the progress of your project? Any help is much appreciated.

Thanks,
atom.