POV-Ray : Newsgroups : povray.general : Too many layers? : Solution Server Time
12 Aug 2024 11:18:27 EDT (-0400)
  Solution  
From: Anthony Bennett
Date: 17 Feb 1999 23:41:41
Message: <36CB9B13.80956562@panama.phoenix.net>
I tried your solution Mr. Parker, but warp only seems to work with pigment
and not texture, which is what I am using for the stars. I have included the
code I'm using to make stars, if you find that I'm doing it the stupid way,
please let me know.

Mr. Tyler, your first suggestions  were a bit off the mark. I prolly just
didn't explain well enough. I have a problem expressing myself using words.
Telepathy would probably channel just what I want to say. I'll have to wait
'till I evolve that. =)

Anyway... the solution I finally used was, the background was made with a
gradient pigment and the stars and blue part were an image map I made
quickly in Photoshop. (Done before I read your suggestion, Mr. Tyler). I put
a render of it in the binaries.images section so you can see it.

Thanks again for being to prompt and kind to help me.


/*   old code   */
#declare WhiteSpot =
pigment
{
 cylindrical
 color_map
 {
  [0 .05 color rgbt <0,0,0, 1> color rgbt <0,0,0, 1>]
  [.05 1 color rgbt <4,4,4,-3> color rgbt <4,4,4,-3>]
 }
 rotate 90*x
}

#declare Box =
pigment
{
 boxed
 color_map
 {
  [0 .05 color rgbt <0, 0, 0, 1> color rgbt <0, 0, 0, 1>]
  [.05 1 color rgbt <1, 1, 1, 6> color rgbt <1, 1, 1, 6>]
 }
 scale <1,1,20>
}

#declare WhiteTri =
texture
{
 pigment
 {
  average
  pigment_map
  {
   [1 WhiteSpot]
   [1 Box translate 1.2*y]
   [1 Box translate -1.2*y rotate 36*z ]
   [1 Box translate -1.2*y rotate -36*z ]
  }
  scale .75
 }
}

#declare Whitestar =
texture {WhiteTri scale .25  translate <2.5,2,0>}
texture {WhiteTri scale .25 rotate  72*z translate <2.5,2,0>}
texture {WhiteTri scale .25 rotate -72*z translate <2.5,2,0>}


Post a reply to this message

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