POV-Ray : Newsgroups : povray.advanced-users : Camera jumping on a grid (x and z coordinates) Server Time
29 Jul 2024 04:30:46 EDT (-0400)
  Camera jumping on a grid (x and z coordinates) (Message 1 to 4 of 4)  
From: Stefan Schleifer
Subject: Camera jumping on a grid (x and z coordinates)
Date: 23 Mar 2003 14:27:41
Message: <3e7e0aad@news.povray.org>
Hello,

sorry for crossposting this with this newsgroup and povray.animations. I
haven't seen this newsgroup in my newsreader at the first time...  :-/


Hi,

i'm trying to render something special (?) with povray: I like to have the
camera jump on a grid in the scene, but not on every field on the grid.

Let's say we have a grid sized 7 by 7, i'd like to render the grids
1,2
1,3
1,4
4,3 and
4,4

The problem is solved easily by creating a .pov-File for each grid including
the proper camera. Problem is: Parsing the scene takes up to 1 Minute. If i
could have the camera jump in the scene it would be much more quicker.

I am thinking about a construction like
if grid=1,2 then
    camera (xxx....)
if grid=1,3 then
    camera (yyy...)

Is there any way to handle this within a .pov-scene-file? Can someone help
me with that issue?

Regards,
Stefan


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: Camera jumping on a grid (x and z coordinates)
Date: 23 Mar 2003 15:45:25
Message: <3e7e1ce5$1@news.povray.org>
If I'm not mistaken, ABX has patched POV to do stuff like
that. Ask him. The original POV-Ray doesn't have the ability
to render certain parts of a scene onto certain grids of the
resulting image.



--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

> Hello,
>
> sorry for crossposting this with this newsgroup and povray.animations. I
> haven't seen this newsgroup in my newsreader at the first time...  :-/
>
>
> Hi,
>
> i'm trying to render something special (?) with povray: I like to have the
> camera jump on a grid in the scene, but not on every field on the grid.
>
> Let's say we have a grid sized 7 by 7, i'd like to render the grids
> 1,2
> 1,3
> 1,4
> 4,3 and
> 4,4
>
> The problem is solved easily by creating a .pov-File for each grid
including
> the proper camera. Problem is: Parsing the scene takes up to 1 Minute. If
i
> could have the camera jump in the scene it would be much more quicker.
>
> I am thinking about a construction like
> if grid=1,2 then
>     camera (xxx....)
> if grid=1,3 then
>     camera (yyy...)
>
> Is there any way to handle this within a .pov-scene-file? Can someone help
> me with that issue?
>
> Regards,
> Stefan
>
>


Post a reply to this message

From: Ken
Subject: Re: Camera jumping on a grid (x and z coordinates)
Date: 23 Mar 2003 22:47:14
Message: <3E7E80AB.3C0FD2A0@pacbell.net>
Stefan Schleifer wrote:
> 
> Hello,
> 
> sorry for crossposting this with this newsgroup and povray.animations. I
> haven't seen this newsgroup in my newsreader at the first time...  :-/
> 
> Hi,
> 
> i'm trying to render something special (?) with povray: I like to have the
> camera jump on a grid in the scene, but not on every field on the grid.
> 
> Let's say we have a grid sized 7 by 7, i'd like to render the grids
> 1,2
> 1,3
> 1,4
> 4,3 and
> 4,4
> 
> The problem is solved easily by creating a .pov-File for each grid including
> the proper camera. Problem is: Parsing the scene takes up to 1 Minute. If i
> could have the camera jump in the scene it would be much more quicker.
> 
> I am thinking about a construction like
> if grid=1,2 then
>     camera (xxx....)
> if grid=1,3 then
>     camera (yyy...)
> 
> Is there any way to handle this within a .pov-scene-file? Can someone help
> me with that issue?

Couldn't you just store the camera location vectors in an array and feed that
to the camera statement with a suitable clock value?

-- 
Ken Tyler


Post a reply to this message

From: Kurts
Subject: Re: Camera jumping on a grid (x and z coordinates)
Date: 24 Mar 2003 13:46:21
Message: <kurtzlepirate-4B390D.19462124032003@netplex.aussie.org>
In article <3e7e0aad@news.povray.org>, "Stefan Schleifer" <pov### [at] gibtsnet> wrote:

> Hello,
> 
> sorry for crossposting this with this newsgroup and povray.animations. I
> haven't seen this newsgroup in my newsreader at the first time...  :-/
> 
> 
> Hi,
> 
> i'm trying to render something special (?) with povray: I like to have the
> camera jump on a grid in the scene, but not on every field on the grid.
> 
> Let's say we have a grid sized 7 by 7, i'd like to render the grids
> 1,2
> 1,3
> 1,4
> 4,3 and
> 4,4
> 
> The problem is solved easily by creating a .pov-File for each grid including
> the proper camera. Problem is: Parsing the scene takes up to 1 Minute. If i
> could have the camera jump in the scene it would be much more quicker.
> 
> I am thinking about a construction like
> if grid=1,2 then
>     camera (xxx....)
> if grid=1,3 then
>     camera (yyy...)
> 
> Is there any way to handle this within a .pov-scene-file? Can someone help
> me with that issue?
> 
> Regards,
> Stefan
> 
> 

one solution :
 - create a 2 dimensionss array : #declare theArray = array [xDim][zDim]
 - fill each element with a vector position : theArray[0][0] = <0, 0, 0>; theArray
[0][1] = <1, 1, 1>; ...
 - in a double loops, set the camera location by : location theArray[i][j]

you can make one array for camera locations and an other array for camera look_at

may i help you.


Post a reply to this message

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