To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 1105
1104  |  1106
Subject: 
Re: Modeling the magnifying glass in POV-Ray
Newsgroups: 
lugnet.cad
Date: 
Sun, 28 Feb 1999 20:09:18 GMT
Viewed: 
942 times
  
Fredrik Glöckner wrote in message ...
I've given this a try now.  I haven't actually modeled the LEGO
magnifying glass, because I don't have it in front of me, and I don't
want to start a new flame war.

Seriously, though, I just made a simple lens in POV-Ray.  Here's the
code I used:

--begin--
object{
union{
   union{sphere {<-40,0,0>, 50 clipped_by{box{<0,-50,-50>,<10,50,50>}}}
         sphere {<40,0,0>, 50 clipped_by{box{<-10,50,50>,<0,-50,-50>}}}
         pigment{rgb <1,1,1> filter 1} finish {refraction 1 ior 1.15}}
   torus{30,2 rotate <0,0,90> pigment{rgb <0,0,0>}}}
translate <220,0,0>
rotate <0,0,-20>
rotate <0,-30,0>
translate <0,-60,0>
}
--end--


It's a cool idea, quite a cute effect.   Is there some advantage to using
the clipped spheres as opposed to a straight intersection?

e.g.

intersection
{
    sphere {<-40,0,0>, 50 }
    sphere {<40,0,0>, 50 }
    pigment{rgb <1,1,1> filter 1} finish {refraction 1 ior 1.15}}
}

Are intersections slow in POV?  or does it introduce some strange visual
artifacts?

Tim



Message has 2 Replies:
  Re: Modeling the magnifying glass in POV-Ray
 
(...) For a lense, you'd get double refraction, I imagine. Jasper (25 years ago, 28-Feb-99, to lugnet.cad)
  Re: Modeling the magnifying glass in POV-Ray
 
(...) Duh, probably not! I'm new to POV-Ray, so I just used the first technique I could find suitable... Intersections looks a lot more simple. Thanks for the input. By the way, the scene gets even more cute by adding reflections to the surface of (...) (25 years ago, 1-Mar-99, to lugnet.cad)

Message is in Reply To:
  Re: Modeling the magnifying glass in POV-Ray
 
I've given this a try now. I haven't actually modeled the LEGO magnifying glass, because I don't have it in front of me, and I don't want to start a new flame war. Seriously, though, I just made a simple lens in POV-Ray. Here's the code I used: (...) (25 years ago, 28-Feb-99, to lugnet.cad)

15 Messages in This Thread:







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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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