-
Notifications
You must be signed in to change notification settings - Fork 3.5k
-
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
Polygon uvs are improperly computed #11767
Comments
Change In addition, if the |
Here is an example of creating a water material: sandcastle example @engineerhe Overall, this is not a bug. |
Certainly, thank you for your response and suggestions. I tried your method, and it works for drawing water bodies using GroundPrimitive. However, the issue persists when using Primitive. My requirement is not to have the water bodies attached to the terrain or 3D tiles, but rather to have the water bodies with their own height. Therefore, when drawing water bodies with Primitive, the same issue still exists. |
@ggetz |
I agree; That is what this issue is tracking. |
@engineerhe I don't believe this issue has been addressed. I'm going to go ahead and re-open to keep track. |
Closing as this was addressed in #11874. |
Specifically, the water material in the 1.103 version flickers a lot and does not show any ripples. The specific code is as follows.
`const viewer = new Viewer("cesiumContainer", {
terrain: Terrain.fromWorldTerrain()
});
Resource.fetchJson({
url: "sk.geojson"
}).then((res) => {
res.features.forEach((feature) => {
let primitive = new Primitive({
geometryInstances: new GeometryInstance({
geometry: new PolygonGeometry({
polygonHierarchy: new PolygonHierarchy(Cartesian3.fromDegreesArrayHeights(GeoJSONFormat.coordinate2LonLatHeight(feature))),
vertexFormat: EllipsoidSurfaceAppearance.VERTEX_FORMAT,
perPositionHeight: true
})
}),
appearance: new EllipsoidSurfaceAppearance({
material: new Material({
fabric: {
type: "Water",
uniforms: {
baseWaterColor: new Color(0.07, 0.20, 0.41, 1),
normalMap: "cesiumStatic/Assets/Textures/waterNormals.jpg",
frequency: 5000,
animationSpeed: 0.01,
amplitude: 100,
specularIntensity: 0.1
// fadeFactor: 0.2,
}
}
})
})
});
viewer.scene.primitives.add(primitive);
});
});
// Add Cesium OSM Buildings, a global 3D buildings layer.
const osmBuildingsTileset = await createOsmBuildingsAsync();
viewer.scene.primitives.add(osmBuildingsTileset);`
this is the sandcastle example,select the water material,you will see that.
sandcastle link
The text was updated successfully, but these errors were encountered: