POV-Ray : Newsgroups : povray.binaries.images : Twisted Sunflower (~99kbu) : Re: Twisted Sunflower (~99kbu) Server Time
17 Aug 2024 08:21:37 EDT (-0400)
  Re: Twisted Sunflower (~99kbu)  
From: Redbeard (MDJohnson)
Date: 20 Oct 2001 18:20:28
Message: <3bd1f8ac$1@news.povray.org>
"JRG" <jrg### [at] hotmailcom> wrote in message news:3bd19303@news.povray.org...
> >
> > > BTW this looks really cool. Beautiful textures.
> > Thanks!  I was really happy with the background texture.  Feels almost
> like
> > velvet.
>
> I was just wandering how you did it.
>
> --
> Jonathan.
>

The velvet?  Pretty simple, actually.  I used the following pigment within a
sky_sphere.

// A red velvet-like texture
// Michael D Johnson (red### [at] wvadelphianet)
// Use freely.  But give me credit if you can :-)
#declare C_Reds = color_map { [0.0 Black][1.0 Red * 0.5] }

pigment
{
 average
 pigment_map
 {
  [1.00
   bozo
   color_map { C_Reds}
   sine_wave frequency 4 scale 0.25
   turbulence 0.5
   omega 0.5 octaves 3 lambda 2
  ]
  [0.90
   bozo
   color_map { C_Reds}
   scallop_wave frequency 2 scale 0.25
   turbulence 0.9
   omega 0.75 octaves 4 lambda 2.5
   rotate y * 45
  ]
 }
}

Enjoy!
Michael

--
#macro M(D)#local J=strlen(D);#local _=""#while(J>0)#local _=concat(_,substr(D
,J,1))#local J=J-1;#end _#end sphere{z*9,5pigment{rgb x}}#macro N(D,J)text{ttf
"timrom.ttf"M(D)1,0 translate-J}#end#macro O(E,K)#local _=N(E,K)light_source{-
z*9rgb 1projected_through{_}}#end O("leahciM"<1.6,-.3.9>)O("nosnhoJ"<1.6.9.9>)


Post a reply to this message

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