12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Visualization> 482 /* horizontal_size */> 730 /* vertical_size */Then encode and play:mpeg2encode mpeg2encode.par DAWN.mpgopen DAWN.mpg8.10.4. RayTracerX/control/verbose 2/vis/open RayTracerX 600x600-0+0# (Raytracer doesn't need a scene; smoother not to /vis/drawVolume.)/vis/viewer/reset/vis/viewer/set/style surface/vis/viewer/set/projection perspective 50 deg/control/alias phi 30/control/loop movie.loop theta 0 360 1where movie.loop is as above. This produces lots of jpeg files (but takes 3 days!!!). Then...make_mpeg2encode_parfile.sh g4RayTracer*jpegThen edit mpeg2encode.par to specify file type and size, etc.:$ diff mpeg2encode.par.orig mpeg2encode.par7c7< 1 /* input picture file <strong>for</strong>mat: 0=*.Y,*.U,*.V, 1=*.yuv, 2=*.ppm */---> 2 /* input picture file <strong>for</strong>mat: 0=*.Y,*.U,*.V, 1=*.yuv, 2=*.ppm */15,17c15,17< /* horizontal_size */< /* vertical_size */< 8 /* aspect_ratio_in<strong>for</strong>mation 1=square pel, 2=4:3, 3=16:9, 4=2.11:1 */---> 600 /* horizontal_size */> 600 /* vertical_size */> 1 /* aspect_ratio_in<strong>for</strong>mation 1=square pel, 2=4:3, 3=16:9, 4=2.11:1 */Then convert to ppm, encode and play:<strong>for</strong> i in g4*jpeg;do j=`basename $i .jpeg`; command="convert $i $j.ppm"; echo $command; $command; donempeg2encode mpeg2encode.par g4RayTracer.mpgopen g4RayTracer.mpg269

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!