PolygonMeshBuilder and BillboardMode

Hello everyone!
I’m not able to display a polygon created with PolygonMeshBuilder in BILLBOARDMODE_ALL.

Have a look at this PG: https://playground.babylonjs.com/#98Y3IY#2
Initially BillboardMode is set to BILLBOARDMODE_NONE and it displays correctly.
Now uncomment line 29 which sets BillboardMode to BILLBOARDMODE_ALL and the polygon disappears. If a plane instead of a polygon is used, BILLBOARDMODE_ALL is working as expected, uncomment lines 31-32 to see it working.
Any help appreciated!

I think the polygon is created in the xz plane, so you see on the edge when you set billboard = ALL.

Try to set a rotation:

1 Like

Hi @Evgeni_Popov, thanks so much for the quick reply and the explanation!

1 Like