POV-Ray : Newsgroups : povray.programming : Setting the render frame Server Time
28 Jul 2024 12:24:21 EDT (-0400)
  Setting the render frame (Message 1 to 4 of 4)  
From: Henryk Mueller
Subject: Setting the render frame
Date: 16 Aug 2000 11:18:09
Message: <399ab0b1$1@news.povray.org>
Hi folks,

I have some problems to set the render frame properly.

I use the FRAME structure and the parameters

Frame.Camera->Right
Frame.Camera->Up
Frame.Camera->Direction

The camera rotation and the angle of the camera lens (the angle of how much
you can see) determine the vectors Right and Up. Vector Direction has always
a length of 1. So, actually I stretch and rotate the frame but keeping
always a distance of 1 to the camera position.

But there's also the parameter

Frame.Camera->Angle

How do I have to set this angle and how does it influence my frame? Actually
this angle is already regarded in the frame vectors. So, do I really need
this angle???

Besides, can anybody tell me, what this parameters do?

 Frame.Camera->Blur_Samples = 0;
 Frame.Camera->Confidence = 0.9;
 Frame.Camera->Variance = 1.0 / 128.0;
 Frame.Camera->Aperture = 0.0;
 Frame.Camera->Focal_Distance = -1.0;
 Frame.Camera->Type = PERSPECTIVE_CAMERA;
 Frame.Camera->Tnormal = NULL;

Thank you in advance

Henryk


Post a reply to this message

From: Chris Huff
Subject: Re: Setting the render frame
Date: 16 Aug 2000 11:59:54
Message: <chrishuff-CAE65A.11010816082000@news.povray.org>
In article <399ab0b1$1@news.povray.org>, "Henryk Mueller" 
<hen### [at] gmxde> wrote:

> But there's also the parameter
> Frame.Camera->Angle
> How do I have to set this angle and how does it influence my frame? 
> Actually this angle is already regarded in the frame vectors. So, do 
> I really need this angle???

The angle value is also used in later code, the create_ray() function in 
render.c for example. I suggest you look at the camera parsing code in 
parse.c for an example.
I can't really help you more without knowing what you are attempting to 
do.


> Besides, can anybody tell me, what this parameters do?
> 
>  Frame.Camera->Blur_Samples = 0;
>  Frame.Camera->Confidence = 0.9;
>  Frame.Camera->Variance = 1.0 / 128.0;
>  Frame.Camera->Aperture = 0.0;
>  Frame.Camera->Focal_Distance = -1.0;

These are for focal blurring, I assume.


>  Frame.Camera->Type = PERSPECTIVE_CAMERA;

This tells what kind of camera it is, perspective, orthographic, 
fisheye, etc.


>  Frame.Camera->Tnormal = NULL;

This is simply the camera normal.

-- 
Christopher James Huff
Personal: e-mail chr### [at] maccom, Web page http://homepage.mac.com/chrishuff/
TAG: e-mail chr### [at] tagpovrayorg, Web page http://tag.povray.org/

><>


Post a reply to this message

From: Henryk Mueller
Subject: Re: Setting the render frame
Date: 16 Aug 2000 13:26:43
Message: <399aced3@news.povray.org>
Hi Chris,

> The angle value is also used in later code, the create_ray() function in
> render.c for example. I suggest you look at the camera parsing code in
> parse.c for an example.
> I can't really help you more without knowing what you are attempting to
> do.

Thank you for you fast help. The hint with parse.c was valuable.

But one other question: Why is the focal distance negative???

Ciao

Henryk


Post a reply to this message

From: Chris Huff
Subject: Re: Setting the render frame
Date: 16 Aug 2000 13:43:56
Message: <chrishuff-4EFCE0.12450916082000@news.povray.org>
In article <399aced3@news.povray.org>, "Henryk Mueller" 
<hen### [at] gmxde> wrote:

> But one other question: Why is the focal distance negative???

To let POV know if a focal distance has been specified...look at the end 
of the Parse_Camera() function in parse.c.

-- 
Christopher James Huff
Personal: e-mail chr### [at] maccom, Web page http://homepage.mac.com/chrishuff/
TAG: e-mail chr### [at] tagpovrayorg, Web page http://tag.povray.org/

><>


Post a reply to this message

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