POV-Ray : Newsgroups : povray.general : Several views of the same model : Re: Several views of the same model Server Time
31 Jul 2024 22:09:25 EDT (-0400)
  Re: Several views of the same model  
From: Tim Attwood
Date: 30 Jul 2006 16:00:43
Message: <44cd0feb$1@news.povray.org>
"nomail" <nomail@nomail> wrote in message 
news:web.44cc78496c8173dd4c8475090@news.povray.org...
> "Shark" <nomail@nomail> wrote:
>> Let's say I wanted to render several views of the same model in one 
>> image,
>> but didn't want the objects interfering with each other (shadows and
>> reflections, and such). Could I just surround each model with a box with
>> the no_shadow and no_reflection attributes set?
>>
>> How could I accomplish this?

You can make an animation of the different views and in the final frame
of animation use image maps of the first frames in an orthographic camera
to paste them together automatically.

#switch(clock)
#case(0)
   camera{}
#break
#case(0.25)
   camera{}
#break
#case(0.5)
   camera{}
#break
#case(0.75)
   camera{}
#break
#case(1)
      camera {
         orthographic
         location <0,0,1>
         look_at  <0,0,0>
         right 1*x
         up 1*y
      }
      light_source {
         <0, 0, 30>
         color rgb <1, 1, 1>
         parallel
      }
      box { // this box fits exactly in view
         <-0.5, -0.5, 0>, <0.5, 0.5, 0>
         texture {
            pigment{ //front
               image_map {
                  sys "file1.bmp"
                  once
               }
               scale 0.5
               translate <0,-0.5,0>
            }
         }
         texture {
            pigment{ //top
               image_map {
                  sys "file2.bmp"
                  once
               }
               scale 0.5
               translate <0,0,0>
            }
         }
         texture {
            pigment{ //right
               image_map {
                  sys "file3.bmp"
                  once
               }
               scale 0.5
               translate <-0.5,-0.5,0>
            }
         }
         texture {
            pigment{ //corner
               image_map {
                  sys "file4.bmp"
                  once
               }
               scale 0.5
               translate <-0.5,0,0>
            }
         }
      }
#break
#if (clock != 1)
scene
#end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.