POV-Ray : Newsgroups : povray.binaries.scene-files : Problems with text placed at fixed positions relative to camera Server Time
1 Sep 2024 22:14:22 EDT (-0400)
  Problems with text placed at fixed positions relative to camera (Message 1 to 3 of 3)  
From: Jörg 'Yadgar' Bleimann
Subject: Problems with text placed at fixed positions relative to camera
Date: 26 Oct 2003 07:01:27
Message: <3F9BD3E7.D2D0D493@gmx.de>
High!

Another attempt at programming an animation with data displayed at a
fixed position in the image... as long as I placed the text (or more
precisely, the lower left corner of the text object) just in the center
of the camera's field of views, all went perfect. But since I want the
text to be placed in the lower right corner of the image, I had to add a
perpendicular vector to the field of view's normal vector - and then
strange things happened, either the text gradually moved out of the
scene, closer or further from the camera, or even no text was visible at
all... code is attached here.

This test animation spans 721 frames, it consists of the camera rotating
at constant speed around the y axis and, at the same time, oscillating

placed the camera inside a spherical grid with 10-degree intervals
between the "latitudes" and 30-degree intervals between the
"longitudes".

See you in Khyberspace -
http://home.arcor.de/yadgar/khyberspace/index-e.html
Afghanistan Chronicle: http://home.arcor.de/yadgar/index-e.htm
Home-made electronic music: http://home.arcor.de/yadgar/music/

Yadgar ((:->

--
Pashto 2.0, a protocol language for the Advanced Fractal Geometric
Heightfield and Navigation Implementation-Sensitive Texture Analysis
Network


Post a reply to this message


Attachments:
Download 'display_test_new.pov.txt' (5 KB)

From: ingo
Subject: Re: Problems with text placed at fixed positions relative to camera
Date: 26 Oct 2003 08:46:32
Message: <Xns9420964D982C2seed7@netplex.aussie.org>


> Another attempt at programming an animation with data displayed at a
> fixed position in the image...

'screen.inc' seems to be the tool for you. See "7.21.3  screen.inc" in the 
documentation.

Ingo


Post a reply to this message

From: Jörg 'Yadgar' Bleimann
Subject: Re: Problems with text placed at fixed positions relative to camera
Date: 28 Oct 2003 15:49:21
Message: <3F9EE495.E7A10EB0@gmx.de>
High!

ingo schrieb:

> 'screen.inc' seems to be the tool for you. See "7.21.3  screen.inc" in the
> documentation.

Yes, it worked well! But then I felt somewhat awkward about just relying on
other's earlier achievements instead of re-inventing the wheel once again - a
thing a good programmer should be able to, I think...

But meanwhile, it seems that a solution of the problem without using
screen.inc is dawning on me... I just didn't consider that I have to add *two*
additional vectors perpendicular to each other instead of modifying just one
vector with complex trigonometric math! Some weeks before, I in fact
programmed a scrolling text along the lower edge of the scene, while the
camera rotated around the y axis without screen.inc...

See you in Khyberspace - http://home.arcor.de/yadgar/khyberspace/index-e.html
Afghanistan Chronicle: http://home.arcor.de/yadgar/index-e.htm
Home-made electronic music: http://home.arcor.de/yadgar/music/

Yadgar ((:->

Now playing: The Tears I cried (The Glitter Band)

--
Pashto 2.0, a protocol language for the Advanced Fractal Geometric Heightfield
and Navigation Implementation-Sensitive Texture Analysis Network


Post a reply to this message

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