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

combining 3d tiles and 3d modeling #68

Open
Eytanm opened this issue Sep 27, 2022 · 4 comments
Open

combining 3d tiles and 3d modeling #68

Eytanm opened this issue Sep 27, 2022 · 4 comments

Comments

@Eytanm
Copy link

Eytanm commented Sep 27, 2022

Hi Avner!
I have a question relating to the library, but not directly. I hope you can help me.
I'm trying to use the library to use LOD to load heavy photogrammetry, but I want to integrate 3D modeling from max or Blender. What is the best way to do that? Do I import the tileset into 3D max and model on top of that to maintain positioning?
I see that the NYT team is occasionally combing photogrammetry and digital modeling
Any tips would help. Thanks:)

@Avnerus
Copy link
Collaborator

Avnerus commented Oct 7, 2022

Hi Eytan!
Sorry for the late reply.
I think aligning in a software such as max or blender would work well. Instead of importing 3D Tiles into a modeling software, are you able to export a low-poly mesh of your photogrammetry model? You could use that just for positioning and then replace it with the Tileset on the web.

@Eytanm
Copy link
Author

Eytanm commented Oct 10, 2022

Thanks, Avner, I think I have a problem with the rotation of the models. I use Reality Capture to export to Cesium, then 3Dtiles-loader rotates the Cesium data 90 degrees before plotting.. So I'm confused about how to correctly rotate the reference model, which I also export from RC, to bring into 3D max.... especially if the pivot point of the large tiled model is different from that of the smaller model segment...
This is well beyond the library, so perhaps I've gone too far...
Thanks for the support!

@wboony
Copy link

wboony commented Oct 13, 2022

Hi Eytanm, you could try these steps to create a reference model:

  1. In RC, set both coordinate systems "Project" and "Output" as "Euclidean"
  2. Export Cesium tilesets (hi-poly)
  3. Simplify the entire large photogrammetry model to 10K and export as Cesium tilesets (low-poly). Export setting:
    • Initial simplification: None
    • Maximum node triangle count: 10K. The reason we set the same values (10K) as the low-poly 10K is because we don't want the model to have LODs. There's only 1 level.
  4. Load both hi-poly and low-poly tilesets and check if they're aligned.
  5. Assuming hi-poly and low-poly tilesets align on top of each other, convert the low-poly tilesets(b3dm) into glb using this 3d-tiles-validator/tools b3dmToGlb section.
  6. Import the low-poly glbs that you just converted into blender/3Ds Max

@Eytanm
Copy link
Author

Eytanm commented Oct 21, 2022

Thanks wboony!
I'm having trouble running the b3dm to glb tool.
Can I export one version as tiles directly to Cesium, and then also export a FBX file from RC of the same model, and relay on them to overlap? confused since the Cesium model is rotated by the JS to flip the y axis
TNX!

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

3 participants