Advertisement

3ds and lighting

Started by October 16, 2003 10:30 PM
2 comments, last by tresspassor 21 years, 4 months ago
Hey, I''m having a problem, if I load a 3d model the lighting gets messed up. It is like the 3ds object is being assumed to be much larger then it really is, and is shading out everything beneath it. Since that doesn''t make much sense, here are some pictures. Scene without lighting and without 3ds model Scene with lighting and without 3ds model Scene without lighting and with 3ds model Scene with lighting and with 3ds model The model appears to take the lighting just fine, but the background has been rendered horribly. The wall is at full lighting, and the ground is almost void of lighting. I don''t want to waste anyone''s time, mainly I was hoping that this was an obvious error, if not I''ll rebuild and try again. Any help is appreciated.
Did you try scaling the model?

glScalef i believe it is...
Advertisement
Hmm that is odd.

I'm having lighting issues with my 3ds loader aswell. I havn't had any time in the last few weeks to trouble shoot.

Everything else is lighting fine, but my entire model is being lit all the same amount depending on the rotation of the camera. It's like the normals are all the same... I'll figure it out when I get time, but everything else lights fine 3ds files being used.

Did you make your own 3ds loader or borrow some code from some where?

EDIT: You don't want to use glScalef() for changing the size of your model as it messes up the normals (atleast thats what I remember from past experience).

[edited by - skow on October 17, 2003 1:42:54 AM]
update:

Found the problem. It has something to do with the way I built the feet models. The character model is composed of 16 different models (head, throat, chest, pelvis, right upper arm etc...). And, for whatever reason, when I take the 2 feet models out and render the scene it works fine.

I''m assuming some crazy file corruption. So I''ll just rebuild the feet!

This topic is closed to new replies.

Advertisement