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

NoiseTexture

Contents


Image:NoiseTexture.jpg

NoiseTexture implements Perlin noise for both color and normal perturbation -bump-.

SubTextures

NoiseTexture has 2 textures as dependencies, color_1 and color_2.

  • texture_1 : Texture. The texture that replaces color_1.
  • texture_2 : Texture. The texture that replaces color_2.

Attributes

  • type : Integer. The noise type to use.
  • size : Float. The size of the noise.
  • phase : Float. The phase.
  • levels : Float. The levels.
  • low_threshold : Float. The low threshold.
  • high_threshold : Float. The high threshold.
  • color_1 : Color. The first color of the texture.
  • color_2 : Color. The second color of the texture.
  • texture_1_on : Bool. If True, uses the texture_1.
  • texture_2_on : Bool. If True, uses the texture_2.

CrackArt

NoiseTexture is accesible by the Blocks Tree, and it's GUI is also implemented in MaterialsGUI.

Image:Crackart_textures_noise.jpg

Mini Tutorial

Noise Texture mini tutorial

Lua script

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

-- Create the NoiseTexture
noise_texture = sceng.NoiseTexture( { size=3.0, color_1=gmt.Color(1,0,0) } )
noise_texture:Set( "color_2", gmt.Color(0,1,1) )
 
-- Create the ShaderMaterial
shader_material = sceng.ShaderMaterial( { diffuse_color=gmt.Color(0.5,0.5,0.5), diffuse_texture=noise_texture } )

ScEngSDK

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

Development Info

Known issues

Things to do

Experiment with a noise library like Noise++ or libnoise.

Implement fractal noise and turbulence.

Views