DEFINITION    /* ALIAS SDL File Version 3.1 */

create shader  ( model = Blong , filename = "Blong.o" );
create texture  ( model = SChecker , filename = "SChecker.o");

    xleft  = 0;
    xright = 300;
    ylow   = 0;
    yhigh  = 300;
    aalevelmin  = 1;
    aalevelmax  = 2;
    aathreshold = 100.000000;
    aawidth     = 2;

    use_saved_geometry = FALSE;
    smallfeatures      = FALSE;

    up = zaxis;

    subdivision_recursion_limit = 2;
    max_reflections             = 3;
    max_refractions             = 3;
    max_shadow_level            = 3;
    preview_ray_trace           = FALSE;

light directionallight ( model = directional, active = TRUE,
    exclusive = FALSE,
    colour = (255.0, 255.0, 255.0),
    intensity = 1.0, shadow = FALSE,
    direction = (0.000000, 0.000000, -1.000000));

light ambientlight ( model = ambient, active = TRUE,
    exclusive = FALSE,
    colour = (100.0, 100.0, 100.0),
    ambient_shade = 0.500000);

triple camera#2_view(0.0, 0.0, 0.0);
triple camera#2_up(0.0, 0.0, 0.0);


shader DefaultShader ( model = Blong,
    diffuse = 0.8,
	shinyness = 30.0, 
    refractive_index = 10.0,
    color = (0.0, 0.0, 0.0),
    incandescence = texture( 
        procedure = SChecker,
        urepeat    = 8.0, vrepeat    = 8.0,
        threshold = 2.5,
        contrast = 1.0,
        color1 = (255.000015, 211.000015, 0.0),
        color2 = (0.0, 18.000002, 255.000015)
    ),
    transparency = 0.0,
    reflection_limit = 1,
    refraction_limit = 1,
    shadow_level_limit = 0,
    respect_reflection_map = FALSE,
    transparency_shade = 0.000000
);

patch sphere (
    udegree = 3, vdegree = 3,
    doublesided = FALSE, opposite = FALSE,
    subdivide = adaptive,
    divisions = (2, 4),
    curvature = 0.960000,
    shader = ( DefaultShader ),
    casts_shadow = TRUE,
    active = TRUE,
    uknots = ( 2.0      ,  2.0      ,  2.0      ,  3.0      ,  4.0      ,
                 5.0      ,  6.0      ,  6.0      ,  6.0      ),
    vknots = ( 0.0      ,  1.0      ,  2.0      ,  3.0      ,  4.0      ,
                 5.0      ,  6.0      ,  7.0      ,  8.0      ,  9.0      ,
                 10.0      ,  11.0      ,  12.0      ),
    cvs = (
            (cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.0      ,  0.5      ),  1.0      ) ),

            (cv(( 0.1023412, -0.1023412,  0.5      ),  1.0      ),
             cv(( 0.1447323,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.1023412,  0.1023412,  0.5      ),  1.0      ),
             cv(( 0.0      ,  0.1447323,  0.5      ),  1.0      ),
             cv((-0.1023412,  0.1023412,  0.5      ),  1.0      ),
             cv((-0.1447323,  0.0      ,  0.5      ),  1.0      ),
             cv((-0.1023412, -0.1023412,  0.5      ),  1.0      ),
             cv(( 0.0      , -0.1447323,  0.5      ),  1.0      ),
             cv(( 0.1023412, -0.1023412,  0.5      ),  1.0      ),
             cv(( 0.1447323,  0.0      ,  0.5      ),  1.0      ),
             cv(( 0.1023412,  0.1023412,  0.5      ),  1.0      ) ),

            (cv(( 0.3070236, -0.3070236,  0.3918058),  0.9999999),
             cv(( 0.4341969,  0.0      ,  0.3918058),  0.9999999),
             cv(( 0.3070236,  0.3070236,  0.3918058),  0.9999999),
             cv(( 0.0      ,  0.4341969,  0.3918058),  0.9999999),
             cv((-0.3070236,  0.3070236,  0.3918058),  0.9999999),
             cv((-0.4341969,  0.0      ,  0.3918058),  0.9999999),
             cv((-0.3070236, -0.3070236,  0.3918058),  0.9999999),
             cv(( 0.0      , -0.4341969,  0.3918058),  0.9999999),
             cv(( 0.3070235, -0.3070235,  0.3918058),  0.9999999),
             cv(( 0.4341968,  0.0      ,  0.3918058),  0.9999999),
             cv(( 0.3070235,  0.3070235,  0.3918058),  0.9999999) ),

            (cv(( 0.4341969, -0.4341969,  0.0      ),  1.0      ),
             cv(( 0.6140472,  0.0      ,  0.0      ),  1.0      ),
             cv(( 0.4341969,  0.4341969,  0.0      ),  1.0      ),
             cv(( 0.0      ,  0.6140472,  0.0      ),  1.0      ),
             cv((-0.4341969,  0.4341969,  0.0      ),  1.0      ),
             cv((-0.6140472,  0.0      ,  0.0      ),  1.0      ),
             cv((-0.4341969, -0.4341969,  0.0      ),  1.0      ),
             cv(( 0.0      , -0.6140471,  0.0      ),  1.0      ),
             cv(( 0.4341969, -0.4341969,  0.0      ),  1.0      ),
             cv(( 0.6140471,  0.0      ,  0.0      ),  1.0      ),
             cv(( 0.4341969,  0.4341969,  0.0      ),  1.0      ) ),

            (cv(( 0.3070236, -0.3070236, -0.3918058),  1.0      ),
             cv(( 0.4341969,  0.0      , -0.3918058),  1.0      ),
             cv(( 0.3070236,  0.3070236, -0.3918058),  1.0      ),
             cv(( 0.0      ,  0.4341969, -0.3918058),  1.0      ),
             cv((-0.3070235,  0.3070235, -0.3918058),  1.0      ),
             cv((-0.4341969,  0.0      , -0.3918058),  1.0      ),
             cv((-0.3070235, -0.3070235, -0.3918058),  1.0      ),
             cv(( 0.0      , -0.4341968, -0.3918058),  1.0      ),
             cv(( 0.3070235, -0.3070235, -0.3918058),  1.0      ),
             cv(( 0.4341968,  0.0      , -0.3918058),  1.0      ),
             cv(( 0.3070235,  0.3070235, -0.3918058),  1.0      ) ),

            (cv(( 0.1023412, -0.1023412, -0.5      ),  1.0      ),
             cv(( 0.1447323,  0.0      , -0.5      ),  1.0      ),
             cv(( 0.1023412,  0.1023412, -0.5      ),  1.0      ),
             cv(( 0.0      ,  0.1447323, -0.5      ),  1.0      ),
             cv((-0.1023412,  0.1023412, -0.5      ),  1.0      ),
             cv((-0.1447323,  0.0      , -0.5      ),  1.0      ),
             cv((-0.1023412, -0.1023412, -0.5      ),  1.0      ),
             cv(( 0.0      , -0.1447323, -0.5      ),  1.0      ),
             cv(( 0.1023412, -0.1023412, -0.5      ),  1.0      ),
             cv(( 0.1447323,  0.0      , -0.5      ),  1.0      ),
             cv(( 0.1023412,  0.1023412, -0.5      ),  1.0      ) ),

            (cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999),
             cv(( 0.0      ,  0.0      , -0.5      ),  0.9999999) )
    )
); /* end of patch sphere */

ENVIRONMENT
background = color(0.000000, 0.000000, 0.000000);

MODEL

{   /*   Start of directionallight   */
    rotate (zaxis, 45.0);
    rotate (xaxis, -135.0);
    instance directionallight();
}   /*   End of directionallight   */


{   /*   Start of ambientlight   */
    translate (0.0, -12.0, 0.0);
    instance ambientlight();
}   /*   End of ambientlight   */


{   /*   Start of sphere   */
    scale (7.0, 7.0, 7.0);
    instance sphere();
}   /*   End of sphere   */


{   /*   Start of Persp   */

    {   /*   Start of Persp_eye   */
        translate (1.988232, -11.275827, 5.097766);
        camera (
            active = TRUE,
            pix = "pix/BALL.Blong_SChecker",
            eye   = ( 0.0,  0.0,  0.0),
            view  = camera#2_view,
            up  = camera#2_up,
            fov = (40.0),
            viewport = (xleft, xright, ylow, yhigh),
            aspect   = ((xright-xleft)+1)/((yhigh-ylow)+1),
            near = 0.200000,
            far  = 200.000000,
            depth_of_field = FALSE,
            f_stop = 8,
            focal_length = 35,
            focal_distance = 10.0,
            units_to_feet = 1.0
        );

    }   /*   End of Persp_eye   */


    {   /*   Start of Persp_view   */
        translate (0.084606, -0.479822, 0.216926);
        camera#2_view = current_position( ( 0.0,  0.0,  0.0) );
    }   /*   End of Persp_view   */


    {   /*   Start of Persp_up   */
        translate (1.917603, -10.87527, 6.011312);
        camera#2_up = current_position( ( 0.0,  0.0,  0.0) );
    }   /*   End of Persp_up   */

}   /*   End of Persp   */


