|
|
Here's the lead information from my file. The rest of it is specification
for several thousand spheres and triangles.
//
// Accelrys ViewerPro POV-Ray file
// Created: Sat Jun 17 12:10:44 Pacific Standard Time 2006
//
camera {
orthographic
location < 0.0, 0.0, 1000 >
right -4/3*x
angle 30.000000
look_at < 0, 0, 0 >
}
light_source { <0,0,275> rgb<1.000000,1.000000,1.000000> parallel
point_at<0.0, 0.0, 0.0> }
light_source { <-275, 0,0> rgb<0.3,0.3,0.3> shadowless}
light_source { <275, 0,0> rgb<0.3,0.3,0.3> shadowless}
background { color rgb < 1.000000, 1.000000, 1.000000 > }
object {
#declare _WLVP_line_width = 0.02;
#declare _WLVP_dot_size = 0.03;
#declare _WLVP_text_depth = 0.0;
#declare _WLVP_text_scale = 0.3;
#declare _WLVP_finish = finish { diffuse 0.45 ambient .35 specular .2
roughness .1 }
#macro triangle_texture (P1, C1, P2, C2, P3, C3)
texture {
#ifdef (triangle_base_texture)
triangle_base_texture
#end
pigment {
#if (C1.red=C2.red & C1.red=C3.red &
C1.green=C2.green & C1.green=C3.green &
C1.blue=C2.blue & C1.blue=C3.blue &
C1.filter=C2.filter & C1.filter=C3.filter &
C1.transmit=C2.transmit & C1.transmit=C3.transmit)
C1
#else
#local SX = P2 - P1;
#local SZ = P3 - P1;
#local SY = vcross(SX, SZ); average
pigment_map {
[1 onion pigment_map {[0 C1] [.85 radial pigment_map {[0 C3] [1
C2]} frequency 6]}]
[1 onion pigment_map {[0 C2] [.85 radial pigment_map {[0 C1] [1
C3]} frequency 6]} translate x]
[1 onion pigment_map {[0 C3] [.85 radial pigment_map {[0 C2] [1
C1]} frequency 6]} translate <.5, 0, .8660254>]}
matrix <1.01, 0, 0, 0, 1, 0, -.57735, 0, 1.1647, -.005, 0,
-.002>
matrix <SX.x, SX.y, SX.z, SY.x, SY.y, SY.z, SZ.x, SZ.y, SZ.z,
P1.x, P1.y, P1.z>
#end
}
}
#end
#macro colored_triangle (P1, C1, P2, C2, P3, C3)
triangle {P1, P2, P3
triangle_texture (P1, C1, P2, C2, P3, C3) finish {_WLVP_finish}}
#end
#macro colored_smooth_triangle (P1, N1, C1, P2, N2, C2, P3, N3, C3)
smooth_triangle {P1, N1, P2, N2, P3, N3 triangle_texture (P1, C1, P2,
C2, P3, C3) finish {_WLVP_finish}}
#end
union {
sphere {
<0,0,0>, 0.500000
translate <193.328003,-13.325000,-130.389999>
pigment { rgbt <0.745098,0.921569,0.411765,1.000000> }
finish { _WLVP_finish }
}
sphere {
<0,0,0>, 0.500000
translate <191.098007,-12.048000,-127.431999>
pigment { rgbt <0.745098,0.921569,0.411765,1.000000> }
finish { _WLVP_finish }
}
sphere {
"kike" <dry### [at] hotmailcom> wrote:
> I have used some of those programs to construct molecules (and proteins) and
> they export very simple textures. Only using pigment (without patterns) and
> simple finish blocks. So it should be very easy to open the pov file and
> check if everything is ok. If you dont find something wrong post the file
> or part of it.
Post a reply to this message
|
|
|
|
Greg Williams wrote:
> union {
> sphere {
> <0,0,0>, 0.500000
> translate <193.328003,-13.325000,-130.389999>
> pigment { rgbt <0.745098,0.921569,0.411765,1.000000> }
> finish { _WLVP_finish }
> }
> sphere {
> <0,0,0>, 0.500000
> translate <191.098007,-12.048000,-127.431999>
> pigment { rgbt <0.745098,0.921569,0.411765,1.000000> }
> finish { _WLVP_finish }
> }
> sphere {
It looks like this is the part you're interested in. Change the final 1
to a 0, and it should be OK. You could even do a search and replace to
change every instance of "1.000000>" (sans quotes) to "0>", and things
should be fine.
...Chambers
Post a reply to this message
|
|