Understanding Entity's `orientation` property

1,724 views
Skip to first unread message

Nathan Schulte

unread,
Jul 24, 2015, 4:33:13 PM7/24/15
to cesiu...@googlegroups.com
I've been playing with Entities and orientation lately, and I have what
I believe is a simple question.

I've modified the Interpolation example to draw the "basis" of the
Entity as "long" light red, blue and green lines from the entity's
position. As well, I modified it to draw "short" lines along the x, y
and z axis. Finally, I've added a button to toggle the orientation
property of the entity on and off (the calculated value and undefined).

I've attached an capture of the modified example. [1] First, I toggle
(on, off, on) drawing the reference frame for the Entity's primitive.
These match the basis (the "long" lines, that they align with in the
demo), but when I toggle the orientation property off (you see the
airplane change orientation), they don't match the drawn X, Y and Z
vectors (you can see the reference frame no longer aligns).

Is the default orientation for an Entity (Primitive) not the identity
rotation? I must be missing something as this is not what I was
expecting. Is the orientation not referenced against the ECF frame?
Could someone explain to me how this is working?

Thanks!

--

Interpolation Cesium Sandcastle example:

http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Interpolation.html&label=Showcases

Hosted capture:

http://giant.gfycat.com/SameDiscreteAdmiralbutterfly.gif

--
Nate

cap.gif

Scott Hunter

unread,
Jul 24, 2015, 4:53:28 PM7/24/15
to cesiu...@googlegroups.com



--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nmsc...@gmail.com

unread,
Jul 24, 2015, 7:11:01 PM7/24/15
to cesium-dev, para...@gmail.com
On Friday, July 24, 2015 at 3:53:28 PM UTC-5, Scott Hunter wrote:
> The default orientation on an entity when undefined is East-North-Up.

Thanks for the links, Scott. I added a GridImageryProvider to the globe so I could get a better sense for the center of the Earth, and it made everything very clear. This is with the "identity rotation" as the orientation of the Entity (that is, no rotation), and it's plainly visible that orientation is referenced against the earth-centered/earth-fixed frame; the X and Y axes (green and red) enters and exit at the same latitude.

http://oi58.tinypic.com/2u4oppk.jpg

Reply all
Reply to author
Forward
0 new messages