////////////////////////////////////////////////////////////////////////////// // // By Avi Chami - January 2002 // This code is for use with POVRAY ray tracing 3d tool, // and models a AIM-9C Sidewinder AAM // Dimensions and colors were taken from // 'Fine Scale Modeler', November 2001 // // Look at the code for more comments // // For final rendering use 800X600 - AA // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // // Visit my site // // Games'n'Models - http://gnm5.tripod.com // // Use and distribute it freely - Please mention the source - Thanks // ////////////////////////////////////////////////////////////////////////////// #include "colors.inc" background{Cyan} camera { angle 20 location <10, 110, -360> look_at <35, 120, 900> } light_source { <60, 40, -40> color White} light_source { <-80, 20, -300> color White} // This is a model of an AIM-9C Sidewinder, // air to air missile // Aft stabilizer #declare aft_stabilizer = object { prism { linear_sweep linear_spline -0.2, // sweep the following shape from here ... 0.2, // ... up through here 3, // the number of points making up the shape ... <0,0>, <0,10>, <5,-1> pigment { White} } } // Back stabilizer #declare back_stabilizer1 = object { prism { linear_sweep linear_spline -0.2, // sweep the following shape from here ... 0.2, // ... up through here 4, // the number of points making up the shape ... <0,0>, <0,12>, <7,6>, <7,0> pigment { White} } } #declare back_stabilizer2 = object { prism { linear_sweep linear_spline -0.2, // sweep the following shape from here ... 0.2, // ... up through here 4, // the number of points making up the shape ... <0,12.2>, <0,19>, <7,13>, <7,6.2> pigment { White} } } #declare servo = object { prism { linear_sweep linear_spline -0.5, // sweep the following shape from here ... 0.5, // ... up through here 4, // the number of points making up the shape ... <5,0>, <5,4>, <7.5,3>, <7.5,0> pigment {Gray60} } } declare back_stabilizer = union { object { back_stabilizer1} object { back_stabilizer2} object { servo} } /*#declare back_stabilizer = object { prism { linear_sweep linear_spline 0, // sweep the following shape from here ... 0.5, // ... up through here 4, // the number of points making up the shape ... <0,0>, <0,19>, <7,13>, <7,0> pigment { White} } } */ #declare missile = union { // The main body of the missile is a tube, with several // rings of colour cylinder { <0,0,0>, <0,0,52>, 2 pigment {White} } cylinder { <0,0,52>, <0,0,52.1>, 2 pigment {Black} } cylinder { <0,0,52.1>, <0,0,53.5>, 2 pigment {Red} } cylinder { <0,0,53.5>, <0,0,53.6>, 2 pigment {Black} } cylinder { <0,0,53.6>, <0,0,57.5>, 2 pigment {White} } cylinder { <0,0,57.5>, <0,0,57.6>, 2 pigment {Black} } cylinder { <0,0,57.6>, <0,0,59>, 2 pigment {Yellow} } cylinder { <0,0,59>, <0,0,59.1>, 2 pigment {Black} } cylinder { <0,0,59>, <0,0,66>, 2 pigment {White} } cylinder { <0,0,66>, <0,0,66.1>, 2 pigment {Black} } cylinder { <0,0,66.1>, <0,0,71>, 2 pigment {Gray} } cylinder { <0,0,71>, <0,0,71.1>, 2 pigment {Black} } cylinder { <0,0,71.1>, <0,0,95>, 2 pigment {White} } // Missile head cylinder { <0,0,95>, <0,0,95.1>, 2 pigment {Black} } sphere { <0,0,95.1>, 2 pigment {White} } // Four aft stabilizers object { aft_stabilizer rotate z*90 translate <0, 2.2, 73> } object { aft_stabilizer rotate -z*90 translate <0, -2.2, 73> } object { aft_stabilizer translate <2.2, 0, 73> } object { aft_stabilizer rotate z*180 translate <-2.2, 0, 73> } // Four aft stabilizers object { back_stabilizer rotate z*90 translate <0, 2.2, 1.5> } object { back_stabilizer rotate -z*90 translate <0, -2.2, 1.5> } object { back_stabilizer translate <2.2, 0, 1.5> } object { back_stabilizer rotate z*180 translate <-2.2, 0, 1.5> } } // Now I show the missile 'rotating' at several angles object { missile rotate <170,-10,215> translate 120*y } object { missile rotate <170,-10,215> translate 140*y translate 50*x } object { missile rotate 90*y rotate 30*x translate 80*y translate -30*x }
Make your own free website on Tripod.com