OpenDroneMap / Obj2Tiles

Converts OBJ files to OGC 3D tiles by performing splitting, decimation and conversion
GNU Affero General Public License v3.0
214 stars 62 forks source link

Obj2Tiles tiles generating without texture. #36

Open ArianisCA opened 1 year ago

ArianisCA commented 1 year ago

What is the problem?

Hello, the project ran great but the problem is that when running the model the tiles are getting generated without texture. See output below: image

What should be the expected behavior?

The expected behaviour should be a model with texture. See expected output below: image

How can we reproduce this? THIS IS IMPORTANT. What steps did you do to trigger the problem? If this is an issue with processing a model, YOU MUST include a copy of your model uploaded on Google Drive or Dropbox (otherwise we cannot reproduce this) along with the command line parameters you used to process it.

Link to download: https://www.dropbox.com/s/w5ndp7emp9cvhxl/Test_DamInspection.zip?dl=0

The command that was ran to build the tiles was: Obj2Tiles c:\objtest\Test_DamInspection.obj .\output I also tried running it using the --keeptextures flag.

SariusRu commented 1 year ago

You are not defining any textures in your .mtl-file. You need to export the model in a way that the mtl-file maps to a texture, otherwise it cannot work (see the example obj-file here )

libofei2004 commented 1 week ago

@SariusRu Can defining textures be a automation process? How to generate a mtl-file maps to a texture?