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 / 1103
1102  |  1104
Subject: 
Re: Modeling the magnifying glass in POV-Ray
Newsgroups: 
lugnet.cad
Date: 
Sun, 28 Feb 1999 17:05:00 GMT
Viewed: 
847 times
  
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--

And the result:

    http://www.math.uio.no/~fredrigl/technic/formel/formel-test.jpg

It's kinda fun, but it takes a lot of fiddeling before one gets a nice
result.  Keep in mind that is is commonly easier to focus by adjusting
the refraction than by adjusting the position of the magnifying glass.
This practice is probably cheating, though.

BTW: The model has a lot of unofficial/unfinished parts.  Some of these
are available from

    http://www.math.uio.no/~fredrigl/technic/ldraw/

Fredrik



Message has 1 Reply:
  Re: Modeling the magnifying glass in POV-Ray
 
Fredrik Glöckner wrote in message ... (...) 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 } (...) (25 years ago, 28-Feb-99, to lugnet.cad)

Message is in Reply To:
  Re: Modeling the magnifying glass in POV-Ray
 
(...) I didn't mean a part which was transformed with L3P, I meant to model the magnifying glass individually in POV-Ray, and including this model in an L3P'd model. Anyway, I am quite sure that POV-Ray does this refraction. The amount of refraction (...) (25 years ago, 27-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