POV-Ray : Documentation : 1.4.2.6 Why won't the textures in stars.inc work with my sky_sphere?
  POV-Ray 3.6 Documentation Online View  
1.4.2.5 Why are there strange dark pixels or noise on my CSG object?   1.4.2.7 When I use filter or transmit with my .tga image map nothing happens.

1.4.2.6 Why won't the textures in stars.inc work with my sky_sphere?

The only thing that works with a sky_sphere is pigments. Textures and finishes are not allowed. Do not be discouraged though because you can still use the textures in stars.inc with the following method:

Extract only the pigment statement from the declared textures. For example:

texture
{
  pigment { color_map { [0 rgb ..][.5 rgb ..][1.0 rgb ..] } scale .. }
  finish { .. }
}

becomes:

pigment { color_map { [0 rgb ..][.5 rgb ..][1.0 rgb ..] } scale .. }

The reason for this is that sky_sphere does not have a surface, it is not an actual object. It is really just a fancy version of the background feature which extracts a color from a pigment instead of being a flat color. Because of this, normal and finish features, which depend on the characteristics of the surface of an object for their calculations, cannot be used. The textures in stars.inc were intended to be mapped onto a real sphere, and can be used something like this:

sphere
{ 0, 1
  hollow // So it doesn't interfere with any media in the scene
  texture { YourSkyTexture }
  scale 100000
}
1.4.2.5 Why are there strange dark pixels or noise on my CSG object?   1.4.2.7 When I use filter or transmit with my .tga image map nothing happens.


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