POV-Ray : Newsgroups : povray.tools.poser : Refraction in materials Server Time: 26 Jan 2020 11:41:11 GMT
  Refraction in materials (Message 1 to 5 of 5)  
From: fls13
Subject: Refraction in materials
Date: 26 Aug 2006 03:15:00
Message: <web.44efbc2627fff6b343119ea00@news.povray.org>
I'd like to be able to add refraction to the eyes of my Poser figures. I've
looked thru the manual, and can't figure it out. It seems as though the
entire object must refract, but I can't get a specific material to refract.

#declare Iris_1_=
texture{pigment {color rgb <1,1,1> transmit  0}
        finish{phong 0.05490196 phong_size 162.2416 diffuse 0.5*1 ambient
rgb <0.09803922,0.09803922,0.09803922> reflection{0 }}}
texture{pigment{p_map5}
        finish{ phong 0 phong_size 162.2416 diffuse 0.5*1 ambient rgb
<0.09803922,0.09803922,0.09803922> reflection{0 }}}

That's what I have now. Any suggestions?


Post a reply to this message

From: Janet
Subject: Re: Refraction in materials
Date: 27 Aug 2006 04:10:00
Message: <web.44f119e542ee737f417511290@news.povray.org>
You can try this:

interior { ior 1.33 }  //1.33 = index of refraction for water,
                       //       I don't know what it is for eyeballs :)

"interior" must be in a material statement, not a texture statement.
Get the latest PoseRay which creates material statements rather than texture
statements and I think it should work fine.


Post a reply to this message

From: fls13
Subject: Re: Refraction in materials
Date: 27 Aug 2006 19:45:00
Message: <web.44f1f54c42ee737f707f67870@news.povray.org>
"Janet" <par### [at] attnet> wrote:
> You can try this:
>
> interior { ior 1.33 }  //1.33 = index of refraction for water,
>                        //       I don't know what it is for eyeballs :)
>
> "interior" must be in a material statement, not a texture statement.
> Get the latest PoseRay which creates material statements rather than texture
> statements and I think it should work fine.

I'm told it's 1.38. :O) Thanks for the tip!


Post a reply to this message

From: Janet
Subject: Re: Refraction in materials
Date: 28 Aug 2006 04:00:01
Message: <web.44f2697d42ee737f8903c2790@news.povray.org>
> I'm told it's 1.38. :O) Thanks for the tip!

1.38 - That sounds right. :) Let us know if it works, and if I'm not too
lazy I'll try it too. The only thing is that I think polygon objects are
hollow, which probably affects how refraction works. Also, the refraction
might work better on the cornea (or whatever the clear part is called)
rather than on the iris.


Post a reply to this message

From: fls13
Subject: Re: Refraction in materials
Date: 29 Aug 2006 02:00:01
Message: <web.44f39ea142ee737f907b08550@news.povray.org>
"Janet" <par### [at] attnet> wrote:
> > I'm told it's 1.38. :O) Thanks for the tip!
>
> 1.38 - That sounds right. :) Let us know if it works, and if I'm not too
> lazy I'll try it too. The only thing is that I think polygon objects are
> hollow, which probably affects how refraction works. Also, the refraction
> might work better on the cornea (or whatever the clear part is called)
> rather than on the iris.


The built-in glass textures in Pov have an ior of 1.5, which is awfully
close, so I'm gonna go with that for now. I may hack the files to the 1.38
and see if there's a difference down the road. :O)


Post a reply to this message

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