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

All the LODs have the same blocks #25

Closed zuixiaosanlang closed 1 year ago

zuixiaosanlang commented 1 year ago

i find all the LODs have the same blocks。

pierotofy commented 1 year ago

It does have HLOD capabilities. Perhaps something is unique about your input that's causing the program to not be able to decimate it.

zuixiaosanlang commented 1 year ago

@pierotofy thank you for reply. i mean different HOD, have different divisions. for example, divisions of LOD-0 is 3, and LOD-1 is 2, LOD-2 is 1. now i found all the divisions of LOD-3,2,1 are 3. image

HeDo88TH commented 1 year ago

Yes, this is by design: every LOD has the same number of divisions. Can you provide your test data?

zuixiaosanlang commented 1 year ago

@HeDo88TH i am sorry. i donot express clearly before.

about the converted result, i found all the folders(LOD-0,1,2) are very close in size.

for example,in my test, LOD-0 is 27.3M, and LOD-1 is 24.2M, and LOD-2 is 20.7M

But i want to get the result like this: LOD-0 is 28M, and LOD-1 is 14M, and LOD-2 is 7M

Top level has smaller size obviously。

i donot know to change the code.

i noticed in the decimate stage, the size of objs are different obviously.(mesh.obj is 62M, mesh_0.obj is 42M, mesh_1.obj is 25M).

any suggest ??

thanks

HeDo88TH commented 1 year ago

The size is mostly correlated to the textures. The OBJ is basically a text file with a bunch of vertices and faces. We could reduce the quality of the textures or their size in the LOD process but it's currently not implemented.