I have sort of a strange question. I’ve written an ASE loader. Previously, I had been calculating my normals for each triangle. This worked fine. I’ve just modified my loader to read normal values which I export from MAX. When I use these values. My models
tend to appear strange.
For example:
If I load in a mountain range model (and I calculate the normals), then Rotate the scene with “glRotatef(rot,0,1,0);” the shading appears as if each part of the mountain range is “coming into the light” and “lights” up when it spins in front of me (I am looking at 0,0,0 where the model sits).
If I use MAX’s normal values, the shadows don’t change like this. It’s as if the model is sitting still and “I” am rotating around it. In other words, if one side of the mountain is dark, it will always remain dark with MAX’s normal values. With my normal values, the dark side will “light” up when it spins around to face me (and the previously lit side becomes dark)
So one way is like the model is rotating and the other appears as if I am rotating around the model. The only thing changed was the normal values.
I’m not sure if I actually have a problem (and if so, which one of the normal values I should use). Does anyone have a suggestion or even a comment on this. It’s just a bit strange to me is all, and I don’t know why it’s doing this. I wonder if it has something to do with the way my lights were set up in MAX perhaps?