// Persistence Of Vision raytracer version 3.1g isosurface patch with HyperFun // sample file. // This image contains an example of 'isosurface'. global_settings { assumed_gamma 2.2 } #include "colors.inc" #include "textures.inc" #include "shapes.inc" #include "glass.inc" #include "woods.inc" #include "whiteash.map" camera { up<0,1,0> right<-1.33,0,0> location <-27, 5, 27> direction <0, 0, 1.0> look_at <0,-15,-5> } light_source {<-50,50,50> color White } light_source {<0,60,0> color Pink } light_source {<40,50,30> color White } light_source {<20,-40,-10> color MediumSlateBlue } light_source {<-20,-40,-30> color Silver } background {color DarkSlateGray} #declare T11 = texture { T_Yellow_Glass } plane { y, -50 texture{ pigment { P_WoodGrain1A color_map { M_Wood1A } rotate x*85 } } finish { ambient 0.45 } } plane { z, -50 texture{ pigment { P_WoodGrain10A color_map { M_Wood8A } rotate x*85 } } finish { ambient 0.45 } } plane { x, 50 texture{ pigment { P_WoodGrain10B color_map {M_Wood3A } rotate x*85 } } finish { ambient 0.45 } } sky_sphere { pigment { gradient y color_map {[0, 1 color Gray20 color Gray80]} rotate x*30 } } isosurface{ function {"HyperFun", library "hyperfun","HF_program=tora.hf, HF_object=tora, x=1, y=2, z=3", <0,0,0,0>} bounded_by{ box {<-23, -23, -23>, <23, 23, 23>}} accuracy 0.05 sign -1 eval texture{T11 finish { diffuse 1 phong 0 phong_size 0 reflection 0 } } interior{I_Glass} translate <-2.5, -6, 0> }