Newbie question: Can i use plain gltf files in 3dtiles directly or do i have to convert to b3dm?
I tried to swap in a box from gltf repro with a tile example using b3dm and got:
A 3D tile failed to load: [http://127.0.0.1:8085/Box.gltf?v=1.2.3]
Error: Cannot read property ‘content’ of undefined
Got my .b3dm. Is there a viewer for that format that isnt cesium?
I cannot see my tiles in sandcastle (no errors) and hard to tell if its the data or placement. I guess common problem.
And I a probably doing that ;D
If there’s no error, I’m guessing the problem is that the model itself isn’t in the bounding volume. If it’s origin is (0,0,0) then the model is going to be at the center of the earth. The region defined does not actually move or transform the model. You would need to either move the model itself (in the OBJ before exporting it) or by defining a transform to move it to the right location. So you can see how the tileset.json in this tileset defines a transform to move the model to the right location
We have user defined data and that needs to converted on the fly. For development i would love to see just my processed mesh data in a viewer quickly but i couldn’t find one. Gltf viewers arent expected to work?
The transform matrix has no scale, so i have to do that in the mesh probably?
[ Xx, Xy, Xz, 0,
Yx, Yy, Yz, 0,
Zx, Zy, Zz, 0,
RTCx, RTCy, RTCz, 1]
The tile inspector shows the wire frame of my regular triangle grid like this, I am puzzled how i see quads? There must be a b3dm reader out there … a bit complicated
Thanks, for looking. I am just trying to figure out my test workflow if i cannot see a real wire frame of my mesh. Or the mesh gets changed in the process… Would we expect conversion to b3dm simplifies meshes in that way?
I was looking at in inspector sandcastle example with
var tileset = new Cesium.Cesium3DTileset({
url: “http://127.0.0.1:8081/tileset.json”,
});