Skip to main content
gamedev.net
🔒 Locked

Prisms/Refraction

Started by Lingmops 3 replies 1.3k views
Original Post
Lingmops
Lingmops
Hi, I know this is probably me trying to run before I can walk, but can openGL handle refraction? I want to create prism objects that warp what the viewer sees behind them. I've tried looking around but I cannot find anything about this kind of thing anywhere. Is this a painless thing that I do not know how to do, or a major job of ultra-difficulty? I understand the basic physics of how refraction works, I jsut have *no* idea ow to implement it... [Edited by - Lingmops on February 14, 2005 12:58:49 PM]
angrybob
angrybob
just a case of render to texture and some fragment shader trickery
vincoof
vincoof
Exact refraction can't be achieved with today's hardware on arbitrary meshes.
Today's implementations are either texture tricks or handle very simple cases like theorically flat water surfaces.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.