Whats wrong with this image?

When i use this image as texture of the plane and set plane.billmode = BABYLON.Mesh.BILLBOARDMODE_Y
The image will flip up and down.
use image from babylon website is normal
charge1
Part of my code:
var plane = new BABYLON.Mesh.CreatePlane(startCode + “msgPlane”+parentMesh.id,heightNum);
plane.parent = parentMesh;
plane.position.y = parentMesh.position.y + 15;
plane.billboardMode = BABYLON.Mesh.BILLBOARDMODE_Y;
// GUI
var advancedTexture = new GUI.AdvancedDynamicTexture.CreateForMesh(plane);
advancedTexture.hasAlpha = true;
var image = new GUI.Image(“but”, image);
image.width = 0.65;
image.height = 1;
advancedTexture.addControl(image);

@msDestiny14 I’m sorry to trouble you. Seems that you are very good at GUI. :blush:

Hi there best advice I can give is to create a playground so I can see exactly what is going on. (Not entirely sure)

In the meantime if you are looking to do billboarding here is a playground example of one with rotation. https://playground.babylonjs.com/#3D2GX1#2

Also not sure why you are using BILLBOARDMODE_Y instead of BILLBOARDMODE_ALL

2 Likes