home *** CD-ROM | disk | FTP | other *** search
- ? "===========================================================\n",
- " Display a goblet that has been texture mapped as wood and\n",
- " bump-mapped with worm trails (canals)\n",
- "===========================================================\n";
-
- WHITE : COLOR( RGB, [1.0, 1.0, 1.0] );
- DKGRAY : COLOR( RGB, [0.5, 0.5, 0.5] );
- BLUE : COLOR( RGB, [0.1, 0.0, 0.3] );
- GREEN : COLOR( RGB, [0.0, 0.2, 0.1] );
-
- DULL : SURFACE( SIMPLE, 1.0, 0.0, 0.0, 0 );
-
- ! ka kd ks n km kr ri kb
- SHINY : surface( PHONG, 0.4, 0.8, 0.9, 10.0, 0.0, 0.0, 0.0, 0.0, 0 );
- ROCK : surface( PHONG, 0.3, 1.0, 0.2, 8.0, 0.0, 0.0, 0.0, 0.0, 0 );
-
- canals : bumpmap( "canals.ilbm" );
- wood : texturemap( "wood.ilbm" );
-
- !-------------------------------------------------------------------
- !!
- !! Object to import...
- !!
- !-------------------------------------------------------------------
- tm1 : texture( plane, wood, [0,0,0], [0,0.5,1], [-1,0,0],
- 400,400,400, 3,2, SMOOTH3|REPEAT );
- bm1 : bump( sphere, canals, shiny, 3.0, [0,0,0],
- [0,0,1], [-1,0,0], 3,2, NEGATIVE|REPEAT );
-
- gob : import( "goblet1.bin", [0,0,-150], [30,30,30], [0,180,0], [1,1,1], 0 );
-
- gob.color[14] = tm1; ! replace yellow
-
- gob.surface[1] = bm1; ! replace glossy
-
-
- !-------------------------------------------------------------------
- !!
- !! Lighting...
- !!
- !-------------------------------------------------------------------
- star( [15000, -8000, 15000], [1.0, 1.0, 1.0], 1000 );
- star( [-5000, -2000, 2000], [0.8, 0.7, 0.7], 1000 );
- ambient( [0,0,10000], [0.3,0.3,0.3], [0,0,1], 0.0, 0.0 );
-
- !-------------------------------------------------------------------
- !!
- !! Ground and background...
- !!
- !-------------------------------------------------------------------
- background( PLAIN, [0.05, 0.1, 0.05] );
-
-
- !-------------------------------------------------------------------
- !!
- !! Camera stuff...
- !!
- !-------------------------------------------------------------------
- CAMERA'POS = [0,-800,200];
- CAMERA'TARGET = [0,0,-30];
-
- RENDER;
-
- end
-