Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


how to make GL_SMOTH work


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Jesper T   Members   -  Reputation: 322

Like
Likes
Like

Posted 23 July 2001 - 12:06 AM

Im having trouble getting the textures of an object smooth (look at screenshots here http://home.online.no/~7396/delta/ ) I have the glShadeModel(GL_SMOOTH); in the initialising function and draw the object using GL_QUADS with normal vectors in a loop. (where I get all the values from some code I put together to make curved looking objects.) Im also wondering if it is possible to make the light beeing calculated from the angle to the normal vector only. Since the larger the quad is, the longer the normal vector gets and then it gets too bright compared to other smaller quads facing the same direction. Thanks for any help

Sponsor:

#2 Seaman   Members   -  Reputation: 122

Like
Likes
Like

Posted 23 July 2001 - 12:25 AM

Cant be sure but are those per face normals rather than per vertex? if so that will solve your problem by changing it to pervertex.
I''m not quite sure I understand your other question about the lighting getting brighter but from what you wrote, I understand it as that you''r not normallising your normals, all normals for lighting in openGL should be normalised/unit vectors or whateverr you want to call them, you should ideally do this yourself though you can make gl do it for you but at a performance cost( glEnable(GL_NORMALISE); or something similar but I dont recomend doing it this way, do it yourself is the better way in most situations I belive.

Hope thats some help.

#3 Jesper T   Members   -  Reputation: 322

Like
Likes
Like

Posted 23 July 2001 - 12:52 AM

yep, the normals is per face, ill try making one per vertex, thanks

#4 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 23 July 2001 - 12:53 AM

...on nvidia geforce GL_NORMALIZE have zero performance penalty...




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS