POV-Ray : Newsgroups : povray.binaries.images : Image_map with alpha channel: strange effect : Image_map with alpha channel: strange effect Server Time
30 Jul 2024 08:23:51 EDT (-0400)
  Image_map with alpha channel: strange effect  
From: Jörg 'Yadgar' Bleimann
Date: 13 May 2012 11:51:23
Message: <4fafd87b@news.povray.org>
Hi(gh)!

As I mentioned in my posting before, with my Earth model I now use a 
separate sphere for the cloud-only texture. The original cloud-only 
testure bitmap was black to white; to get the cloud-free portions 
transparent, I used the GIMP's Layer/Transparency/Colour to Transparency 
feature.

But obviously, the eastern hemisphere of that bitmap seems to be 
somewhat lighter than the western one; however, when I render a view of 
the North Pole (see below), the clouds-only texture covering the eastern 
hemisphere is not entirely transparent even in its cloud-free parts. 
And, very strangely, this effect does not disappear when I darken the 
eastern portion of the original map!

Here is the code:

union
{
   sphere // Earth, surface
   {
     0, 1
     texture
     {
       pigment
       {
         image_map
         {
           png "solarsys/ev5826_land_ocean_ice_lights_8192.png"
           map_type 1
           interpolate 2
         }
       }
       finish
       {
	ambient 1
	diffuse 0
       }
     }
     texture
     {
       pigment
       {
         image_map
         {
           png "solarsys/ev11612_land_ocean_ice_8192_POV.png"
           map_type 1
           interpolate 2
         }
       }
       finish { F_Standard_Planetary_Surface }
     }
   }
   sphere // Earth, clouds
   {
     0, 1.000783928 // clouds 5 kms above surface
     texture
     {
       pigment
       {
	image_map
	{
	  png "solarsys/cloud_combined_8192a_alpha.png"
	  map_type 1
	  interpolate 2
	}
       }
       finish { F_Standard_Planetary_Surface }
     }
   }
   rotate -y*clock
   SetAxis(bodies[3][10], bodies[3][11])
   scale <bodies[3][1], bodies[3][2], bodies[3][3]>/sc
   translate Pos_Earth/sc
}


What went wrong?

See you in Khyberspace!

Yadgar


Post a reply to this message


Attachments:
Download '2012-05-13 earth, take 46 - north pole from 12,000 kms.png' (594 KB)

Preview of image '2012-05-13 earth, take 46 - north pole from 12,000 kms.png'
2012-05-13 earth, take 46 - north pole from 12,000 kms.png


 

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