POV-Ray : Newsgroups : povray.newusers : using BMP as background for galaxies : using BMP as background for galaxies Server Time
5 Nov 2024 13:24:30 EST (-0500)
  using BMP as background for galaxies  
From: Chuck Roberts
Date: 25 Aug 1999 15:15:16
Message: <37C44104.12D404A0@accn.org>
I'm using the Galaxy maker to make a BMP of a space background. But when
I map it to a plane, POV for windows 3.02 gives me an illegal operation. 
How do I use a BMP as a background to a plane where Z is the plane
normal? 

Here is my code:
plane
{
  z, // <X Y Z> unit surface normal, vector points "away from surface"
  1.0 // distance from the origin in the direction of the surface normal
   clipped_by {box { <0, 0, -1>, <1, 1, 1> } }

// texture pigment {} attribute
// create a texture that lays an image's colors onto a surface
// image maps into X-Y plane from <0,0,0> to <1,1,0>
   texture { pigment {
   image_map
   {
     sys "galaxy.bmp" // the file to read (iff/gif/tga/png/sys)
     map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
     interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized
distance
     once
   } // image_map
   }
   }

}


Post a reply to this message

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