Sijun Forums Forum Index
Log in to check your private messages
My Profile Search Who's Online Member List FAQ Register Login Sijun Forums Forum Index

Post new topic   Reply to topic
   Sijun Forums Forum Index >> Digital Art Discussion
View previous topic :: View next topic  
Author   Topic : "Urgent Pov-Ray help needed"
HardCoil
member


Member #
Joined: 26 Dec 2000
Posts: 88
Location: Odense, Denmark

PostPosted: Tue Apr 24, 2001 8:52 pm     Reply with quote
I really need some help here guys !! Is there any way of putting a color or a texture across the gap made by the "clipped_by" function on a sphere ? This is my script :

#include "colors.inc"
#include "textures.inc"

camera {
orthographic
location <0, 0, 10>
direction <0, 0, 1>
up <0, 7.301, 0>
right <-11.01, 0, 0>
look_at <0, 0, 0>
}
disc {<0, 0, -17.3>, <0, 0, 1> 18.22
pigment {color rgb <1, 1, 1>}
finish {ambient 1.0 diffuse 0.0}
}
#declare C = difference {
plane {<0, 0, 1>, 2.5}
plane {<0, 0, 1>, -17.3}
}
#declare T = texture {
pigment {color rgb <0.3, 0.3, 0.3>}
finish {ambient 0.2 diffuse 0.8 phong 0.4 phong_size 9}
}
sphere {
<0.01468, 0.6582, 0.704>, 1.147
texture {T}
}
#declare T = texture {
pigment {color rgb <1, 0, 0>}
finish {ambient 0.2 diffuse 0.8 phong 0.4 phong_size 9}
}
sphere {
<0.5448, 0.2278, 1.144>, 1.026
texture {T}
}
#declare T = texture {
pigment {color rgb <0, 0, 1>}
finish {ambient 0.2 diffuse 0.8 phong 0.4 phong_size 9}
}
sphere {
<4.054, 3.218, -3.893>, 1.046
texture {T}
}
#declare T = texture {
pigment {color rgb <0.9, 0.9, 0.9>}
finish {ambient 0.2 diffuse 0.8 phong 0.4 phong_size 9}
}
sphere {
<-0.6829, 0.3263, 2.045>, 0.8098
texture {T}
clipped_by {C}
}
light_source {<-500, 500, 1000> color White}

-----------------

oh and to make things more annoying it has to be a solution that can be done with search and replace or by editing the definition of "C", as my final render will have about 64000 spheres.
Back to top
View user's profile Send private message
HardCoil
member


Member #
Joined: 26 Dec 2000
Posts: 88
Location: Odense, Denmark

PostPosted: Tue Apr 24, 2001 10:43 pm     Reply with quote
Never mind. I think I figured out another way to do it.
Back to top
View user's profile Send private message
Ysg
member


Member #
Joined: 15 Jul 2000
Posts: 103
Location: Ft. Lauderdale, FL

PostPosted: Thu Apr 26, 2001 6:07 am     Reply with quote
Pov-ray! holy cow, I didn't know people still used that! I remember my excitement when I rendered a wrinkled green sphere at 320x200 res on my 386, it only took 5 hours!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
HardCoil
member


Member #
Joined: 26 Dec 2000
Posts: 88
Location: Odense, Denmark

PostPosted: Fri Apr 27, 2001 8:21 am     Reply with quote
Hehe it's for rendering molecule models. PovRay is still quite used in the biotech community. Trying to fiddle around with something made of 100.000 spheres and some surfaces in max isn't very realistic.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Sijun Forums Forum Index -> Digital Art Discussion All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2005 phpBB Group