SET SPHERE MAPPING ON This command will apply a sphere map to the specified object.
Syntax
    SET SPHERE MAPPING ON Object Number, Image Number
Parameters
    Object Number
Integer The object number
    Image Number
Integer This texture number to use
Returns
This command does not return a value.
Description
A sphere map will give the impression of a reflective surface over the object. The image used for the sphere map is specially prepared to be used in concert with this command. The image is a fisheye spherical view of an entire scene placed in the center of the texture plate.
Example Code
    sync on : sync rate 60 : hide mouse:cls 0:color backdrop 0

    fog on:fog color 0:set ambient light 50

    ObjectNumber=2:ImageNumber=2

    load image "a.bmp",2:load image "b.bmp",3:load image "c.bmp",4

    load image "models\ast4.bmp",5:load image "sky\spacesphere.bmp",6:load image "bump.bmp",7

    load image "shade.bmp",8:load image "edge.bmp",9:load image "e.bmp",10

    load image "rainbow.tga",21

    load image "sky\am1.bmp",11:load image "sky\am2.bmp",12

    load image "sky\am3.bmp",13:load image "sky\am4.bmp",14

    load image "sky\am5.bmp",15:load image "sky\am6.bmp",16

    set global object creation 0

    rem Load asteroid model

    set dir "models"

    load object "ast4.x",ObjectNumber

    set object specular ObjectNumber,0

    rotate object ObjectNumber,270,0,0

    set dir ".."

    set sphere mapping on ObjectNumber,6

    while mouseclick()<>2

    if mouseclick()=1 then yrotate object ObjectNumber,wrapvalue(object angle y(ObjectNumber)+1)
See also
BASIC3D Commands Menu Index