POV-Ray : Newsgroups : povray.general : Object inside opaque media : Re: Object inside opaque media Server Time
5 May 2024 17:28:04 EDT (-0400)
  Re: Object inside opaque media  
From: Alain
Date: 14 Nov 2018 00:07:39
Message: <5bebad9b$1@news.povray.org>
Le 18-11-12 à 22:35, Bald Eagle a écrit :
> I think perhaps there's no reason one has to stick to a static construct with
> the only change being the camera location.
> 
> Since for every animation frame the scene can change, perhaps the way to do it
> in one shot is to dynamically adapt the media density to what that frame
> requires to achieve the desired look.
> 
> So graph out what you want in terms of visibility, and then based on the
> distance between the camera and the planet's surface, change the density to fit
> your needs at that instant.
> 
> Similar to what others have proposed, you could define your visibility as a
> spline, interpolate, and use the camera distance to the planet to index a
> density value.
> 
> There's probably other ways to do it, but I'd say the first step would be to
> story-board out the animation and use that as a guide to define very detailed
> requirements for key points in the animation, and then see what the best method
> to transition between those points is likely to be in terms of time, complexity,
> and quality of end result.
> 
> Just my take on how I'd likely approach this.
> 
> 

If you don't want or need the media to stretch down to the ground, but 
stop at some altitude, you can have a difference of two spheres.
The outer sphere will determine the top of your cloud layer, and the 
inner sphere will prevent the media from going to low.

With that approach, you can use the onion pattern scaled to the distance 
between the two spheres, and use the phase option to shift the pattern 
if needed.

Next, you can use some alternative wave type, like triangle_wave, 
sine_wave or scallop_wave, to help fine tune the density gradient.


Post a reply to this message

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