Thank you in advance for any help with this issue.
I'm using a polygon entity with a jpg material for testing. As you'll see in the SandCastle sample (link below) the material image looks correct only when the pitch angle is -90 or 90 (i.e. looking straight down or up), as soon as the pitch angle is >-90 and <90 then the material image starts to get "streched" vertically. When the pitch angle is 0 the image is so streched that you only see the image's red border).
Also when the yaw angle changes or the roll angle changes the image gets "distorted".
In the SandCastle example you'll be able to select different pre-defined yaw, pitch and roll angles to see the effects on the image (using the dropdown selection in the toolbar).
I also set the stRotation value but you'll see that for example if the Yaw=90, then I have to set stRotation to 90 for the image to be correct. I would've thought that stRotation should only apply to the roll angle.
What I was expecting to see is that the image always looks the same (i.e. how the actual jpg image looks like as seen when Yaw=0, Pitch=-90, Roll=0) but shown on the map at the specified Yaw, Pitch and Roll angles.
Am I approaching this correctly? Is this possible to do in the current version of Cesium? Is there another recommended way of doing this (a different entity type. I tried other ones (wall, rectangle, etc.) but polygon seem to be the only one that allows you to draw a rectangle at any yaw, pitch and roll angles). Perhaps I'm creating the polygon incorrectly?
Thank you very much,
Chrome: 63.0.3239.108 (Official Build) (64-bit)
Windows 10 (64-bit)