Skip to content
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

Extruded polygon disappear(clipped) at oblique camera view #7918

Closed
dhdbtkd opened this issue Jun 7, 2019 · 3 comments
Closed

Extruded polygon disappear(clipped) at oblique camera view #7918

dhdbtkd opened this issue Jun 7, 2019 · 3 comments

Comments

@dhdbtkd
Copy link

dhdbtkd commented Jun 7, 2019

bandicam 2019-06-07 19-43-59-311 mp4_000003816
bandicam 2019-06-07 19-45-13-023 mp4_000000366

I trying to simulate flood
i used entity for polygon and extruding this and material water
but Zoom in or oblique, extruded polygon disappear(clipped) partially
Both Chrome and Firefox are same
Is there any reported bug about this??
and what's the solution for this problem

this is my code for polygon

polygon = viewer.entities.add({
name : 'Water Polygon',
polygon : {
hierarchy : Cesium.Cartesian3.fromDegreesArray([129.114576532148, 35.180415714084134,
129.12028042633713, 35.180371289635005,
129.12198945638295, 35.17625045200848,
129.12508129548067, 35.17342526165849,
129.1253017622399,35.16468843450737,
129.11464306769273,35.16464005679386]),
extrudedHeight: 1.2,
material : new CustomMaterialProperty({
type : 'Water',
uniforms : {
normalMap: Cesium.buildModuleUrl('./Assets/Textures/waterNormals.jpg'),
frequency: 1000.0,
animationSpeed: 0.025,
amplitude: 10.0,
specularIntensity: 10,
baseWaterColor: new Cesium.Color(0.23, 0.46, 0.34),
blendColor: new Cesium.Color(0.23, 0.46, 0.34)
}
})
}})

@OmarShehata
Copy link
Contributor

I think this is the same issue as #6573. Can you confirm if the following line solves the issue for you?

viewer.scene.logarithmicDepthBuffer = false;

@dhdbtkd
Copy link
Author

dhdbtkd commented Jun 9, 2019

It's working!! Thank you!

@MapsRus
Copy link

MapsRus commented Oct 10, 2023

Hi Omar...did you happen to create an open repository for this project? It looks amazing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants