Descriptions and Samples for the POV-Ray Raytracer by Friedrich A. Lohmüller
Français français
Deutsch Deutsch

layered textures textures

Surface Design by "texture"

How tho make your

own color and texture collection .

Attention: Don't add your own textures, colors and other objects to any of the standard include files! Otherwise they may be lost if we update to an new an better version of POV-Ray. We can add the to a new include file i.e.:

For an own include file we write our textures in a file like this:

// Povray include file Version 3.5 "MyTextures.inc"
// createted by ......
// ---------- own textures -----------
#declare Deep_Yellow = pigment{color rgb<1,0.65,0>}
#declare ClearWater = texture {Glass3
                               normal {ripples 0.5 scale 0.25 }}
// etc. ....
//--------------------------- end of our own textures ---------

This text file we save with the ending ".inc" in a subdirectory and we add a "library-path" in the file Povray.ini to this subdirectory,
i.e. "Library_Path=C:\Programme\POVRay\INCLUDE\inc".

For using of textures from "MyTextures.inc" we have to include this file just like the standard include files "colors.inc" and "textures.inc" :

// POV-Ray scene file Version 3.5 "My_Test.pov"
// createted by ......
#include "colors.inc"
#include "textures.inc"
#include "MyTextures.inc"
// start here with the scene descriptions     

sphere{<0,0,0>,0.5
       texture{pigment{color Deep_Yellow}
               finish {ambient 0.1 diffuse 0.9 phong 1}
               }// end of "texture"
      }// end of "sphere"
// ......

layered textures textures

© Friedrich A. Lohmüller, 2004
email email: (legacy email redacted)
homepage:www.f-lohmueller.de