-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
ClippingPlaneCollection bug #8181
Comments
@simonasdmd thanks for uploading your sample data. Can you please provide a Sandcastle example we can run that has the clipping plane set up to reproduce this? From the screenshots you posted it looks like the clipping plane is behaving the same way in both of them, but that the attached plane entity doesn't match up with that's being clipped in the first case, potentially due to #6573, which you can confirm by turning off the logarithmic depth buffer option on the scene. |
Can you please provide a Sandcastle example we can run that has the clipping plane set up to reproduce this? You can click the "share" button in Sandcastle and paste the link here. |
Well. But maybe it's because of the network problem (I'm in China). Clicking "share" may not work. I clicked "save" to produce an HTML file. html file: |
I came up with a way. You click here. Then put test1 and test2 in the corresponding directory. Then replace the url. That's all right. Just in case. I copied the code of js. You can use it. |
Thanks for sharing the Sandcastle @simonasdmd. The links work fine for me. I think the issue here is that the model itself is offset from the center inside the b3dm. You can see in this simpler Sandcastle link that the clipping plane need a distance of about -2276 to start having an effect. So you would either need to offset the vertices of the model when creating your b3dm, or account for this offset by shifting the clipping plane's model matrix (or just adding this additional distance when using your clipping plane). I'm closing this since I don't think it's a CesiumJS bug, but feel free to follow up here if you're still having trouble. |
hi~ |
@OmarShehata This question is very important to me. Can you help me? |
@simonasdmd can you try uploading your model to Cesium ion and convert to 3D Tiles that way? This will verify whether the issue is with the offset in the geometry coordinates. |
@OmarShehata @shunter I will attach my obj file and my 3dtiles file. |
@simonasdmd is this a different version from the earlier tileset? What changed? Have you tried uploading the source data on Cesium ion to see if the clipping planes work correctly for that? |
@OmarShehata I am in China and I see you in France. We have six hours'jet lag, which makes it difficult for us to communicate synchronously. You can process data in your way. Is the problem still there? Source data (objfile) has been provided. In my opinion. The bounding box's scope and center point are correct and should not have this problem, because it has described the scope of a model. I think there are several directions to confirm now:
I hope we can work together to solve this problem. As far as I know, many people have encountered this problem. Plant trees for the benefit of posterity. Thank you again for your help, my international friend. Thank you. |
@simonasdmd I think I can reproduce what you're seeing with clipping on the Z axis in this Sandcastle. Clipping on X or Y, distance = 0 cuts through the center of the model. On Z, it seems the 0 is at the bottom of the model, whereas I would expect it to be through the center. I will investigate a bit to see where this unexpected height difference may be coming from. |
@OmarShehata |
@OmarShehata |
@OmarShehata |
@OmarShehata |
@simonasdmd I'm still planning on taking a look hopefully sometime this week. |
@OmarShehata Hello, is there any progress?I still can't solve this problem |
@OmarShehata hi... |
@OmarShehata This problem is too difficult. You can't solve the problem? |
@OmarShehata should this be re-opened or not, you mentioned you would look into it but never followed up. |
@mramato Hello, sir. Can you help me with this?I tried a lot and it didn't work out. |
Sandcastle example:
Why does the same data use ClippingPlaneCollection produce different results? I want to know the difference between two pieces of data that can be loaded successfully. Tell me whether it's the b3dm file or tileset. json.
test1:
test2:
Browser:chrome
Operating System:windows 10
datas:
test1.zip
test2.zip
The text was updated successfully, but these errors were encountered: