WorldWideTelescope / sky-banana-party

See recent LIGO events on the sky; a simple demo of a bespoke WWT-based data-viz web app.
MIT License
0 stars 0 forks source link

Can't show filled polygon in Windows client #1

Closed qu123xxx closed 4 years ago

qu123xxx commented 4 years ago

Hi I'm trying to visualize the same dataset here in WWT Windows Client. However I can't get a color-filled area in Sky frame by using polygon(RA DEC) string. The result is same as use Linestring(RA DEC). image polygon(RA DEC) is available in sandbox

In this app it is shown like this image

Is there any way to achieve it?

I have search the code in these two repos find that the render method of polygon is different between windows client and web client whereas latter use some function in webGL SDK.

Thanks in advance for any replies.

qu123xxx commented 4 years ago

Well I use polygon achieved some filled area . But the raw data of Gravitational Wave seems have some holes in polygon. Some areas also have parts unfilled. Finally I use Linestring instead of polygon. And the --uside flag of ligo-skymap-contour may help to smooth the line .

astrojonathan commented 4 years ago

Winding order may has some effect on this. To fill your vertexes need to be in the correct clockwise or counter clockwise orientation so the normal points toward the camera, otherwise the face is culled.

qu123xxx commented 4 years ago

Thanks. I also considered this reason, I will try it when I have time~