Mekaboo Posted September 30, 2018 Share Posted September 30, 2018 Im having a problem lighting up my mesh that is in the file attachment..can anyone help me with this issue please? Trying to figure out what Im missing in my code. Thank ya kindly? Mekaboo index3.html Quote Link to comment Share on other sites More sharing options...
JohnK Posted September 30, 2018 Share Posted September 30, 2018 Hi @Mekaboo and welcome to the forum from me. It is always so much easier for someone to answer if you put your code in a playground, even if you have to simplify and use textures directly available to the playground rather than your own images. In your case it was very easy to copy from the code you provided the relevant section and paste in the playground. Just a quick change to the image references and anybody can now see there is a problem with the lighting. This time I have done it for you. https://www.babylonjs-playground.com/#I7LKJY What we need to know now is exactly how do you want the scene lit? Plenty of help with lights in the doc, Babylon 101 Lights is a good place to start. Mekaboo 1 Quote Link to comment Share on other sites More sharing options...
Mekaboo Posted September 30, 2018 Author Share Posted September 30, 2018 Good morning Sir @JohnK! I'm sorry I probably worded my message wrong..my issue was that the rotating mesh is too dark..I just want to make it lighter so that folks can see the logo on it. Thank ya for the info! ❤❤, Mekaboo PS: I've created PGs in the past and I have a hard time copy/paste code so I write my code manually..Im going to try to copy/paste again? Quote Link to comment Share on other sites More sharing options...
JohnK Posted September 30, 2018 Share Posted September 30, 2018 56 minutes ago, Mekaboo said: I'm sorry I probably worded my message wrong. Not wrong just not very specific. Try different variables in your light vector and try different types of light. Add two or three more lights. Experiment in the playground until you get what you want. Mekaboo 1 Quote Link to comment Share on other sites More sharing options...
Mekaboo Posted September 30, 2018 Author Share Posted September 30, 2018 Fantastic thank you?? Mekaboo 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.