Skip to main content
gamedev.net
🔒 Locked

Smooth shading

Started by Slug 4 replies 950+ views
Original Post
Slug
Slug
Did anybody know hot to do smooth shading in opengllike in 3ds max or othe 3d modeler have?
NLDEV
NLDEV
Look up glShadeModel. That should do what you want, though OpenGL defaults to smooth shading in the first place.

Many 3D Modeling packages use OpenGL, by the way.
Slug
Slug
ok thnx dude!
Slug
Slug
I tryied this out and, the edge are shaded but, what i wanna do is more like
chamfer the edge, how can i do that without changing the model data?
Kris2456
Kris2456
This has to be done with normals.

A normal - if u dont know - is a vector that is perpendicular to a face. This way a model has sharp edges, such as a cube. For a smooth effect, you need to position normals of the corners of faces, and then average them out.

I realise my explenation is crap, so here is an article i pulled up randomly:

Clicky

Good luck!
------------ "Here lies a toppled God,His fall was not a small one,We but built his pedastle,A narrow, and a tall one" Frank Herbert (Dune:Messiah)
Slug
Slug
Ok, i've know about normal, but i've never experimented much with them.
But thx, that was what i was asking for!

[Edited by - Slug on January 21, 2005 1:03:52 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.