Thread: Fisheye lens
View Single Post
Old 19th November 2007, 20:53   #7 (permalink)
julvr
Vertex
 
julvr's Avatar
 
Join Date: Nov 2006
Posts: 25
Thomas -- you mentioned using a mesh lens... I would think using an formula would give you a much nicer result

I just tried it and it seems to work great -- take two formula objects with the following formula:

x=(v-0.5));
y=(u-0.5) ;
r=sqrt(x*x+y*y);
z=(-(cos(r) * 0.6)+0.5);

Flip one of them to be opposite of the other such that the concave sides face outwards -- give them both glass shaders, and position them in front of your camera.


John
julvr is offline   Reply With Quote