Loading 3d-tileset in Unity

1,337 views
Skip to first unread message

the...@gmail.com

unread,
May 23, 2019, 4:09:13 AM5/23/19
to cesium-dev
Hi, all

I have been experimenting with importing 3d-tilesets into unity and have encountered the following:

1. A concise explanation of the problem you're experiencing.

My tileset.json does not contain any transforms, the only spatial information regarding the placement of the tiles is the RTC_CENTER in the feature Table of each b3dm.
Now, while the translation (using the rtc) of each tile seems correct (in relation to each other), rotation does not. (See image attached). Now I am wondering what am I missing? Do I have to take the curvature of the earth into account? e.g. do I have to transform using WSG84 or something?

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

--

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I want to get a tileset into Unity and see how it performs.


4. The Cesium version you're using, your operating system and browser.

Win 10, Unity 2018.3

Thank you very much for your help,

Cheers,
Simon

ces1.JPG
ces2.JPG
ces3.JPG

Omar Shehata

unread,
May 23, 2019, 2:10:18 PM5/23/19
to cesium-dev
Sounds like a very cool project! Will this be open source? I do know there is an unofficial partial 3D Tiles implementation in Unity here that you might find helpful: https://github.com/NASA-AMMOS/Unity3DTiles . I haven't used it myself, so I'd be curious about its performance as well.

For getting the orientation right, I think unless the tiles specify some kind of transform (https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification#transforms) then the orientation is engine defined. The spec says it's often expected to be WGS 84 earth-centered, earth-fixed (ECEF) reference frame (EPSG 4979) but it need not be.

How was this tileset created? How does it look in CesiumJS?
Reply all
Reply to author
Forward
0 new messages