To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 7796
7795  |  7797
Subject: 
I have a question about pov-ray
Newsgroups: 
lugnet.cad
Date: 
Thu, 25 Apr 2002 14:40:59 GMT
Viewed: 
334 times
  
Hi all.
I just learned more stuff and I'm really happy with pov-ray is a nice app
anyway can someone tell me how can I make this scene to render all my cameras
at once?
Here is the scene
...............................................................................
#declare Lookat = 1; // 1 = Front 2 Back 3 Right 4 Left 5 and 6 are side cameras

#declare QUAL = 2;  // Quality level, 0=BBox, 1=no refr, 2=normal, 3=studlogo

#declare SW = 0.5;  // Width of seam between two bricks

#declare STUDS = 1;  // 1=on 0=off

#declare BUMPS = 0;  // 1=on 0=off

#include "museum.inc"

object { museum_dot_ldr #if (version >= 3.1) material #else texture #end {
Color7 } }


// Floor:
object {
plane { y, 4 hollow }
texture {
pigment { color rgb <0.8,0.8,0.8> }
finish { ambient 0.4 diffuse 0.4 }
}
}

// Background:
background { color rgb <0.313726,0.313726,1>}

// Camera (Latitude,Longitude,Radius = 30,45,0)

#if (Lookat = 1)
camera {
#declare PCT = 0; // Percentage further away
#declare STEREO = 0; // Normal view
//#declare STEREO =  degrees(atan2(1,12))/2; // Left view
//#declare STEREO = -degrees(atan2(1,12))/2; // Right view
location vaxis_rotate(<-200,-72,-640> + PCT/100.0*<765.967,-625.409,-765.967>,
                      <-479043,-1.17341e+006,479043>,STEREO)
sky      -y
right    -4/3*x
look_at  <-200,-72,-540>
angle    67.3801
rotate   <0,1e-5,0> // Prevent gap between adjecent quads
//orthographic
}#end

#if (Lookat = 2)
camera {
#declare PCT = 0; // Percentage further away
#declare STEREO = 0; // Normal view
//#declare STEREO =  degrees(atan2(1,12))/2; // Left view
//#declare STEREO = -degrees(atan2(1,12))/2; // Right view
location vaxis_rotate(<-200,-72,-640> + PCT/100.0*<765.967,-625.409,-765.967>,
                      <-479043,-1.17341e+006,479043>,STEREO)
sky      -y
right    -4/3*x
look_at  <-200,-72,-740>
angle    67.3801
rotate   <0,1e-5,0> // Prevent gap between adjecent quads
//orthographic
}#end

#if (Lookat = 3)
camera {
#declare PCT = 0; // Percentage further away
#declare STEREO = 0; // Normal view
//#declare STEREO =  degrees(atan2(1,12))/2; // Left view
//#declare STEREO = -degrees(atan2(1,12))/2; // Right view
location vaxis_rotate(<-200,-72,-640> + PCT/100.0*<765.967,-625.409,-765.967>,
                      <-479043,-1.17341e+006,479043>,STEREO)
sky      -y
right    -4/3*x
look_at  <-100,-72,-640>
angle    67.3801
rotate   <0,1e-5,0> // Prevent gap between adjecent quads
//orthographic
}#end

#if (Lookat = 4)
camera {
#declare PCT = 0; // Percentage further away
#declare STEREO = 0; // Normal view
//#declare STEREO =  degrees(atan2(1,12))/2; // Left view
//#declare STEREO = -degrees(atan2(1,12))/2; // Right view
location vaxis_rotate(<-200,-72,-640> + PCT/100.0*<765.967,-625.409,-765.967>,
                      <-479043,-1.17341e+006,479043>,STEREO)
sky      -y
right    -4/3*x
look_at  <-300,-72,-640>
angle    67.3801
rotate   <0,1e-5,0> // Prevent gap between adjecent quads
//orthographic
}#end

#if (Lookat = 5)
camera {
#declare PCT = 0; // Percentage further away
#declare STEREO = 0; // Normal view
//#declare STEREO =  degrees(atan2(1,12))/2; // Left view
//#declare STEREO = -degrees(atan2(1,12))/2; // Right view
location vaxis_rotate(<-200,-72,-640> + PCT/100.0*<765.967,-625.409,-765.967>,
                      <-479043,-1.17341e+006,479043>,STEREO)
sky      -y
right    -4/3*x
look_at  <-320,-72,-540>
angle    67.3801
rotate   <0,1e-5,0> // Prevent gap between adjecent quads
//orthographic
}#end

#if (Lookat = 6)
camera {
#declare PCT = 0; // Percentage further away
#declare STEREO = 0; // Normal view
//#declare STEREO =  degrees(atan2(1,12))/2; // Left view
//#declare STEREO = -degrees(atan2(1,12))/2; // Right view
location vaxis_rotate(<-200,-72,-640> + PCT/100.0*<765.967,-625.409,-765.967>,
                      <-479043,-1.17341e+006,479043>,STEREO)
sky      -y
right    -4/3*x
look_at  <-320,-72,-740>
angle    67.3801
rotate   <0,1e-5,0> // Prevent gap between adjecent quads
//orthographic
}#end

// Lights:
light_source {
<0,-1004.46,-1064.46>  // Latitude,Longitude,Radius: 45,0,1250.82
color rgb <1,1,1>
}
light_source {
<938.114,-745.409,361.62>  // Latitude,Longitude,Radius: 30,120,1250.82
color rgb <1,1,1>
}
light_source {
<-541.62,-1203.24,132.705>  // Latitude,Longitude,Radius: 60,-120,1250.82
color rgb <1,1,1>
}
...............................................................................
I made some if codes but that's the best I can do.
THX



Message has 1 Reply:
  Re: I have a question about pov-ray
 
(...) Hum.. are you trying to render 1 image and have ALL 4 cameras below looking at their distince locations? Or are you attempting to render 4 images each one with a single camera position? The first, to my knowledge, is NOT possible. For the 2nd (...) (23 years ago, 25-Apr-02, to lugnet.cad)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR