POV-Ray : Newsgroups : povray.general : screen.inc for right-handed camera? Server Time
29 Jul 2024 14:26:33 EDT (-0400)
  screen.inc for right-handed camera? (Message 1 to 2 of 2)  
From: CAD-Andi
Subject: screen.inc for right-handed camera?
Date: 21 Mar 2011 11:35:00
Message: <web.4d876f627aa68ffabf952ed30@news.povray.org>
I realy like the simplicity of screen.inc. Would like to use it in my right
handed world. When I switch to "Set_Camera_Aspect(-16,9)" The objects placed on
the screen disappear. Any Idea for a quick fix?


Post a reply to this message

From: CAD-Andi
Subject: Re: screen.inc for right-handed camera?
Date: 21 Mar 2011 13:40:01
Message: <web.4d878cd6f726ad8bbf952ed30@news.povray.org>
"CAD-Andi" <nomail@nomail> wrote:
> I realy like the simplicity of screen.inc. Would like to use it in my right
> handed world. When I switch to "Set_Camera_Aspect(-16,9)" The objects placed on
> the screen disappear. Any Idea for a quick fix?

I accomplished what I needed by doing this:

I saved and renamed the screen.inc file into my local folder. Then I changed the
camera definition in line 57 to have a - "minus" Symbol after the right keyword
like this:

right -CamR*Camera_Aspect_Ratio

Now the script works reversed. All I have to keep in mind is that I have to
rotate text objects 180 degree during their creation or everything will read
mirror image.

I agree this is pretty much of a hack. Did anybody figure out a more elegant
method? I usually try to stay away from altering someone elses work.
(Thanks btw. to Christoph Hormann, Chris Huff and Rune S. Johansen. for the
screen.inc file!)

Andi


Post a reply to this message

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