//We are going to be using colors, textures, distances, and metals #include "colors.inc" #include "textures.inc" #include "distances.inc" #include "metals.inc" //create the bullet text #declare bullet_text = union { //top text #declare Title = "G.F.L." #declare CharCount = 1; #while (CharCount <= strlen(Title)) text { ttf "Geneva.ttf", substr(Title,CharCount,1), .07*centimeters, 0 scale <.05,.05,1> translate <0,.33*centimeters,0> rotate <0,0,-120*CharCount/strlen(Title)+60> } #declare CharCount = CharCount+1; #end //bottom text #declare Title = "4 0 S.W." #declare CharCount = 1; #while (CharCount <= strlen(Title)) text { ttf "Geneva.ttf", substr(Title,CharCount,1), .07*centimeters, 0 scale <.05,.05,1> translate <0,-.47*centimeters,0> rotate <0,0,110*CharCount/strlen(Title)-80> } #declare CharCount = CharCount+1; #end rotate <-90,0,0> } //create a bullet union { difference { //the basic bullet shape lathe { linear_spline 10, <0,2.1>*centimeters, <1.1/2,2.1>*centimeters, <1.1/2,.35>*centimeters, <.9/2,.2>*centimeters, <.9/2,.1>*centimeters, <1.1/2,.1>*centimeters, <1.1/2,0>*centimeters, <.5/2,0>*centimeters, <.48/2,.2>*centimeters, <0,.2>*centimeters } //hollow it out cylinder { <0,.39,0>*centimeters,<0,2.5,0>*centimeters, 1.08/2*centimeters } //stamp the text object { bullet_text translate <0,-.047,0>*centimeters texture { T_Brass_2A } } } //the dented silver primer button difference { //the silver button superellipsoid { <1,.1> rotate <90,0,0> scale <.05,.005,.05> translate <0,.024,0>*centimeters texture { T_Silver_3B } } //the dent sphere { <0,0,0>.059*centimeters scale <2,.5,1> translate <-.024,0,0>*centimeters texture { T_Silver_3A } } } texture { T_Brass_3A } translate <0,-1,0>*centimeters rotate <75,0,0> } //place the camera 4 centimeters back camera { location <0,0,-4>*centimeters look_at <0,0,0>*centimeters } //place the light_source 1 foot high and 2 feet back light_source { <0,1,-2> color White } //make the background white background { color White }