POV-Ray : Newsgroups : povray.binaries.scene-files : Extension of screen.inc for orthographic cameras Server Time
28 Mar 2024 13:42:08 EDT (-0400)
  Extension of screen.inc for orthographic cameras (Message 1 to 5 of 5)  
From: cbpypov
Subject: Extension of screen.inc for orthographic cameras
Date: 6 Nov 2017 05:10:01
Message: <web.5a00344aecd2fa6f80db62550@news.povray.org>
Find attached screen_ortho.inc, which extents the abilities of screen.inc in
order to use the orthographic camera. This is related to the thread


http://news.povray.org/povray.binaries.scene-files/thread/%3C4afccd8a%241%40news.povray.org%3E/?mtop=406850

started by SharkD, who is the one that wrote almost the entire code. The
attached version includes minor bug fixes and improved documentation.

Use
    Set_Camera(Location, LookAt, Angle, Ortho)
to define your camera instead of the traditional `camera { ... }`. The `Ortho`
parameter accepts `On` or `Off` and gives the expected results. Use e.g.
`Screen_Object` to add logos, watermarks, subtitles or any other object which is
meant to stay fixed in front of the camera. (Validated to work with animations.)

Best,
Carlo


Post a reply to this message


Attachments:
Download 'screen_ortho.inc.txt' (8 KB)

From: Alain
Subject: Re: Extension of screen.inc for orthographic cameras
Date: 6 Nov 2017 20:37:25
Message: <5a010e55@news.povray.org>

> Find attached screen_ortho.inc, which extents the abilities of screen.inc in
> order to use the orthographic camera. This is related to the thread
> 
> 
>
http://news.povray.org/povray.binaries.scene-files/thread/%3C4afccd8a%241%40news.povray.org%3E/?mtop=406850
> 
> started by SharkD, who is the one that wrote almost the entire code. The
> attached version includes minor bug fixes and improved documentation.
> 
> Use
>      Set_Camera(Location, LookAt, Angle, Ortho)
> to define your camera instead of the traditional `camera { ... }`. The `Ortho`
> parameter accepts `On` or `Off` and gives the expected results. Use e.g.
> `Screen_Object` to add logos, watermarks, subtitles or any other object which is
> meant to stay fixed in front of the camera. (Validated to work with animations.)
> 
> Best,
> Carlo
> 

Now, make a version that will also work with cylindrical (all 4 
varieties), spherical, fisheye, omnimax, panoramic, and ultrawhide_angle 
cameras...


Post a reply to this message

From: Mike Horvath
Subject: Re: Extension of screen.inc for orthographic cameras
Date: 30 Jan 2018 15:50:16
Message: <5a70da88$1@news.povray.org>
Hi guys!

Note that the latest version of my screen.inc is located at my web page.

     http://isometricland.net/povray/povray.php

The main alteration IIRC is that

     Set_Camera(<+25,+15,-33,>, <+2,+2,+0,>, 060, on)

was changed to

     Set_Camera(<+25,+15,-33,>, <+2,+2,+0,>, 060)
     Set_Camera_Orthographic(on)

This was in order to make the script backwards compatible with the 
original screen.inc that is bundled with POV-Ray.


Mike


Post a reply to this message

From: Mike Horvath
Subject: Re: Extension of screen.inc for orthographic cameras
Date: 30 Jan 2018 15:53:40
Message: <5a70db54$1@news.povray.org>
On 1/30/2018 3:50 PM, Mike Horvath wrote:
> Hi guys!
> 
> Note that the latest version of my screen.inc is located at my web page.
> 

> 
> The main alteration IIRC is that
> 

> 
> was changed to
> 


> 
> This was in order to make the script backwards compatible with the 
> original screen.inc that is bundled with POV-Ray.
> 
> 
> Mike

I've attached the script and demo scene.


Mike


Post a reply to this message


Attachments:
Download 'utf-8' (8 KB) Download 'utf-8' (6 KB)

From: Mike Horvath
Subject: Re: Extension of screen.inc for orthographic cameras
Date: 30 Jan 2018 15:56:11
Message: <5a70dbeb$1@news.povray.org>
There's some additional discussion and examples in this thread:

http://news.povray.org/povray.binaries.scene-files/thread/%3C590b15de%40news.povray.org%3E/


Mike


Post a reply to this message

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