-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Use physical values for voxel bounds #12592
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
Conversation
|
Thank you for the pull request, @jjhembd! ✅ We can confirm we have a CLA on file for you. |
ggetz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jjhembd! Besides the know TODO's, code is looking good so far. Let me know when you'd like a final review and merge.
|
Thanks for the review @ggetz! I think I addressed all your feedback and this is ready for another look. |
|
@jjhembd Testing this out, everything is working great in the "Voxels" example. It's much more intuitive controlling the bounds and clipping bounds with this change. I tried the "Voxels in 3D Tiles" example and modifying the clipping bounds all works as expected. However, for the "Bounds", adjusting any of the components seems to visually set that component to |
@ggetz The slider ranges for the "Bounds" are currently not adjusted in Long term I think we should make the bounds fixed. Adjustable bounds was implemented for debugging (I assume), but for a finished app, I think adjusting bounds is really a task for a model editor rather than a renderer. Would it make sense to remove the "Bounds" tracker from the |
This all tracks. Do you plan on removing those properties from the voxel inspector in this PR, or a follow-up? |
|
@ggetz sounds good, I just pushed a commit to remove the "Bounds" editor from |
|
Great, thanks @jjhembd! |
|
new Cesium.PostProcessStage fragmentShader use czm_globeDepthTexture has a question TypeError: Cannot read properties of undefined (reading '_target'),how I can do it |
|
@lrjcx Would you be able to include a Sandcastle example that replicates the issue? That would help us give us more context to determine the issue. Thanks! |
|
@ggetz |
|
@ggetz Sandcastle That's the current address, thank you。 When the camera moves to the sky, it will report an error. |
|
@lrjcx Thanks for the example! Could you please let us know how that is related to this PR? If it's not, could you please open a new issue, or ask a question on the Cesium Forum? |
Description
This PR changes the way we handle the bounds of a voxel dataset. Previously,
VoxelPrimitive.prototype.minBoundsandVoxelPrimitive.prototype.maxBoundswere defined in a "shape space", spanning nominal ranges such as [0..1], [-1.. 1], [-pi/2.. pi/2], or [-pi.. pi]. This was hard to document consistently, and inconsistent with the way bounds are defined in 3D Tiles.After this PR, the
minBoundsandmaxBoundsare physical values, consistent with what is defined in the tileset.json.Issue number and link
Resolves #12551.
Testing plan
Load the Voxels in 3D Tiles Sandcastle, and play with the clipping bounds. The extreme values of the sliders should represent the physical dimensions, and clipping should work normally.
Author checklist
CONTRIBUTORS.mdCHANGES.mdwith a short summary of my change