|
![](/i/fill.gif) |
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)
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |