POV-Ray : Newsgroups : povray.binaries.scene-files : New version screen.inc Server Time
6 May 2024 02:39:37 EDT (-0400)
  New version screen.inc (Message 2 to 11 of 52)  
<<< Previous 1 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: SharkD
Subject: Re: New version screen.inc
Date: 12 Nov 2009 22:08:58
Message: <4afccdca$1@news.povray.org>
On 11/12/2009 10:07 PM, SharkD wrote:
> I modified screen.inc so that it works with orthographic cameras as
> well. Simply add "yes" or "no" as a new parameter when calling the
> "Set_Camera" macro.
>
> There are some glitches, however. In the demo scene, setting the
> "scaling" parameter to low values (i.e. below 1) causes artifacts when
> orthographic mode is turned on. Also, while the crosshairs are visible,
> the pigment/texture looks a lot different than when using a
> non-orthographic camera.
>
> Anyone have any idea how to fix these?
>
> Thanks.
>
> Mike

Forgot to attach the file.

Mike


Post a reply to this message


Attachments:
Download 'screen.inc.txt' (6 KB)

From: SharkD
Subject: Re: New version screen.inc
Date: 12 Nov 2009 23:53:11
Message: <4afce637$1@news.povray.org>
On 11/12/2009 10:08 PM, SharkD wrote:
> Forgot to attach the file.
>
> Mike

Slightly tweaked version. Also, the demo scene which I forgot to add 
earlier.

Mike


Post a reply to this message


Attachments:
Download 'screen.inc.txt' (6 KB) Download 'screen.pov.txt' (6 KB)

From: SharkD
Subject: Re: New version screen.inc
Date: 15 Nov 2009 22:10:46
Message: <4b00c2b6$1@news.povray.org>
Update:

Includes the changes I made in my last post to enable the script to work 
with orthographic cameras. Also includes a new macro called 
"Get_Screen_XY" to return the 2D screen location of a set of 3D coordinates.

The lighting/material issues WRT the crosshairs and orthographic cameras 
remains unresolved.

Mike


Post a reply to this message


Attachments:
Download 'screen.pov.txt' (7 KB) Download 'screen.inc.txt' (6 KB)

From: Captain Jack
Subject: Re: New version screen.inc
Date: 16 Nov 2009 09:12:01
Message: <4b015db1$1@news.povray.org>
"SharkD" <mik### [at] gmailcom> wrote in message 
news:4b00c2b6$1@news.povray.org...
> Update:
>
> Includes the changes I made in my last post to enable the script to work
> with orthographic cameras. Also includes a new macro called
> "Get_Screen_XY" to return the 2D screen location of a set of 3D 
> coordinates.
>
> The lighting/material issues WRT the crosshairs and orthographic cameras
> remains unresolved.
>
> Mike

Very cool, indeed... looking forward to trying it out. :D Thanks for the 
work.


Post a reply to this message

From: SharkD
Subject: Re: New version screen.inc
Date: 16 Nov 2009 16:22:03
Message: <4b01c27b$1@news.povray.org>
On 11/16/2009 9:13 AM, Captain Jack wrote:
> Very cool, indeed... looking forward to trying it out. :D Thanks for the
> work.

I know of one bug already. I've already fixed it and will upload it 
soon. Let me know if you notice any others.

Mike


Post a reply to this message

From: Captain Jack
Subject: Re: New version screen.inc
Date: 16 Nov 2009 16:31:49
Message: <4b01c4c5$1@news.povray.org>
"SharkD" <mik### [at] gmailcom> wrote in message 
news:4b01c27b$1@news.povray.org...
> On 11/16/2009 9:13 AM, Captain Jack wrote:
>> Very cool, indeed... looking forward to trying it out. :D Thanks for the
>> work.
>
> I know of one bug already. I've already fixed it and will upload it soon. 
> Let me know if you notice any others.
>
> Mike

I'm setting up an animation now... my goal is to create a text file that 
lists, for each frame, the pixel position of an object I'm tracking in the 
scene. I'll try to get it  tested by tomorrow.

--
Jack


Post a reply to this message

From: SharkD
Subject: Re: New version screen.inc
Date: 17 Nov 2009 07:53:30
Message: <4b029cca$1@news.povray.org>
OK, here's the latest version. I added support for specifying the camera 
direction, right and up vectors directly. Use the macro "Set_Camera_Alt" 
instead of "Set_Camera" if you want this. Please report any bugs you may 
encounter. I tested versus a series of scenes including ones with 
perspective projection, orthographic projection and even oblique 
projection. I also tested different aspect ratios and output sizes. I 
may have missed something however.

Mike


Post a reply to this message


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

From: SharkD
Subject: Re: New version screen.inc
Date: 17 Nov 2009 08:28:52
Message: <4b02a514$1@news.povray.org>
On 11/17/2009 7:53 AM, SharkD wrote:
> OK, here's the latest version. I added support for specifying the camera
> direction, right and up vectors directly. Use the macro "Set_Camera_Alt"
> instead of "Set_Camera" if you want this. Please report any bugs you may
> encounter. I tested versus a series of scenes including ones with
> perspective projection, orthographic projection and even oblique
> projection. I also tested different aspect ratios and output sizes. I
> may have missed something however.
>
> Mike


Ooops. had some values reversed.

Mike


Post a reply to this message


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

From: Captain Jack
Subject: Re: New version screen.inc
Date: 17 Nov 2009 14:40:46
Message: <4b02fc3e@news.povray.org>
"SharkD" <mik### [at] gmailcom> wrote in message 
news:4b02a514$1@news.povray.org...
> On 11/17/2009 7:53 AM, SharkD wrote:
>> OK, here's the latest version. I added support for specifying the camera
>> direction, right and up vectors directly. Use the macro "Set_Camera_Alt"
>
> Mike
>

I'm rendering an animation now where I'm tracking part of the object using 
the Get_Screen_XY function to build a file of screen coordinates. Once I get 
that run, I'll try importing the data into another program and comping the 
results. So far, it seems to be working fine and I haven't gotten any 
errors; looks great, Mike.

--
Jack


Post a reply to this message

From: SharkD
Subject: Re: New version screen.inc
Date: 17 Nov 2009 20:57:13
Message: <4b035479$1@news.povray.org>
Update.

Seems I was making things a lot harder than they needed to be. I also 
encountered further bugs. The new version of "Get_Screen_XY" is *a lot* 
simpler. The good news is that if you didn't have problems before (i.e. 
you were using "Set_Camera" and perspective projection instead of 
"Set_Camera_Alt" or orthographic projection), then you shouldn't notice 
a difference.

Mike


Post a reply to this message


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

<<< Previous 1 Messages Goto Latest 10 Messages Next 10 Messages >>>

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