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 convert a model group #255

Open
fish-uncle opened this issue Dec 19, 2022 · 1 comment
Open

How to convert a model group #255

fish-uncle opened this issue Dec 19, 2022 · 1 comment

Comments

@fish-uncle
Copy link

The scene is like this
Our UI uses 3D max software to make the model
These models must be derived one by one
The model also has a certain relative position relationship
How to associate the position relationship of this model group with 3d tiles
Any examples?
Existing examples are all single models converted to 3d tiles

@javagl
Copy link
Contributor

javagl commented Jan 4, 2023

This is not an issue for the 3d-tiles-validator. General questions should probably be asked in the forum at https://community.cesium.com/ or - if you are specifically looking for an example tileset - maybe in https://github.com/CesiumGS/3d-tiles-samples .

I can try to give a (short) answer here, but I'm not sure if I understood the question correctly. So just to confirm:

  • You have 3D models that are created with 3DSMAX, and exported - probably as glTF/GLB files
  • Multiple of these models should be combined in a single 3D Tiles tileset
  • Each model should have a certain position in this tileset

Specifically:

  • When each model is created, then it is located "at the origin"
  • When the models are combined, they should have different positions

If this is correct:

You can refer to the models with the tile.content.uri of the 3D Tiles tileset file. Each tile in this tileset can have a local transform matrix. This transform matrix can have a translation component, which is just the position of the model. If this does not help, I can try to create a simple example (for example, with just two boxes at different positions)

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