Author Topic: External 3d imported object not shading  (Read 1787 times)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4350
    • View Profile
    • FUED
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?

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4350
    • View Profile
    • FUED
Re: External 3d imported object not shading
« Reply #1 on: 2015-Nov-27 »
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. :-[