POV-Ray : Newsgroups : povray.animations : is there a way to skip slow frames????? Server Time: 19 Oct 2019 09:50:27 GMT
  is there a way to skip slow frames????? (Message 1 to 4 of 4)  
From: ricky312
Subject: is there a way to skip slow frames?????
Date: 1 Feb 2010 16:15:00
Message: <web.4b66fd67eaa1d5e9824827c70@news.povray.org>
im using random landscapes in a modified version of terrapov but every once in a
while i get under the terrain or something and it renders black and
ssssssslllooooowwwww(slow).
i was wondering if there is a way for povray to skip to the next fram if certain
conditions are not met.

I know i can use trace but im not that skilled at it and "conditional skips"
would be more convenient!!


Post a reply to this message

From: Warp
Subject: Re: is there a way to skip slow frames?????
Date: 1 Feb 2010 16:41:44
Message: <4b670447@news.povray.org>
ricky312 <ddo### [at] charternet> wrote:

> im using random landscapes in a modified version of terrapov but every once in a
> while i get under the terrain or something and it renders black and
> ssssssslllooooowwwww(slow).
> i was wondering if there is a way for povray to skip to the next fram if certain
> conditions are not met.

  You can test if a point is inside a height_field using the inside() function.
You could use that to skip instantiating the heightfield or creating the rest
of the scene for that frame.

-- 
                                                          - Warp


Post a reply to this message

From: Alain
Subject: Re: is there a way to skip slow frames?????
Date: 2 Feb 2010 02:16:15
Message: <4b678aef$1@news.povray.org>
Le 2010-02-01 11:41, Warp a écrit :
> ricky312<ddo### [at] charternet>  wrote:
>
>> im using random landscapes in a modified version of terrapov but every once in a
>> while i get under the terrain or something and it renders black and
>> ssssssslllooooowwwww(slow).
>> i was wondering if there is a way for povray to skip to the next fram if certain
>> conditions are not met.
>
>    You can test if a point is inside a height_field using the inside() function.
> You could use that to skip instantiating the heightfield or creating the rest
> of the scene for that frame.
>

If you detect that you are inside/under your terrain, you can move the 
camera up by a few units, then test again.
If you are still inside, move up another step and do another test.
That way, you can make sure that your camera is over the terrain.



Alain


Post a reply to this message

From: Joerg
Subject: Re: is there a way to skip slow frames?????
Date: 2 Feb 2010 17:40:26
Message: <4b68638a$1@news.povray.org>
I use to set the camera with the trace function to find the height of the terrain and
then add some value as offset in Y-direction.

Here's an example movie where I used this approach:
http://www.youtube.com/watch?v=20vMtS61n-Q

Joerg


ricky312 wrote:
> im using random landscapes in a modified version of terrapov but every once in a
> while i get under the terrain or something and it renders black and
> ssssssslllooooowwwww(slow).
> i was wondering if there is a way for povray to skip to the next fram if certain
> conditions are not met.
> 
> I know i can use trace but im not that skilled at it and "conditional skips"
> would be more convenient!!
> 
>


Post a reply to this message

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