ConnorsFan Posted January 7, 2016 Share Posted January 7, 2016 Hi, Is it possible to get a matte surface? If I set a diffuseColor for a StandardMaterial, it is glossy. Thanks! Quote Link to comment Share on other sites More sharing options...
ConnorsFan Posted January 7, 2016 Author Share Posted January 7, 2016 I found one trick that works: setting the normal vector (nx, ny, nz) in the plane of the surface instead of... normal to it. Is it an acceptable solution or is there a more elegant way? Quote Link to comment Share on other sites More sharing options...
iiceman Posted January 7, 2016 Share Posted January 7, 2016 Hi ConnorsFan and welcome to the forum! Do you know about the playground? --> http://www.babylonjs-playground.com/ If you have a problem try to recreate it there. People can help you fast and work directly with the code. About you problem: have you tried changing the specular color of the material? Here is what I mean: http://www.babylonjs-playground.com/#K0ND3#0 Quote Link to comment Share on other sites More sharing options...
ConnorsFan Posted January 7, 2016 Author Share Posted January 7, 2016 Hi iiceman, You got it! I had tried setting the specularColor to null previously, with bad results (as you can imagine). Setting it to "Black" (0, 0, 0) did the trick. Thanks a lot! P.S. If you have an account on StackOverflow, you can earn some points by answering my question there. Quote Link to comment Share on other sites More sharing options...
iiceman Posted January 7, 2016 Share Posted January 7, 2016 Cool, glad I could help! I did post the answer on stackoverflow..never answered anything there, always just looking for answers over there... kinda exciting actually posting something By the way: if you have babylon related question this forum is the place to go, you will probably get a lot more, faster and better answers here than at stack overflow (just a personal opinion ) Quote Link to comment Share on other sites More sharing options...
ConnorsFan Posted January 7, 2016 Author Share Posted January 7, 2016 Yeah, that's what happened yesterday, I will remember to come here first. Going to StackOverflow is a habit for me. It is the place where I usually ask my questions about programming but I noted that the babylonjs tag is not very popular over there. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted January 7, 2016 Share Posted January 7, 2016 Hey, we now have our first BJS related questions on stackoverflow!!Good indicator that BJS starts to become really popular! Champagne, guys! jerome 1 Quote Link to comment Share on other sites More sharing options...
iiceman Posted January 8, 2016 Share Posted January 8, 2016 I don't understand why somebody down voted my answer... they are mean over there! Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted January 8, 2016 Share Posted January 8, 2016 Because you don't describe the solution, you only provided a link, and a link can be broken one day (we know that a link to a PG is convenient for BJS talk, but they don't). Quote Link to comment Share on other sites More sharing options...
iiceman Posted January 8, 2016 Share Posted January 8, 2016 Well, I kinda disagree, I described the solution... in words... "you have to darken the specular color". Since the question was not "how do I darken the specular color I think that I answered the question. The playground is just to illustrate it. Anways, I already edited the solution when I saw the down vote and it's no big deal, but it's kinda discouraging getting a down vote... for a right answer... on my first post ever... without a chance to correct the "mistake". I should stop my whining Quote Link to comment Share on other sites More sharing options...
ConnorsFan Posted January 8, 2016 Author Share Posted January 8, 2016 iiceman : I agree with you. Your first post was simple but gave me the solution right away. I will let the "downvoter" correct himself before upvoting your answer on StackOverflow. Quote Link to comment Share on other sites More sharing options...
chg Posted January 8, 2016 Share Posted January 8, 2016 I don't understand why somebody down voted my answer... they are mean over there! He/she set your answer as "Recommend deletion" http://stackoverflow.com/review/low-quality-posts/10806993 But yeah, SO seems to have a weird thing against any links in answers Quote Link to comment Share on other sites More sharing options...
iiceman Posted January 8, 2016 Share Posted January 8, 2016 It's like a jungle over there! I better stick around here, where it is nice and peaceful Temechon 1 Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted January 8, 2016 Share Posted January 8, 2016 It's like a jungle over there! I better stick around here, where it is nice and peaceful :lol: 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.