Lighting on .OBJ Model after import
Posted by Flows on Apr 13, 2011; 2:39pm
URL: https://forum.jogamp.org/Lighting-on-OBJ-Model-after-import-tp2816340.html
Hi all,
I am having a little bit of trouble with a program ive implemented. It loads the desired .obj model from the users directory and displays it on a canvas. The user can then rotate around the object, adjust the color of the lighting and add or remove textures.
However, when i load the model, the lighting is screwed. The whole object is the exact same shade of light, and changes when i move the object around (the whole object for example, changes from light to dark). There is no sense of 3D. When i draw an object with glut, the lighting is perfect.
Just wondering if this is reminiscent of a popular problem? I also cant apply textures, whereas i can with glut, using the exact same procedure.
Any help would be great! I can post my obj reader if you'd like.