sparkbuzz Posted July 10, 2015 Share Posted July 10, 2015 I have a bit of a tricky one, at least for me... I'm trying to draw 4 points representing a vertex each, where each vertex is visualised as a small square plane. Billboard mode is set to BABYLON.Mesh.BILLBOARDMODE_ALL to keep these planes facing the camera. I'm also scaling the squares depending on the camera distance, to keep them a constant size in relation to the canvas size. I'm using an ArcRotateCamera, but as the camera goes higher up, the square billboards are rotating somewhat inward, so their edges aren't parallel to the edges of the canvas, and I would like to keep them perfectly parallel with the view. Does anyone know how I can achieve this? I tried setting billboard mode like so, as well:points[i].billboardMode = BABYLON.Mesh.BILLBOARDMODE_X | BABYLON.Mesh.BILLBOARDMODE_Z;but it doesn't appear that the billboard mode is working this way, the planes simply rotate once, and never again, after the camera position changes. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.