How exactly does 3ds Max calculate vertex normals of a mesh?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Display Modes
  07 July 2018
How exactly does 3ds Max calculate vertex normals of a mesh?

Hi,
I'm trying to calculate smooth vertex normals of a triangular mesh and achieve EXACTLY the same result as Max does when setting all the faces to the same smoothing group (or Edit_Normal modifier with the Unify button with all normals selected). I thought it will be easy, just create an average vertex normal fromsurrounding faces normals, but looks like there are some differences in some cases and my shading isn't as smooth as when Max does it, see the pictures below:


 
  07 July 2018
I had a similar discussion some years ago for a .XSI exporter plugin I was re-working; the thread included code snippets that support both smoothing groups and the Edit Normals modifier. Search for it.
 
  07 July 2018
Max does an extra little step that prevents a lot of undesirable edge cases.

Not only does it average normals of adjacent faces for any given vertex, but it also weights each face normal by the angle of its edges that are adjacent to that vertex.

See here for an explanation of why (and the solution).
__________________
http://www.tysonibele.com
 
  07 July 2018
Great, that's exactly what I was looking for! Thank you.
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:38 AM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.