|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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)
|
|
| |
| |
|
|
|
|
| |