Dieterich Posted October 23, 2018 Share Posted October 23, 2018 It's not working here, what can be? PolygonMeshBuilder don't support the sideOrientation? or what I'm forgetting? In one side the texture must be showed, and another side this must be invisible.. I set this parameters: texturaTelhadoLateral.sideOrientation = BABYLON.Mesh.FRONTSIDE; texturaTelhadoLateral.backFaceCulling = true; http://www.babylonjs-playground.com/#EP2VT8#5 Quote Link to comment Share on other sites More sharing options...
JohnK Posted October 23, 2018 Share Posted October 23, 2018 The CreatePolygon method uses polygonMeshBuilder and allows the use of sideOrientation. Dieterich 1 Quote Link to comment Share on other sites More sharing options...
trevordev Posted October 23, 2018 Share Posted October 23, 2018 See http://www.babylonjs-playground.com/#EP2VT8#6, when you create it you are currently specifying depth which creates a top and bottom plane, if you dont set depth, you will only have one plane and it should work as you describe. Dieterich 1 Quote Link to comment Share on other sites More sharing options...
Dieterich Posted October 23, 2018 Author Share Posted October 23, 2018 Thanks a lot @trevordev! Great solve! 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.