NormalMapping

From Solid Graphics Wiki

(Difference between revisions)
Jump to: navigation, search
(New page: '''NormalMappping''' is a C++ ''enum'' defined in the SKL3D namespace. This is the enum's definition: typedef enum { ''NmNone'' = -1, ''Flat'' = 0, ''Smooth'', ''SmoothWithCreaseAng...)
Current revision (01:22, 26 September 2012) (edit) (undo)
 
Line 1: Line 1:
-
'''NormalMappping''' is a C++ ''enum'' defined in the [[SKL3D namespace]].
+
'''NormalMappping''' is a ''enum'' defined in the [[SKL3D namespace]] for C++ SolidKit Library code, and in [[SolidKit3D namespace]] in .NET SolidKit Library code.
This is the enum's definition:
This is the enum's definition:
typedef enum { ''NmNone'' = -1, ''Flat'' = 0, ''Smooth'', ''SmoothWithCreaseAngle'' } '''NormalMapping''';
typedef enum { ''NmNone'' = -1, ''Flat'' = 0, ''Smooth'', ''SmoothWithCreaseAngle'' } '''NormalMapping''';
 +
 +
== Remarks ==
 +
 +
The ''Flat'' shading is best suited for shapes with all sharp edges, such as cubes.
 +
 +
The ''Smooth'' shading is best suited for shapes without any sharp edges, such as spheres.
 +
 +
The ''SmoothWithCreaseAngle'' shading is best suited for shapes with both sharp edges and curved surfaces. <u>This type of shading is recommendeded to be used</u> since it gives good results for almost all shapes.
 +
 +
== See Also ==
 +
 +
*[[Shape::CalculateNormals]]
 +
*[[DrawSmoothCAShadedShape]]
 +
*[[DrawFlatShadedShape]]
 +
*[[DrawSmoothShadedShape]]

Current revision

NormalMappping is a enum defined in the SKL3D namespace for C++ SolidKit Library code, and in SolidKit3D namespace in .NET SolidKit Library code.

This is the enum's definition:

typedef enum { NmNone = -1, Flat = 0, Smooth, SmoothWithCreaseAngle } NormalMapping;

Remarks

The Flat shading is best suited for shapes with all sharp edges, such as cubes.

The Smooth shading is best suited for shapes without any sharp edges, such as spheres.

The SmoothWithCreaseAngle shading is best suited for shapes with both sharp edges and curved surfaces. This type of shading is recommendeded to be used since it gives good results for almost all shapes.

See Also

Personal tools