objTo3d-tiles icon indicating copy to clipboard operation
objTo3d-tiles copied to clipboard

Why I have lost texture in single tile 3dtiles data that I have converted from OBJ

Open chm1781 opened this issue 6 years ago • 5 comments

Thanks for your tools ,but I have some problems to use it.The OBJ data was exported from City Engine ,then I used your tools(Create a single tileset with .b3dm tile) converted to 3dtiles ,But the texture of Building modles had lost,.the texture of trees was had.Could you help me?

chm1781 avatar Apr 04 '18 10:04 chm1781

Thanks.

  • Is there have any prompt when you convert to .b3dm?
  • Can you follow Trouble Shooting then tell me at which step you lost texture?

PrincessGod avatar Apr 04 '18 11:04 PrincessGod

Hi, I got the same problem, too, the texture of the model is missing.
here is the .obj model I've tried: obj_model.zip (with .mtl & .jpg files)

  • the command I tried is obj23dtiles -i ./tile_1_0_0_tex.obj --tileset
  • after executing the command, I got no prompt excepts for total time.

Could you help me with this? I'm not sure if the mistake is about the usage of command or structure of OBJ file. Thanks!

CrashedBboy avatar Apr 20 '18 04:04 CrashedBboy

@CrashedBboy Hi.

I found your model is upside down, which means like this in three viewer image

In this case, your normal is towards to negative y axis, which means towards to earth ground not sky, and Cesium have a direction light so it always get dark side, looks like not have texture. this is preview in Cesium viewer image

Hope that can help you.

PrincessGod avatar Apr 21 '18 03:04 PrincessGod

@PrincessGod Thanks for such a detailed explanation!

CrashedBboy avatar Apr 23 '18 00:04 CrashedBboy

while converting the obj to b3dm how to change or assign the correct direction ? or do we have to change in the obj file itself ? so you have any documentation on how to check this and correct this in obj file itself ?

abhijitgujar86 avatar Jul 22 '18 08:07 abhijitgujar86