ThomasAAB Posted November 14, 2018 Share Posted November 14, 2018 Im having a problem creating a type Ribbon mesh, the light is changing the colors that i assign with ColorKind, how could i solve this problem? I want the original colors of the mesh that im adding (not being modified by the light of the scene) In this example, the mesh is not type Ribbon. But shows the same problem, because the sphere color is yellow and it should be red/green. https://playground.babylonjs.com/#3HYA35. please help me. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2018 Share Posted November 14, 2018 Pinging @jerome Quote Link to comment Share on other sites More sharing options...
jerome Posted November 14, 2018 Share Posted November 14, 2018 As you said, this has nothing to do with ribbons... neither with spheres, but only with the way colors are valued : every rgb value is to be set in the range 0 .. 1 and not in the range 0 .. 255 like explained in the doc : https://doc.babylonjs.com/api/classes/babylon.color4#constructor So : https://playground.babylonjs.com/#3HYA35#1 Quote Link to comment Share on other sites More sharing options...
ThomasAAB Posted November 14, 2018 Author Share Posted November 14, 2018 thanks, that solved my problem.?? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2018 Share Posted November 14, 2018 Flagging as solved! 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.