Ever experimented with distorting the reflection a bit?
Just curious - it looks cool and all to have a perfect reflection of someone walking across a bright marble floor, or a car reflecting off a glass building as it drives by, but I was thinking it would be a wee bit more realistic if the reflection were "distorted" just a bit, maybe warbled a little - anyone experimented with any algorithms to do that?
I certainly can''t think of any that I would call easy!
Love means nothing to a tennis player
My nothing-to-write-home-about OpenGL webpage. (please pardon the popups!)
I have in the past, yes, for water..
what I did was pretty simple, but it worked fairly well...
I was projecting a reflection texture onto the surface of water (in this case a simple mesh of quads).. it was generating the texture coords for the S T and R coords... so.. what I simply did, was apply a differnt sine pattern to the Q coords of each vertex. These had to be scaled back depedning on how close you were to each axis, but it worked surprisingly well. And was realitivly fast.
| - Project-X - my mega project.. getting warmer
- | - adDeath - an ad blocker I made - | - email me - |
what I did was pretty simple, but it worked fairly well...
I was projecting a reflection texture onto the surface of water (in this case a simple mesh of quads).. it was generating the texture coords for the S T and R coords... so.. what I simply did, was apply a differnt sine pattern to the Q coords of each vertex. These had to be scaled back depedning on how close you were to each axis, but it worked surprisingly well. And was realitivly fast.
| - Project-X - my mega project.. getting warmer

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement