POV-Ray : Newsgroups : povray.bugreports : Bug in screen.inc Server Time
21 Nov 2024 14:21:53 EST (-0500)
  Bug in screen.inc (Message 1 to 7 of 7)  
From: Mike Horvath
Subject: Bug in screen.inc
Date: 20 Jun 2019 13:06:50
Message: <5d0bbd2a$1@news.povray.org>
The include file "screen.inc" can't cope whith a scene (such as some 
exported LDraw scenes) where the "right" vector of the camera is 
negative. For instance, I'm not sure why, but the program LDView always 
outputs the right vector as:

	right LDXCamAspect * < -1,0,0 >

The resulting image ends up flipped horizontally compared to what it's 
supposed to be.

Michael


Post a reply to this message

From: Bald Eagle
Subject: Re: Bug in screen.inc
Date: 20 Jun 2019 18:50:01
Message: <web.5d0c0caee42763204eec112d0@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:
> The include file "screen.inc" can't cope whith a scene (such as some
> exported LDraw scenes) where the "right" vector of the camera is
> negative. For instance, I'm not sure why, but the program LDView always
> outputs the right vector as:
>
>  right LDXCamAspect * < -1,0,0 >
>
> The resulting image ends up flipped horizontally compared to what it's
> supposed to be.
>
> Michael

It's been a while since I've picked through the code of that, but:

Might the solution be as simple as taking all of the screen.inc output (union {}
)
 and scaling it <-1, 1, 1>  ?


Post a reply to this message

From: Mike Horvath
Subject: Re: Bug in screen.inc
Date: 20 Jun 2019 21:04:49
Message: <5d0c2d31$1@news.povray.org>
On 6/20/2019 6:46 PM, Bald Eagle wrote:
> It's been a while since I've picked through the code of that, but:
> 
> Might the solution be as simple as taking all of the screen.inc output (union {}
> )
>   and scaling it <-1, 1, 1>  ?
> 
> 
> 

Can the camera itself scale by some value? Thanks for the tip.


Michael


Post a reply to this message

From: Bald Eagle
Subject: Re: Bug in screen.inc
Date: 20 Jun 2019 21:20:00
Message: <web.5d0c2ff7e42763204eec112d0@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:

> Can the camera itself scale by some value? Thanks for the tip.

I'm guessing ... yes?

http://news.povray.org/povray.advanced-users/thread/%3C5a7f9271%241%40news.povray.org%3E/


Post a reply to this message

From: Mike Horvath
Subject: Re: Bug in screen.inc
Date: 20 Jun 2019 22:33:45
Message: <5d0c4209$1@news.povray.org>
On 6/20/2019 9:16 PM, Bald Eagle wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
> 
>> Can the camera itself scale by some value? Thanks for the tip.
> 
> I'm guessing ... yes?
> 
>
http://news.povray.org/povray.advanced-users/thread/%3C5a7f9271%241%40news.povray.org%3E/
> 

I tried `scale <-1,1,1>` but it had the incorrect effect. It flipped the 
coordinate axes, not the actual image like what should happen.


Michael


Post a reply to this message

From: Mike Horvath
Subject: Re: Bug in screen.inc
Date: 21 Jun 2019 17:41:56
Message: <5d0d4f24$1@news.povray.org>
On 6/20/2019 9:16 PM, Bald Eagle wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
> 
>> Can the camera itself scale by some value? Thanks for the tip.
> 
> I'm guessing ... yes?
> 
>
http://news.povray.org/povray.advanced-users/thread/%3C5a7f9271%241%40news.povray.org%3E/
> 
> 
> 
> 
> 


I also tried setting the aspect ratio to a negative value.

Set_Camera_Aspect(-4,3)

This flips the image correctly, but the text disappears. You can confirm 
this in the demo scene.


Michael


Post a reply to this message

From: Mike Horvath
Subject: Re: Bug in screen.inc
Date: 22 Jun 2019 09:05:04
Message: <5d0e2780$1@news.povray.org>
Sorry, I will post an example scene later in the day when I get the chance.


Michael


Post a reply to this message

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