Closed tobias74 closed 3 months ago
Hi @tobias74! Thank you for all of the contributions, looks great. I left one question on the review, but looks like you are still pushing commits. Could you let me know when the PR is ready for review?
Hi @Avnerus!
This PR got a little bigger than originally planned :-) but I think it is ready now. In case I come up with more stuff I would just implement it on a new branch.
In case there are things that I should adjust please let me know :-)
This is the link to the attribution guidelines: https://developers.google.com/maps/documentation/tile/create-renderer#display-attributions
The build seems to be failing now but I cannot see the details, it only shows a 404: "We are sorry, the resource you requested cannot be found."
Thank you @tobias74.
Regarding the attribution data, I think I'll add it in onTraversalComplete()
similar to here. We also need to make sure that it is optional so that it will not run when it is not needed. I will update those changes.
Regarding the change to the reset and wgs84 transformation, could you describe your use-case? Are you manipulating the default transformation matrix of Google's 3D Tiles?
My usecase is a virtual indoor cycling simulator. I need to call "orientToGeocoord(...)" at certain intervals and transform the whole tileset to keep the rider close to the origin of the coordinate system to prevent those "single precision floating point" artefacts.
Concerning the attribution data, I can make those adjustments putting the functionality behind a flag in the options and run it in "tileset3d.options.onTraversalComplete". I will update this PR accordingly :-)
My usecase is a virtual indoor cycling simulator. I need to call "orientToGeocoord(...)" at certain intervals and transform the whole tileset to keep the rider close to the origin of the coordinate system to prevent those "single precision floating point" artefacts.
I see! Interesting use case.
Concerning the attribution data, I can make those adjustments putting the functionality behind a flag in the options and run it in "tileset3d.options.onTraversalComplete". I will update this PR accordingly :-)
If you haven't already, I wrote earlier that I could make the changes. I checked your PR into this branch so I'm following up from there. I would also like to make the semantics of the transformation VS reset more clear.
@tobias74 Please check the latest changes to the dev
branch. They include your commits and my updates.
The function tileset.ellipsoid.cartographicToCartesian(...) takes latitude and longitude in degrees, so there should not be a conversion to radians. This function is also called (correctly) in orientToGeocoord(...) with latitude and longitude in degrees.