POV-Ray : Newsgroups : povray.animations : is there a way to skip slow frames????? : Re: is there a way to skip slow frames????? Server Time
8 May 2024 19:00:48 EDT (-0400)
  Re: is there a way to skip slow frames?????  
From: Alain
Date: 1 Feb 2010 21:16:15
Message: <4b678aef$1@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.
>

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

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