CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
921 stars 295 forks source link

Customize material for change default texture (flashes white blicking) #1382

Closed Meybiz closed 6 months ago

Meybiz commented 6 months ago

Hey, everybody. I'm creating an Entity Plane and I'm adding
ImageMaterialProperty. When I update the position, the white background flashes. How can I access the original texture and change it?

cesium.viewer.entities.add({ name: "Red plane with black outline", position: new Cesium.Cartesian3.fromDegrees(-107.0, 40.0, 300000.0), plane: { plane: new Cesium.Plane(Cesium.Cartesian3.UNIT_Z, 0.0), material: new Cesium.ImageMaterialProperty({ image: './logo512.png', transparent: true, }), dimensions: new Cesium.Cartesian2(60000.0, 61000.0) } });

csciguy8 commented 6 months ago

Hi @Meybiz , this is a great question for the forum. https://community.cesium.com/c/cesium-for-unreal/10

Can you ask your question there? (if you search, it may have already been answered)

Thanks!

j9liu commented 6 months ago

@Meybiz that looks like a CesiumJS question, so please post in the CesiumJS category instead. Thank you!