POV-Ray : Newsgroups : povray.binaries.images : Sunglasses / One way glass Server Time
6 Nov 2024 08:17:06 EST (-0500)
  Sunglasses / One way glass (Message 1 to 4 of 4)  
From: Rick Measham
Subject: Sunglasses / One way glass
Date: 13 Feb 2005 01:44:48
Message: <420ef760@news.povray.org>
These are the sunglasses referred to in my post in P.G.

I'm trying to get the lens material looking right.

In the detail view you'll note the extra reflections of the lines of the 
ball are back reflected and you end up with an annoying pattern being 
visible through the glass.

(Also, the glasses feel like they're too big to me. Agree?)

Just to settle your minds, if you're wondering what brand of glasses 
netballs prefer .. the detail of the side will show a "POV-Ray Ban" logo :)


Post a reply to this message


Attachments:
Download 'glasses.jpg' (41 KB)

Preview of image 'glasses.jpg'
glasses.jpg


 

From: Rick Measham
Subject: Re: Sunglasses / One way glass
Date: 13 Feb 2005 02:23:09
Message: <420F0060.8060307@nomail>
> Rick Measham wrote:
> 
>> In the detail view you'll note the extra reflections of the lines of 
>> the ball are back reflected and you end up with an annoying pattern 
>> being visible through the glass.

Darren New wrote:
> Maybe it's because both the front and back surface of the glass is 
> mirrored, and the light is reflecting back and forth?

It would be. I'm just past considering myself a newbie, but not at the 
point where I know how to apply a different surface to the back of an 
object. (Lens is sphere - smaller_sphere)

A pointer would be great at this point.

Cheers!
Rick


Post a reply to this message

From: Slime
Subject: Re: Sunglasses / One way glass
Date: 13 Feb 2005 02:33:33
Message: <420f02cd$1@news.povray.org>
> > Maybe it's because both the front and back surface of the glass is
> > mirrored, and the light is reflecting back and forth?
>
> It would be. I'm just past considering myself a newbie, but not at the
> point where I know how to apply a different surface to the back of an
> object. (Lens is sphere - smaller_sphere)

I think there are two issues here:
 - internal reflections bouncing back and forth within the lens are
undesired
 - you want the lens to look different depending on whether you look through
the front or the back

To fix the first problem, simply specify an interior_texture on the whole
object which has no reflection:

interior_texture {
pigment {rgbt 1}
}

Then any rays which pass through the object will only be affected by the
texture information on the outer surface; when they hit the inner surface on
the way out, they'll just pass right through.

The second thing, if I understand it right, can be taken care of by using a
different texture on each sphere. On the "outer" sphere, which creates the
surface that we're currently looking through, make your dark-sunglass
texture which has very little transparency and lots of reflection. On the
"inner" sphere, the one being cut out of the outer one, apply a
mostly-transparent texture with reflection. Then the appearance of the lens
will change depending on which way you look through it.

So you'll end up with this:

difference {
sphere {...
texture {dark_texture}
}
sphere {...
texture {clear_texture}
}
interior_texture {
pigment {rgbt 1}
}
}

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Marc Jacquier
Subject: Re: Sunglasses / One way glass
Date: 14 Feb 2005 07:25:40
Message: <421098c4$1@news.povray.org>

news:420F0060.8060307@nomail...
> > Rick Measham wrote:
> >
> It would be. I'm just past considering myself a newbie, but not at the
> point where I know how to apply a different surface to the back of an
> object. (Lens is sphere - smaller_sphere)
>
> A pointer would be great at this point.
>
Hi
I think if you give a non-reflective texture to your smaller sphere, it'll
keep it while the csg may have a reflective texture and an interior

Marc


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.