Reference Frame Problem - Plane Sandcastle

1. A concise explanation of the problem you’re experiencing.

This is in regards to the Geometries - Plane Sandcastle located here:

When I copy the “red plane” code, for example, in my Cesium instance, the red plane appears to be lopsided.

See attached pictures. “Cesium.wrong” file image indicates what I see in my Cesium instance. “Cesium.right” file image indicates what I see in SandCastle.

I had tried to mess with the reference frames by adding the following parameter when adding the entity but it does not seem to work:

referenceFrame: Cesium.ReferenceFrame.INERTIAL


referenceFrame: Cesium.ReferenceFrame.FIXED

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

var redPlane = viewer.entities.add({

name : ‘Red plane with black outline’,

position: Cesium.Cartesian3.fromDegrees(-107.0, 40.0, 300000.0),

plane : {

plane : new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0.0),

dimensions : new Cesium.Cartesian2(400000.0, 300000.0),

material : Cesium.Color.RED.withAlpha(0.5),

outline : true,

outlineColor : Cesium.Color.BLACK



3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you’re using, your operating system and browser.

Cesium 1.42 ( I know, I need to upgrade…)

Windows 10

Chrome - Version 79.0.3945.117 (Official Build) (64-bit)

Can you try re-attaching the image or uploading it to imgur or a similar service? I don’t see an image attached to your post.

Entities don’t have a referenceFrame property, so setting that will have no effect.