POV-Ray : Newsgroups : povray.binaries.images : Carpet Server Time
16 Nov 2024 00:19:17 EST (-0500)
  Carpet (Message 1 to 1 of 1)  
From: Nekar Xenos
Subject: Carpet
Date: 20 Oct 2007 03:37:21
Message: <4719b031@news.povray.org>
I've been away for a while (I just got a new job recently) and I've moved 
from magazine layout & design to billboards and vehicle wrapping which is 
totally new to me. I'm doing this design to go on a truck but my carpet 
doesn't look real enough. Any help will be appreciated.

Here is the carpet:
#declare CarpetCol= <.3,.1,.02>/2;//<.6, .4, .16>; //<1, .85, .5>; // 
<.8,.7,.5>; // <1.2,1.1,.8>*2 ; // <1, .85, .5>;  //<.8,.7,.4>;





#declare Thickness=1-Thickness2;   // :. Thickness=.1
// extrude a closed 2-D shape along an axis
prism {
  linear_sweep  // or conic_sweep for tapering to a point
  bezier_spline // linear_spline | quadratic_spline | cubic_spline | 
bezier_spline
  1.5,         // height 1
  20,         // height 2
  40,           // number of points
  // (--- the <u,v> points ---)
  <-.354, .354>, <-.263, .444>, < -.138, .5>,  < 0, .5>,
  < 0, .5>, < .275, .5>,   < .5, .275>,   < .51, 0>,
  < .51, 0>, < .5, -.275>,  < .275, -.51>,  <0, -.51>,
  <0, -.51>, < -.275, -.51>, < -.5, -.51>,   <-20, -.51>,
  <-20, -.51>, <-20, -.51>,
  <-20, -.5*Thickness>,<-20, -.5*Thickness>,
  <-20, -.5*Thickness>, <-.5, -.5*Thickness>,   <-.275, -.5> *Thickness, 
<0, -.5> *Thickness,
  <0, -.5> *Thickness, <.275, -.5> *Thickness, <.5, -.275> *Thickness,  <.5, 
0> *Thickness,
  <.5, 0> *Thickness,  <.5, .275> *Thickness,  <.275, .5> *Thickness,   <0, 
.5> *Thickness,
  <0, .5> *Thickness,  < -.138, .5> *Thickness, <-.263, .444> *Thickness, 
<-.354, .354> *Thickness
  <-.354, .354> *Thickness, <-.354, .354>, <-.354, .354>, <-.354, .354>

rotate x*90
scale <1,-1,1>
translate<.82,Bottom2+.5,0>
pigment{colour rgbt 1}
                       //finish {brilliance 4 }
                     interior {
                      media {
                 method 1 samples 1,100 absorption <3,3,2> // 15
                 scattering { 6, rgb 1 //diffuse 5 reflection 0.5 
reflection_exponent 2
                   falloff .05
                   ratio .95 frequency 1000 waves 20, 10
                   structure { cylinder{<.82,Bottom2+.5 
,1.5>,<.82,Bottom2+.5  ,20>,10 } }
                   pigment {colour rgb CarpetCol }
                   //force <-10,1> // y
                 }
                 density { rgb 2 }
                      }
                      }
hollow
double_illuminate

translate <1.18,.67,2.5>
}

-Nekar


Post a reply to this message


Attachments:
Download 'Carpet.jpg' (153 KB)

Preview of image 'Carpet.jpg'
Carpet.jpg


 

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