Sign in to follow this  
hexgear

Flat Shaded Meshes

Recommended Posts

Hey, i got a problem with shading. Even though i set the render state of my 3D device to the gouraud shade mode all my loaded x-file meshes have a kind of flat shading but i want them smooth. Check out the link below for a picture of what i mean: http://www.posergallery.com/wip/20050209-hexgear-212.241.231.70.jpg The custom ground object (created from scratch not loaded) shades fine but the loaded x-file sphere doesn't, any ideas on how to solve this problem? By the way i'm using the DirectX 8.1 SDK.

Share this post


Link to post
Share on other sites
Look into the model's normals. I think you'll find that they are all perpendicular to the triangles' faces. What you need are normals that are averaged by the faces around them....
Err.. I hope that made sense.
Steele.

Here is a link to an example of what I mean :

Here

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this