chicagobob123 Posted February 7, 2018 Share Posted February 7, 2018 Here is my playground. The TEXT and image compared to the size of the plane make no sense what so ever. https://www.babylonjs-playground.com/indexstable#ZI9AK7#191 How do you reconcile the 2? The text is minature. I know it can be done just no idea how. Maybe they can't be combined? If I make the plane smaller var plane = BABYLON.Mesh.CreatePlane("plane",0.5, scene); It makes the text even smaller. If you resize the plane var plane = BABYLON.MeshBuilder.CreatePlane("plane",{width:2, height:1}, scene); the text gets shorter It does not hold its aspect ratio. Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted February 7, 2018 Author Share Posted February 7, 2018 I am not sure what the relationship is between the plane and the AdvancedDynamicTexture is but sizing he texture alters the look and size of the rendered elements in the plane. https://www.babylonjs-playground.com/indexstable#ZI9AK7#207 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 8, 2018 Share Posted February 8, 2018 https://www.babylonjs-playground.com/indexstable#ZI9AK7#210 Better? I try to avoid using anything.top and anything.left. Instead... image.horizontalAlignment = 0; image.paddingLeft = "3px"; Lines 47/48. Those are better. text1.resizeToFit = true; text1.autoStretchWidth = false; I don't like those two lines, either... but... that's just me. Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted February 8, 2018 Author Share Posted February 8, 2018 Thank you.. Now about having 2 cameras? Or multiple Camera modes like Google Maps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.