To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 3003
3002  |  3004
Subject: 
Re: POV Help Needed
Newsgroups: 
lugnet.cad.ray
Date: 
Tue, 28 Sep 2010 15:04:28 GMT
Viewed: 
15611 times
  
In lugnet.cad.ray, Tore Eriksson wrote:
Once again, I'm stuck with POV.

Here's the lower torused parts of a minifig head:

torus{9,4 clipped_by{difference{box{<-13,4,-13>,<13,-4,13>}
cylinder{<0,0,0>,<0,4,0>,9} plane{y,0}}}translate <0,17,0>}
plane{y,21 clipped_by{difference{sphere{<0,21,0>,9} sphere{<0,21,0>,8} }
}}

And here's a "prism", an 2-D quad from an imaginary beard pattern, extruded into
3-D:

prism {linear_sweep linear_spline 0,14,4
<-4,19>,<-1.1,19>,<-1.1,17>,<-4,17>
rotate <-90,0,0>
material { L3Color0 }}

Now, I wish to clip that torus by that prism and color it black, so the black
beard pattern is all that remains from the (already clipped) torus. But I always
get lost in all these countless brackets, and I can't seem to color that torus
black, no matter where I put that material statement.

Any help to sort this out would be highly appreciated!

/Tore

Aah, never mind. I realized how stupid I was to try to clip what already is much
more clipped! Once again, less is more.

torus{9,4.001
translate <0,17,0>
clipped_by
{
    prism {linear_sweep linear_spline 0,14,4
    <4.011,19>,<-1.192,19>,<-1.192,17>,<4.011,17>}
   rotate <-90,0,0>
} material  { L3Color0 }
}



Message is in Reply To:
  POV Help Needed
 
Once again, I'm stuck with POV. Here's the lower torused parts of a minifig head: torus{9,4 clipped_by{differenc...13,-4,13>} cylinder{<0,0,0>,<0,4,0>,9} plane{y,0}}}translate <0,17,0>} plane{y,21 clipped_by{differenc...0,21,0>,9} sphere{<0,21,0>,8} (...) (14 years ago, 28-Sep-10, to lugnet.cad.ray)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR