ThomasAAB Posted December 5, 2018 Share Posted December 5, 2018 Hi, im having a problem with the material of a Ribbon Mesh when im in wireframe mode, it appears in black all. It should be modified because it is changing the color of the mesh with colorKing, heres an example but in my code all mesh is black. In the playground, if you take a look of the sides, it has color. In my example it doesnt Help me out ? https://playground.babylonjs.com/#HHV38I#1 Quote Link to comment Share on other sites More sharing options...
Guest Posted December 5, 2018 Share Posted December 5, 2018 Pinging @jerome Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 6, 2018 Share Posted December 6, 2018 Hi guys. Perhaps this ribbon needs to be "double-sided"? It is vertically zig-zaggy, so we are viewing top and bottom (front and back) of ribbon at same time. https://playground.babylonjs.com/#HHV38I#2 Line 59 ... sideOrientation: 3 (was 2). Ok, party on. jerome 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted December 6, 2018 Share Posted December 6, 2018 it's not black ... just added another point light at the cam position : https://playground.babylonjs.com/#HHV38I#3 same double-sided as suggested by Wingy : https://playground.babylonjs.com/#HHV38I#4 Wingnut 1 Quote Link to comment Share on other sites More sharing options...
ThomasAAB Posted December 8, 2018 Author Share Posted December 8, 2018 thank you very much, I solved it by putting map = BABYLON.MeshBuilder.CreateRibbon("m", {pathArray: paths, sideOrientation: 3}, scene); ?? Wingnut 1 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.