I am new to Babylon. Till beginning this week I did develop my application in parallel, Babylon and Three.js to find out which fits better for me.
Seems I stick to Babylon.js becasue it is more easy. I am also new to JavaScript (1/2 year), did write C and Assemblr the last 30 years
I am making a software to design buildings with pre-defined blocks. The 2D floorplan I draw with papers.js.
I am already drawing the walls, and can add doors with double click in Babylon.js
But the doubleclick is just for test, especially the link between papers.js and Babylon. All works well.
There should be more functions than adding a simple door to a wall element. Like adding winddows or adding terracedoor which is different from normal door…and so on.
I thought about a kind of menu/icons ON the walls, which appear when mous hover on elements where such funcins are possible.
I did find Babylon GUI Elements like Button3D, HolographicButton and seems some more. They would basically exactly do what I want.
But all of this buttons or icons have a HUGE margin/padding.
I did not find any way to remove this margins.
It is the same for icon buttons and for text buttons.
My applicatin needs Papers.js, and a mySql Database. Therefore would be hard to post my code on the playground.
If you mean with “margin” and “padding” the width and height of the button here is an other topic with a solution to this problem - a bit of hack is needed: