Eye.inc contains a macro that generates a simple eyeball object which is quick to render, but provides control over things like eye colour, pupil size etc.
This macro uses Constructive Solid Geometry to define an object that can subsequenctly be transformed as required. A sample Pov file is provided to illustrate the macro and it's use.
To use the eye object in your scene file you need to include the Eye.inc file and call the macro. For example:
#include "Eye.inc"
object{Eye() rotate y*10 translate <0.1,0.2,0.3>}
|
|
Iris Control
The characteristics of the iris are controlled using 3 variables:
|
Eye_Colour |
1=Blue, 2=Brown, 3=Green |
|
Eye_Brightness |
Normally between 0.5 and 1 |
|
Eye_Pupil |
which controls how dilated or contracted the pupil is (Normally between 0.5 and 1.2) |
Eye Size
You can choose to set the size of the eye using the Eye_Radius variable or you can let it default to 1 and simply scale the resulting object.
Textures
To override the default external texture (the white bit) you can declare a texture called Eye_OuterTexture and, if you need to you can set an internal surface texture by declaring a texture called Eye_InnerTexture (which defaults to red).
|