'Tiny' 3D Problem
I created a 3D engine for a game I'm making, but I have a little problem. I think the problem has to do with the lighting, but I'm not sure. I was wondering if someone could help me out. :)
An image says a thousand words... so I attached an image explaining the problem. The left barbell, the correct one, is imported from a working OBJ importer I found. The one on the right is from my own loader, based on the working one.
As I said, I think the problem has to do with the lighting, but I'm not sure... Anyone help, please? :)
Looks like your light source is pointed in the wrong direction and you need to up the polygon count.
The polycount is for both models exactly the same (280). If I set the light exactly the same the green 'sphere' ends up as white & the front is as it should be, the back is black, & the sides as you can see on the pic :\
Did some 'research'. Good news & bad news (4 me): it is definitely the light that's causing all polys to be so... dumb.
I attached a picture to this post that shows it rendered without light, and the correct colors.
Any suggestions? I'm currently checking out if the correct colors, position & direction are used. Btw, is it also possible there's a bug in the material? There's definitely one in the light, but maybe also in the material?