Jump to content
  • Advertisement
Sign in to follow this  
mike74

vertex normals

This topic is 4832 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

I'm creating a 3d rock by distorting a sphere with Perlin noise and taking the convex hull (http://www.coolgroups.com/lavarock), and I'd like to be able to use vertex normals and Gouraud shading. However, I don't know how to compute vertex normals for a distorted sphere. Any ideas on how I might do this?

Share this post


Link to post
Share on other sites
Advertisement
Well, distorting a sphere with perlin will probably not end up convex!

Computing vertex normals is pretty easy, just take a sum of the triangle normals which include the vertex, normalize and done! But I would try just straight flat-shaded normals first (then it's just take the cross-product of two edges of the triangle and normalize), and on rocks and stuff I think smooth shading looks really bad. Rocks have edges, duh! (probably a combination is best)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!