ThreeDTilesLayer issue

classic Classic list List threaded Threaded
11 messages Options
vigos lee vigos lee
Reply | Threaded
Open this post in threaded view
|

ThreeDTilesLayer issue

Hi,
I had a problem adding ThreeDTilesLayer.
I can't display two 3dfiles data sliced from cesum lab correctly.They all display correctly on cesiumlab.
One of them is ShapeFile, which cuts out b3dm format.
This is what it display on earth.
The other is point clouds,which cuts out pnts format.
When I add it, I can't see anything.

This is my code:
        osgEarth::Contrib::ThreeDTilesLayer *threeLayer = new osgEarth::Contrib::ThreeDTilesLayer;
        threeLayer->setURL("D:\\data\\shapefile\\tileset.json");
        s_activeMap->addLayer(threeLayer);
Did I miss something or do something wrong?
I use osgEarth3.0 osg3.6.3 gdal2.4.4 proj5.2.

Thank you for your help.
vigos
vigos lee vigos lee
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

Or can someone give me an example of what I did wrong?
vigos
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

We don't currently support 3d tiles with point clouds in them, only b3dm or gltf/glb.   In theory the shapefile one should work, but without the data hard to say what is going on.   If you can stick the tilesets somewhere I can take a look.   

One simple thing to check is to see if the data is Draco compressed, and if it is make sure you are building against Draco.  

On Thu, Aug 13, 2020, 10:22 PM vigos lee [via osgEarth] <[hidden email]> wrote:
Or can someone give me an example of what I did wrong?
vigos



If you reply to this email, your message will be added to the discussion below:
http://forum.osgearth.org/ThreeDTilesLayer-issue-tp7593305p7593306.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML
vigos lee vigos lee
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

Thank you for your help!
This is my data, including shapefiles and 3dfiles.
shape.rar
I'm sorry I didn't quite understand what you said about Draco compressed.
Thank you again!
vigos
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

Something is definitely odd with that tileset.  It appears that the b3dm tiles are already oriented to be z-up when they are supposed to be oriented y up so they are being rotated incorrectly b/c osgearth does a y-up to z-up transformation on the b3dm files.  Taking that out and your files seem to load correctly, but it breaks every other 3d tiles test case we have :)  Oddly enough it displays correctly in Cesium so something might be up with our loader.  I'll add an issue for it on Github and investigate further.

Jason

On Thu, Aug 13, 2020 at 11:05 PM vigos lee [via osgEarth] <[hidden email]> wrote:
Thank you for your help!
This is my data, including shapefiles and 3dfiles.
shape.rar
I'm sorry I didn't quite understand what you said about Draco compressed.
Thank you again!
vigos



If you reply to this email, your message will be added to the discussion below:
http://forum.osgearth.org/ThreeDTilesLayer-issue-tp7593305p7593308.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

I've updated this issue https://github.com/gwaldron/osgearth/issues/1564 with some notes.
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue


On Fri, Aug 14, 2020 at 11:23 AM jasonbeverage [via osgEarth] <[hidden email]> wrote:
I've updated this issue https://github.com/gwaldron/osgearth/issues/1564 with some notes.


If you reply to this email, your message will be added to the discussion below:
http://forum.osgearth.org/ThreeDTilesLayer-issue-tp7593305p7593310.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML
vigos lee vigos lee
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

Thank you, Jason.
I'm sorry that I was too busy two days ago to reply in time.
Thank you for your prompt reply and fix.
vigos
vigos lee vigos lee
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

In reply to this post by jasonbeverage
By the way, besides b3dm, do you consider supporting i3dm / pnts / cmpt formats?
vigos
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

Vigos,
No; it doesn't support those formats, and we have no plans to do so. This is because the 3D-Tiles spec is evolving and the next version is likely to replace those formats (including b3dm) with something else like glTF extensions.

Hope this helps!
Glenn Waldron / Pelican Mapping
vigos lee vigos lee
Reply | Threaded
Open this post in threaded view
|

Re: ThreeDTilesLayer issue

Thank you, Glenn . I got it.
vigos