File: table_cloth.inc

package info (click to toggle)
povray 1%3A3.7.0.8-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 146,872 kB
  • sloc: cpp: 845,005; ansic: 122,118; sh: 34,206; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,387; cs: 879; awk: 590; perl: 245; xml: 95
file content (91 lines) | stat: -rw-r--r-- 1,848 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a
// letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

// Persistence Of Vision Ray Tracer Include File
// File: table_cloth.inc
// Desc: table cloth for 'balcony.pov' demonstration scene
// Date: July/August 2001
// Auth: Christoph Hormann

// Updated: 09Aug2008 (jh) for v3.7 distribution

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

#if (version < 3.7)
  #version 3.5;
#end

#declare ClCol01=color rgb <0.8, 0.7, 0.4>;
#declare ClCol02=color rgb <0.07, 0.12, 0.4>;

#declare CPig1=
pigment {
  gradient x
  triangle_wave
  color_map {
    [0.04 ClCol01 ]
    [0.04 ClCol02 ]
    [0.06 ClCol02 ]
    [0.06 ClCol01 ]
    [0.09 ClCol01 ]
    [0.09 ClCol02 ]
    [0.13 ClCol02 ]
    [0.13 ClCol01 ]
    [0.16 ClCol01 ]
    [0.16 ClCol02 ]
    [0.18 ClCol02 ]
    [0.18 ClCol01 ]
  }
}

#declare CPig2=
pigment {
  gradient y
  triangle_wave
  pigment_map {
    [0.04 CPig1 ]
    [0.04 ClCol02 ]
    [0.06 ClCol02 ]
    [0.06 CPig1 ]
    [0.09 CPig1 ]
    [0.09 ClCol02 ]
    [0.13 ClCol02 ]
    [0.13 CPig1 ]
    [0.16 CPig1 ]
    [0.16 ClCol02 ]
    [0.18 ClCol02 ]
    [0.18 CPig1 ]
  }
}

    /*
#include "clothutil.inc"

ReadClothFile("cloth.cth")
DrawSmoothTriangles2(Points, 90, 90, on, true, "cloth.inc")
        */
#declare Table_Cloth=
mesh2{
  #include "cloth.inc"
  texture {
    uv_mapping
    pigment {
      CPig2
    }
    finish {
      ambient 0.0
      diffuse 0.6
    }
    normal {
      quilted 0.16
      scale 0.008
    }
  }
  rotate -30*z
}

object { Table_Cloth translate <3.3,2.52,0> }

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/