jrdiard Posted February 17, 2018 Share Posted February 17, 2018 (edited) Are vertex colors and materials compatible? I've created a playground based on the custom mesh playground to illustrate the issue: http://www.babylonjs-playground.com/#VKBJN#160. If no material is attached, I get an interpolation of the colors over the triangle. If the material is attached to the mesh in line 42 the triangle is black and it appears to use only the colors of the material. My ultimate goal is to use a point cloud with vertex colors and a material. Thanks, Jess Edited February 18, 2018 by jrdiard Solvved Quote Link to comment Share on other sites More sharing options...
brianzinn Posted February 17, 2018 Share Posted February 17, 2018 I attached the material (line 42) and commented out the line where you disabled lighting: http://www.babylonjs-playground.com/#VKBJN#161 Seems to work... why do you want the lighting disabled? edit: Welcome to the forum!! good that you made a PG, it's really helpful for questions Wingnut 1 Quote Link to comment Share on other sites More sharing options...
jrdiard Posted February 18, 2018 Author Share Posted February 18, 2018 I want a point cloud that has a gradient of colors regardless of lighting. It looks like it will work with lighting enabled - http://www.babylonjs-playground.com/#VKBJN#162 . Thanks for the help - Jess brianzinn 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted February 18, 2018 Share Posted February 18, 2018 Great! There is a sticky thread for marking solved. Cheers. 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.