Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
Design of Surfaces by "texture" with POV-Ray -
Deutsch Deutsch
Italiano Italiano
Français français

Home
- POV-Ray Tutorial
  Design of Surfaces
  - Colors and Textures
    Index

    texture Syntax
    Ready-made Textures
    Do-it-yourself Colors
    Patterns
    Patterns Lists
    Warps
    uv_mapping
    Mapping
    Superpositions

    > Your Own Textures
 
                                           

How to 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 these own objects to a new include file i.e.:

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

// POV-Ray 3,5 include file "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"
// ......
top

© Friedrich A. Lohmüller, 2010
www.f-lohmueller.de