Author : polygoo


Reply
Reply
 
Thread Tools Display Modes
Scruples's Avatar
Old (#1)
This is something I have been sitting on for a while.

Fake eye refraction for viewport,



Some people should be able to understand what is going on at a glance but
for the people that don't.

To get the fake refractive lens I took the dome that is indented into the eye (Iris), froze the normals and inverted its shape before reversing the faces.
This way when BackFace Culling is turned on I only see the Fake Refractive lens at the more extreme angles, and by freezing the normals it will mirror the Iris in the way it reacts to light.

The Cornea is just a disc floating between the 2 domes of the Fake Refractive lens and the Iris, if it is placed on the Iris it will disappear at high angles and be less realistic.

I have also uploaded a Maya scene file containing the eyeball so anyone using Maya can take a look at it. [maya 2009+]


http://www.megaupload.com/?d=RDKAQYOB

I am sure this can be accomplished on a sphere with a shader but until someone makes one for the viewport this is how I will make my eyes.

It is 1260 triangles an eye but I wasn't trying to optimize....even so I think the lowest one may get would be around 150-200 triangles using this method....so def not low-poly.

another picture, shows the different components and the difference, with and without the fake refraction lens


Last edited by Scruples; 12-31-2010 at 08:35 PM..
Offline , triangle, 342 Posts, Join Date Nov 2010,  
   Reply With Quote

kodde's Avatar
Old (#2)
I did something similar to this some time back, you might find something useful there.
http://www.polycount.com/forum/showthread.php?t=69802
Offline , dedicated polycounter, 1,366 Posts, Join Date Dec 2004, Location Malmö, Sweden  
   Reply With Quote

cman2k's Avatar
Old (#3)
likewise, I worked on something similar for 3dsmax. perhaps it will be of help.
http://www.polycount.com/forum/showthread.php?t=73159
Portfolio of Carlos Montero
Project Lead: Black Mesa
Offline , triangle, 422 Posts, Join Date Nov 2005, Location Los Gatos, CA  
   Reply With Quote

Scruples's Avatar
Old (#4)
Very nice shaders!,

Thanks!, the threads have given me some ideas but now that I see them, I think your shaders are a much better option than this geometry only route.

Still though, my ATI card disagrees with almost all HLSL/CGFX shaders....I don't know if the eye shader will work for me, I guess I should test it.
Offline , triangle, 342 Posts, Join Date Nov 2010,  
   Reply With Quote

perna's Avatar
Old (#5)
If you're using normal maps you can just make the hipoly that way and bake as usual, no special shaders or tricks needed. Been doing that since the dawn of times of the dawn of the times and it looks good.
3pointstudios.com - Game Art Outsourcing
Offline , veteran polycounter, 4,101 Posts, Join Date Oct 2004, Location UK Send a message via ICQ to perna Send a message via MSN to perna Send a message via Yahoo to perna  
   Reply With Quote

Scruples's Avatar
Old (#6)
It doesn't fall apart at the high angles like the normal map method. Although I have to admit It looks exactly the same 99% of the time as the normal map way, its just that 1% when you are looking at a person from the side it would help.





Uploaded with ImageShack.us
Offline , triangle, 342 Posts, Join Date Nov 2010,  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch