POV-Ray : Newsgroups : povray.binaries.scene-files : New version screen.inc : Re: New version screen.inc Server Time
29 Apr 2024 01:12:11 EDT (-0400)
  Re: New version screen.inc  
From: Captain Jack
Date: 18 Nov 2009 10:50:18
Message: <4b0417ba@news.povray.org>
"SharkD" <mik### [at] gmailcom> wrote in message 
news: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
>

Cool... I hadn't read through the Get_Screen_XY macro yet, but I did write a 
scene to test it, which I've attached. The macro worked exactly as expected, 
with no errors. The animation itself is of a group of three balls connected 
by springs that float around the screen. I had the program create a text 
file giving the screen coordinates for the center of one of the spheres in a 
format that can be read by Particle Illusion. I Rendered the scene in POV, 
then I imported the text file into PI, then composited the whole thing over 
a background picture, and everything lined up exactly right with no error 
message generated at any point.

In my haste to slap together a test, I made a mistake somewhere in my math 
and the springs don't always line up where the spheres are. I didn't notice 
it until I was playing back the final animation, and it got late enough last 
night that I didn't go back and fix it. The important part was to test the 
macro, and it came through with flying colors.

I put a copy of the rendering up at YouTube, here: 
http://www.youtube.com/watch?v=LzgV8dALdIo.

--
Jack


Post a reply to this message


Attachments:
Download 'TargetTest.pov.txt' (11 KB)

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