more fun
This commit is contained in:
parent
fd6d4450ad
commit
2ecdb3184e
67
chain_loop.pov
Normal file
67
chain_loop.pov
Normal file
@ -0,0 +1,67 @@
|
||||
#version 3.7;
|
||||
#include "colors.inc"
|
||||
#include "rand.inc"
|
||||
|
||||
global_settings {
|
||||
assumed_gamma 1.8
|
||||
}
|
||||
|
||||
camera {
|
||||
right 1.78*x
|
||||
location <-25, -75.1, -60>
|
||||
look_at 0.1
|
||||
angle 30
|
||||
}
|
||||
|
||||
background { color rgb <.46, .09, .06> }
|
||||
|
||||
light_source { <300, 300, -1000> White }
|
||||
|
||||
#declare half_torus = difference {
|
||||
torus {
|
||||
4,1
|
||||
sturm
|
||||
rotate x*-90 // so we can see it from the top
|
||||
}
|
||||
box { <-5, -5, -1>, <5, 0, 1> }
|
||||
}
|
||||
#declare chain_segment = cylinder { <0,4,0>, <0,-4,0>, 1 }
|
||||
|
||||
#declare flip_it = x*180;
|
||||
#declare torus_trans = 8;
|
||||
#declare link_trans = torus_trans*2-2*y;
|
||||
|
||||
#declare chain_texture = texture {
|
||||
pigment { color rgb <.49, .56, .59> }
|
||||
finish {
|
||||
ambient .1
|
||||
diffuse .4
|
||||
reflection .35
|
||||
specular 1
|
||||
metallic
|
||||
}
|
||||
}
|
||||
|
||||
#declare chain_link = union {
|
||||
object { half_torus translate y*torus_trans/2 }
|
||||
object { half_torus rotate flip_it translate -y*torus_trans/2 }
|
||||
object { chain_segment translate x*torus_trans/2 }
|
||||
object { chain_segment translate -x*torus_trans/2 }
|
||||
translate y*60
|
||||
}
|
||||
|
||||
#declare chain = union {
|
||||
#declare I = 0;
|
||||
#while(I <= 8)
|
||||
#declare R = mod(I,2);
|
||||
object { chain_link translate -y*link_trans*I rotate y*( (90*R) + ( RRand(-30, 30, 1 ) ) ) }
|
||||
#declare I = I + 1;
|
||||
#end
|
||||
}
|
||||
|
||||
|
||||
//======= RENDER
|
||||
object { chain scale .45 texture { chain_texture } }
|
||||
object { chain scale .45 texture { chain_texture } translate < 10, -10, -20 > rotate y*20 }
|
||||
object { chain scale .45 texture { chain_texture } translate < 10, 30, 20 > rotate y*30 }
|
||||
|
5
helpers.inc
Normal file
5
helpers.inc
Normal file
@ -0,0 +1,5 @@
|
||||
#version 3.7;
|
||||
|
||||
#declare real_rgb = function(r, g, b) {
|
||||
color rgb<r/255, g/255, b/255>
|
||||
}
|
BIN
images/chain_loop.png
Normal file
BIN
images/chain_loop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 206 KiB |
Binary file not shown.
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 76 KiB |
BIN
images/noodles.png
Normal file
BIN
images/noodles.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
54
noodles.pov
Normal file
54
noodles.pov
Normal file
@ -0,0 +1,54 @@
|
||||
#version 3.7;
|
||||
#include "colors.inc"
|
||||
#include "rand.inc"
|
||||
|
||||
global_settings {
|
||||
assumed_gamma 1.8
|
||||
}
|
||||
|
||||
camera {
|
||||
right 1.78*x
|
||||
location <5, 20, -15>
|
||||
look_at <0,2,0>
|
||||
angle 50
|
||||
}
|
||||
|
||||
background { color rgb <74,74,74>/255 }
|
||||
light_source { <300, 300, -1000> White }
|
||||
|
||||
#declare box1 = difference {
|
||||
box { <0,0,0>, <1,1,1> }
|
||||
}
|
||||
|
||||
#declare sph1 = union {
|
||||
sphere { <.5,.5,.5>, .33}
|
||||
}
|
||||
|
||||
#declare seg1 = merge {
|
||||
#declare I = 1;
|
||||
#while(I <= 14)
|
||||
object { sph1 translate y*.5*I translate x*( RRand(-.15, .15, 1) ) }
|
||||
#declare I = I+1;
|
||||
#end
|
||||
}
|
||||
|
||||
#declare stack1 = union {
|
||||
object {
|
||||
seg1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//======= RENDER
|
||||
|
||||
#declare test = union {
|
||||
object { box1 }
|
||||
object { stack1 }
|
||||
object { stack1 rotate x*90 translate y*1 }
|
||||
object { stack1 rotate x*-90 translate z*1 }
|
||||
object { stack1 rotate z*90 translate x*1 }
|
||||
object { stack1 rotate z*-90 translate y*1 }
|
||||
pigment { color rgb <58,97,58>/255 }
|
||||
}
|
||||
|
||||
object {test rotate <45, 145, 45> }
|
Loading…
Reference in New Issue
Block a user