Closed Thread Icon

Topic awaiting preservation: just a simple povray coding question (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21523" title="Pages that link to Topic awaiting preservation: just a simple povray coding question (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: just a simple povray coding question <span class="small">(Page 1 of 1)</span>\

 
rubberbandman
Obsessive-Compulsive (I) Inmate

From:
Insane since: Apr 2004

posted posted 04-23-2004 21:25

I am kinda new to povray and I was having some trouble getting the difference of two cylinders to work and I was wondering if anyone could take the time to look over the code and give me a heads up. Thanks

Here is the code..... its the difference inside of the #declare feel free to call me an idiot if it is something really stupid!

camera {
location <0, 0, -10>
look_at <2,0,0>


}

background { rgb Brown }
light_source { <100, 100, 10> White}// ==== Standard POV-Ray Includes ====


cylinder {
-2*x, 5*x, 1
texture {
pigment { color Yellow }
} }

cylinder {
4*x, 7*x, .5
texture {
pigment { color Yellow }
} }


#declare lens785 = difference {
cylinder { <1,0,0> , <2,0,0> , 3 }
cylinder { <1,0,0> , <2,0,0> , 2.5}
}

object { lens785 rotate y*90 }

rubberbandman
Obsessive-Compulsive (I) Inmate

From:
Insane since: Apr 2004

posted posted 04-23-2004 22:15

Nevermind... I would like to first state that I am an idiot and I realized that I had to make the second cylinder bigger than the first or else it doesnt work.... duh

« BackwardsOnwards »

Show Forum Drop Down Menu