diff --git a/sw/simulator/scilab/q3d/povray/Makefile b/sw/simulator/scilab/q3d/povray/Makefile new file mode 100644 index 0000000000..48e70b6cc0 --- /dev/null +++ b/sw/simulator/scilab/q3d/povray/Makefile @@ -0,0 +1,2 @@ +clean: + rm -f *~ foo*.png test.avi q3d.pov \ No newline at end of file diff --git a/sw/simulator/scilab/q3d/povray/q3d.inc b/sw/simulator/scilab/q3d/povray/q3d.inc new file mode 100644 index 0000000000..d9c3e57af8 --- /dev/null +++ b/sw/simulator/scilab/q3d/povray/q3d.inc @@ -0,0 +1,78 @@ + +//POVRay include files +#include "arrays.inc" +#include "chars.inc" +#include "colors.inc" +#include "finish.inc" +#include "glass.inc" +#include "golds.inc" +#include "math.inc" +#include "metals.inc" +#include "rand.inc" +#include "shapes.inc" +#include "shapes2.inc" +#include "shapesq.inc" +#include "skies.inc" +#include "stoneold.inc" +#include "stones.inc" +#include "stones1.inc" +#include "stones2.inc" +#include "strings.inc" +#include "textures.inc" +#include "transforms.inc" + + +#macro Q3D() +union { + box{<-250,-10,-10><250,10,10> texture{pigment{Red}}} + cylinder{<-250,10,0><-250,15,0> 125 texture{pigment{Green}}} + cylinder{<250,10,0><250,15,0> 125 texture{pigment{Green}}} + + box{<-10,-10,-250><10,10,250> texture{pigment{Red}}} + cylinder{<0,10,-250><0,15,-250> 125 texture{pigment{Green}}} + cylinder{<0,10, 250><0,15, 250> 125 texture{pigment{Green}}} + +} +#end + +#declare cam_x = 0; +#declare cam_y = 5000; +#declare cam_z = 20000; + +#declare cam_look_x = 0; +#declare cam_look_y = 0; +#declare cam_look_z = 0; + +//#declare cam_a = 32; +#declare cam_a = 10; + +camera +{ + location + look_at + angle cam_a +} + +#local lgt1_pos_x = 340; +#local lgt1_pos_y = 510; +#local lgt1_pos_z = 260; +#local lgt1_intense = 0.763488; +#local lgt2_pos_x = -340; +#local lgt2_pos_y = 510; +#local lgt2_pos_z = 260; +#local lgt2_intense = 0.763488; +#local lgt3_pos_x = 340; +#local lgt3_pos_y = 510; +#local lgt3_pos_z = -170; +#local lgt3_intense = 0.763488; +#local lgt4_pos_x = -340; +#local lgt4_pos_y = 510; +#local lgt4_pos_z = -170; +#local lgt4_intense = 0.763488; + +light_source{ White*lgt1_intense} +light_source{ White*lgt2_intense} +light_source{ White*lgt3_intense} +light_source{ White*lgt4_intense} + +background{Gray50} \ No newline at end of file diff --git a/sw/simulator/scilab/q3d/q3d_povray.sci b/sw/simulator/scilab/q3d/q3d_povray.sci new file mode 100644 index 0000000000..dea28bf0cd --- /dev/null +++ b/sw/simulator/scilab/q3d/q3d_povray.sci @@ -0,0 +1,31 @@ + +function povray_draw( time, diff_flat_ref ) + + dt_display = 1/25; + + t_idx = 1; + f_idx = 1; + t = time(t_idx); + while (t_idx}",alpha,x,y); + mclose(fid); + cmd = sprintf('povray povray/q3d.pov +Opovray/foo%04d.png Display=false +W800 +H600 +Q9 +A0.3 +R5', f_idx); + a = unix_g(cmd); + while (t_idx