#version 3.7; global_settings { assumed_gamma 1.4 } #declare Fast = yes; #declare rmconfig="RRmDmLmURmUmLm"; #declare rmconfigd="RvpRmDmLmURmUmLm"; //non corretto l'ultimo token, ma tanto non viene usato #include "colors.inc" #include "rm_rubiksmagic.inc" #declare RM_Decoration = RM_DecTileId; #declare RM_Partial = 0.15; object { RM_RubiksMagic(rmconfigd) translate -RM_HalfSize*x rotate -RM_Partial*90*z translate RM_HalfSize*x rotate 90*z rotate 180*x rotate -15*y translate RM_HalfThickness*y translate 3*RM_HalfSize*y translate -1.5*RM_Size*x } text {ttf "timrom.ttf" rmconfig 0.2, 0 pigment {Blue} finish { ambient .3 } translate 2*x translate 2*y rotate -40*y //no_shadow //rotate 90*x } text {ttf "timrom.ttf" "chair" 0.2, 0 pigment {Blue} finish { ambient .3 } translate 2*x translate 3*y rotate -40*y //no_shadow //rotate 90*x } camera { location <8, 7, -10>*3 // look_at 6.6/2-y*.4 look_at RM_Size*y angle 35 } light_source { <20, 30, -10>, 1 fade_distance 30 fade_power 2 #if(!Fast) area_light x*4, y*4, 16, 16 jitter adaptive 1 circular orient #end } light_source { <-20, 20, -15>, .5 fade_distance 30 fade_power 2 #if(!Fast) area_light x*4, y*4, 16, 16 jitter adaptive 1 circular orient #end } plane { y, 0 #if(Fast) pigment { rgb <1, .9, .7> } #else texture { average texture_map { #declare S = seed(0); #local ReflColor = .8*<1, .9, .7> + .2*<1,1,1>; #declare Ind = 0; #while(Ind < 20) [1 pigment { rgb <1, .9, .7> } normal { bumps .1 translate *100 scale .001 } finish { reflection { ReflColor*.1, ReflColor*.5 } } ] #declare Ind = Ind+1; #end } } #end }