External 3d imported object not shading

Previous topic - Next topic

erico

Like the title said, whenever I import an obj into GLB (with the built ddd converter) I get it shaded like 100% luminosity and 0% diffuse (as in a 3d package), so it is always fully lit no matter what and it dosen´t get affected by any light at all.
Am I missing something?

You can test it with the project I uploaded here:
http://www.glbasic.com/forum/index.php?topic=10525.30

It is the GLB3D.zip file.
Just turn off the fog as I used that to give a sense of shading.

PS: Is there a way I can link to that file without having to re-upload it?

erico

Never mind this, I just found out that the lights should be called before drawing the objects, so it gets shaded, duh.
I will leave this post here in case someone stumbles into similar thing. All is fine. :-[