2013年8月12日月曜日

Perspective Sihft like Lytro

I change the last code and made a gif of perspective shift.

The rendering algorithm is simple. Just trace rays coming from the same aperture position.
The aperture is devided in to 4x4. Here is a nice fig of explanation.



The resulting gif is a bit ackward, but would be smooth as the number of division gets bigger.




0 件のコメント:

コメントを投稿