POV-Ray : Newsgroups : povray.binaries.images : media and plane Server Time
1 Nov 2024 02:22:12 EDT (-0400)
  media and plane (Message 1 to 2 of 2)  
From: eticre
Subject: media and plane
Date: 13 May 2014 17:45:00
Message: <web.537290bf3596e9069c5c66790@news.povray.org>
Hi  all

anyone has a suggestion

I try to use media for atmosphere effect on planet but wen using montecarlo or
adaptive sampling media is brightness(lright), using smooth(left) media is ok
Making the plane hollow, no_reflection and no_shadow do not have any result.

the code used

//*PMRawBegin
#version 3.7;
//*PMRawEnd

global_settings {
   adc_bailout 0.0039216
   ambient_light rgb<0, 0, 0>
   assumed_gamma 1
   max_trace_level 30
   noise_generator 3

   radiosity {
      count 100
      error_bound 1
      low_error_factor 0.3
      media on
      nearest_count 9
      normal on
      pretrace_end 0.02
      recursion_limit 4
   }
}

light_source {
   <4, 5, -5>, rgb<1, 1, 1>
   parallel
}

camera {
   perspective
   location <7.4, 0, 0>
   sky <0, 1, 0>
   direction <0, 0, 1>
   right <1.3333, 0, 0>
   up <0, 1, 0>
   look_at <0, 0, 0>
}

plane {
   <0, 0, 1>, -4

   texture {
      pigment {
         color rgb<0.2, 1, 0>
      }
   }
   rotate y*90
   translate x*(-15)
   hollow false
}

union {
   sphere {
      <0, 0, 0>, 1

      texture {
         pigment {
            uv_mapping
            color rgb<0.15294, 0.26667, 1>
         }
      }
      scale 2.9
      hollow false
   }

   sphere {
      <0, 0, 0>, 1

      texture {
         pigment {
            color rgbt <0, 0, 0, 1>
         }
      }

      interior {
         media {
            method 2
            samples 1,10
            variance 0.001

            scattering {
               1, rgb<0.701961, 0.701961, 0.701961>
            }
         }
      }
      scale 3
      hollow
   }
}


Post a reply to this message

From: eticre
Subject: Re: media and plane
Date: 15 May 2014 15:45:00
Message: <web.537518e5d635449e2e9a38e0@news.povray.org>


Post a reply to this message


Attachments:
Download 'media-plane.png' (80 KB)

Preview of image 'media-plane.png'
media-plane.png


 

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