Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

TeTE

Problem with ... normals?

This topic is 6303 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Look the picture at http://www4.uji.es/~al024870/misc/cube.jpg and you will see what''s my problem. It''s a cube with light and a green texture. I use vertex arrays with the vertices, the texture coordinates and the normals. All is read from an OBJ file. And the models are made with Nendo. What''s wrong? May be the normals? I think they are per vertex normals. I have tried more complex objects (airplanes, buildings). All look similar and no one is smooth even with GL_SMOOTH enabled.

Share this post


Link to post
Share on other sites
Advertisement
When you say that you enabled GL_SMOOTH did you do it with glEnable or with glShadeModel? glShadeModel would be the correct one.

If you already did this then the problem probably has to do with the normals you specify. Try specifying only one normal per quad (or one per triangle).

Jason A.
DelphiGL (http://delphigl.cfxweb.net)

Share this post


Link to post
Share on other sites
o Yes, I use glShadeModel.
o The vertices are in counter-clockwise order. And OpenGl is set accord to this.

The problem is that Nendo doesn''t saves the normals correctly. I have converted the files with another program and the objects are correctly illuminated.

But now I have another problem. All is tinted in blue!! I don''t use alpha and nor the light nor the materials have a great blue component. Any idea of what can be the error?

Thanks for all the replies!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!