Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to stably generate multiple b3dms #186

Open
jingyangking opened this issue Apr 10, 2024 · 3 comments
Open

How to stably generate multiple b3dms #186

jingyangking opened this issue Apr 10, 2024 · 3 comments

Comments

@jingyangking
Copy link

When I was using obj2tiles, I found that some models generate several b3dms, while others only generate one b3dms, which is not related to size. So, I would like to ask how to generate a tileset.json file consisting of multiple b3dms from an obj model? Thank you very much!

@clementcolin
Copy link
Contributor

Hi,
The objTilers works as follow :

  • if you give multiple .Obj files, it should produce multiple b3dm
  • if you give one .Obj file, and only one object is recognized in it, it should produce one b3dm
  • if you give one .Obj file, and multiple object are recognized in it, it should produce multiple b3dm

We use the pywavefront library to read .Obj files, which is able to read .Obj file with multiple objects, such as follow :

O object_1

v 0.0 0.0 0.0
v 1.0 0.0 0.0
v 1.0 0.0 1.0
v 0.0 0.0 1.0
f 1 2 3 4

O object_2
v 0.0 2.0 0.0
v -1.0 -1.0 0.0
v 1.0 -1.0 0.0
f 1 2 3 4

@jingyangking
Copy link
Author

Thank you for your answer. Can it be understood that it is currently unable to perform automatic segmentation models

@clementcolin
Copy link
Contributor

Currently, you're right, it is unable to do so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants