News Overview SceneEngine Downloads VideoTutorials Main Page SourceForge Get Involved Bookmark and Share
See also :
Previous : Materials and Textures

NormalTexture

Contents


Image:NormalTexture.jpg

NormalTexture is a normal perturbation texture, a bump mapping texture, also known as Dot3 bump mapping. NormalTexture creates bump from sub-texture whose color range matches the normal map definition. The source for the normals in normal mapping is usually a multichannel image (x, y and z channels) derived from a set of more detailed versions of the objects. The values of each channel usually represent the xyz coordinates of the normal in the point corresponding to that texel.

SubTextures

NormalTexture has 2 textures as dependencies, normal_map and bump_map.

  • normal_texture : Texture. The texture that provides the normal map.
  • bump_texture : Texture. The texture that provides the bump map.

Attributes

  • use_normal : Boolean. If true, uses the normal texture for rendering.
  • normal_multiplier : Float. The normal multiplier value.
  • use_bump : Boolean. If true, uses the bump texture for rendering.
  • bump_multiplier : Float. The bump multiplier value.

CrackArt

NormalTexture can be created and applied from the Control Panel Materials Page.

Tutorials

Mayan Skull video tutorial

Lua script

The SceneEngine factory NormalTexture creates a new NormalTexture that can be linked to a material:

normals_bitmap_texture = sceng.BitmapTexture( { file_path="skull_normals.tga" } )
normal_texture = sceng.NormalTexture( { normal_texture=normals_bitmap_texture } )
shader_material = sceng.ShaderMaterial( { diffuse_color=gmt.Color(1,0,1), diffuse_texture=normal_texture, bump_texture=normal_texture } )

ScEngSDK

NormalTexture is implemented in the ScEngMaterials project, and is part of SceneEngine's core libraries.

Development Info

Known issues

Things to do

Add options to define the space (tangent or local) and the normal definition (green up, ...)

Views