The back of triangle hasn't be rendered

Here is my code,
the front of triangle was rendered correctly,but the backside wasn’t, anyone knows why?

Thanks!

1 Like

@lzio

Thank you very much for sending over this sandcastle demo :grinning: Initially, the triangle appears.

Screenshot_20210816_063420

However, from my testing, I was able to confirm that the backside of the triangle was not rendering.

Screenshot_20210816_063516

I also noticed that once the backside of the triangle de-renderers, so does the front side. Did you also notice this behavior? What are your goals with this application?

-Sam

Thank you for your reply!
I want to render both sides of the triangle at the same time, what should i do?

@lzio

I recommend using a CZML Polygon to create a triangle. This method is fast, easy, and robust. Here is a link to the CZML Polygon documentation to get you started: Polygon · AnalyticalGraphicsInc/czml-writer Wiki · GitHub

There are also some cool demos on sandcastle that showcase some advanced CZML Polyugon functionality such as interpolation.

Be sure to check out the CZML tab in our Gallery on sandcastle.

-Sam