POV-Ray : Newsgroups : povray.binaries.animations : 2 different ways to "trace" on HF in M.P. [~645KB Mpeg1] Server Time
5 Nov 2024 01:26:44 EST (-0500)
  2 different ways to "trace" on HF in M.P. [~645KB Mpeg1] (Message 1 to 5 of 5)  
From: Bob Hughes
Subject: 2 different ways to "trace" on HF in M.P. [~645KB Mpeg1]
Date: 18 Apr 2000 04:20:56
Message: <38fc1ae8@news.povray.org>
Okay, I used 'trace' in MegaPov for the first time because of Chris Huff's
prodding :-) well it seemed like prodding.
It was tough going for me but I finally managed to animate the camera using it
in a fly-over of a height field.  The air turbulence made me get out the
air-sickness bag but when I recovered I attempted to use the trace vectors in a
cubic spline of 6 evenly distanced points by writing the vectors out to a text
file first.  Since I only used 6 points I made a #while loop to do a simulated
run which had the 6 virtual frames, then the trace values were #declared and
#write used to put into a file.  That file was then used as 'spline' input.
Anyhow, it turned out very smooth of course, if still topsy-turvy.  This
animation shows the non-splined, raw, trace data version during the first half
and the splined version during second half.  Quick small file so I suggest
looping it.
I was thinking I should probably post it to p.t.s-f. too, I had trouble
discerning the two methods with #if directives so give me awhile yet to try and
fix that up.  If I can't very soon I'll post it anyway.

Bob
--
omniVerse http://users.aol.com/persistenceofv/all.htm


Post a reply to this message


Attachments:
Download 'Tracehfs.mpg' (481 KB)

From: Rick [Kitty5]
Subject: Re: 2 different ways to "trace" on HF in M.P. [~645KB Mpeg1]
Date: 18 Apr 2000 05:58:47
Message: <38fc31d7@news.povray.org>
ooooo air sick........

Rick


Post a reply to this message

From: TonyB
Subject: Re: 2 different ways to "trace" on HF in M.P. [~645KB Mpeg1]
Date: 19 Apr 2000 00:07:00
Message: <38fd30e4@news.povray.org>
I'm gonna hurl! Great job!


Post a reply to this message

From: Mark Wagner
Subject: Re: 2 different ways to "trace" on HF in M.P. [~645KB Mpeg1]
Date: 21 Apr 2000 00:14:05
Message: <38ffd58d@news.povray.org>
Bob Hughes wrote in message <38fc1ae8@news.povray.org>...
>Okay, I used 'trace' in MegaPov for the first time because of Chris Huff's
>prodding :-) well it seemed like prodding.
>It was tough going for me but I finally managed to animate the camera using
it
>in a fly-over of a height field.  The air turbulence made me get out the
>air-sickness bag

I've been working on the same thing for a fly-through of the Grand Canyon,
and I've been running into the exact same problem.  My solution is to use
the average of four successive positions/orientations to determine the
camera placement.

Mark


Post a reply to this message

From: Chris Huff
Subject: Re: 2 different ways to "trace" on HF in M.P. [~645KB Mpeg1]
Date: 21 Apr 2000 13:10:48
Message: <chrishuff_99-DB66CC.12134021042000@news.povray.org>
In article <38ffd58d@news.povray.org>, "Mark Wagner" 
<mar### [at] gtenet> wrote:

> I've been working on the same thing for a fly-through of the Grand 
> Canyon, and I've been running into the exact same problem.  My 
> solution is to use the average of four successive 
> positions/orientations to determine the camera placement.

I haven't looked at the source, but I did something similar a while ago, 
with spheres flying over a height field instead(the camera was 
stationary). I did a simple particle simulation: the spheres had mass 
and were affected by gravity, and they used multiple trace() calls to 
simulate a repulsion effect from the height field. The spheres followed 
the depressions in the height field, like water running off of it.

You could also make some kind of "fuzzy logic" system, maybe specify a 
preferred height which the camera would try to stay close to, and only 
move to avoid collisions.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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