1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Water refraction

Discussion in 'Unreal 2' started by Metakill, Mar 31, 2001.

Thread Status:
Not open for further replies.
  1. Metakill

    Metakill Inhumane

    Joined:
    Feb 18, 2000
    Messages:
    2,430
    Likes Received:
    0
    Will Unreal II properly handle water refraction, the distortion of depth as seen by viewers looking down at it? Well, this may seem like a trivial thing, but it is really the only thing left in these 3-d games which is not true to life. And I'm sure todays gfx cards could handle it if someone was clever enough to invent an efficient algorithm. If you don't know what I'm talking about, look into the deep end of a pool (in real life) and observe that it looks shallower than when you are actually in it.
     
  2. cairey

    cairey New Member

    Joined:
    Feb 17, 2000
    Messages:
    12
    Likes Received:
    0
    Ah, I don't think will see this for a while. You would need some serious hardware to pull this off. Think of all the different angles. Where the light source is brightness, colour
     
  3. Metakill

    Metakill Inhumane

    Joined:
    Feb 18, 2000
    Messages:
    2,430
    Likes Received:
    0
    Well...

    Yes, to be sure, it would be very difficult to actually model it after real light refraction, but it wouldn't be so hard to, say, make a quick and dirty algorithm that treated the surface of the water as a viewport with different depth properties than air. After all, considering the rumored polygon-density of Unreal II, it's going to be making multi-million 3d calculations per second; I bet somebody who was really clever could pull it off.
     
  4. StormHammer

    StormHammer Storminator

    Joined:
    Feb 27, 2000
    Messages:
    57
    Likes Received:
    0
    Sounds good to me

    I think Metakill is right. It should be possible with all the recent technological advancements that have been made in game engines.

    Red Faction has its GeoMod tech, Severance has it's great shadows and rippling reflections, and there are other games out there implementing realistic ballistics tech so you have to start thinking about wind velocity when targeting at range.

    Why not use a simple portal to emulate the effect of water refraction?

    Water (or any transparent/translucent liquid) has always been tricky to show in games. Noone has yet developed an engine that shows water realistically. Some have proper rippling reflections (like Severance), some have translucency (like Unreal), but few have both, and none to my knowledge currently have water refraction.

    If any engine should be able to pull this off, it should be the Unreal 2 engine.

    However, it depends how hard it is to do, and whether or not the time spent putting such a feature in is considered worthwhile enough. If it has no real effect on gameplay, then they should leave it out, and concentrate on making the game longer and more complex, IMHO.
     
  5. Deathwing

    Deathwing Raucous Rodentia

    Joined:
    Mar 15, 2000
    Messages:
    1,792
    Likes Received:
    0
    The technology may be there, but not the hardware to run it. That'll come eventually, but not as soon as Unreal 2.
     
  6. Metakill

    Metakill Inhumane

    Joined:
    Feb 18, 2000
    Messages:
    2,430
    Likes Received:
    0
    Technology inflation

    I think all this newer technology has made programmers lazier. No computer ever reaches its full potential before its replaced by something more "convenient" to work with. All it takes is one clever wise-ass to find an easy way to do this. I think I'll get started...

    P.S. I think something like this definitely affects gameplay because it creates much more suspensioin of disbelief.
     
  7. Metakill

    Metakill Inhumane

    Joined:
    Feb 18, 2000
    Messages:
    2,430
    Likes Received:
    0
    One solution...

    The FOV # command lets you change your field of view, distorting your perspective (the wider your view, the more fish-eyed it becomes). It should be easy to use the surface of the water as a viewport that simply had a different FOV than the air.

    I think increasing the FOV and forshortening the depth in relation to the actual water depth would create a very realistic effect.
     
  8. Requiem

    Requiem New Member

    Joined:
    Dec 27, 2000
    Messages:
    9
    Likes Received:
    0
    It should be - a simple optical calculation

    I don't see any technological problem in this subject.
    The depth/size of an object in a liquid is calculated by a simple optics formula. (the ones who studied optics will know what I'm talking about). It does NOT depend on light sources of any kind. It only depends on your angle of view, along with the liquid's light transparency.
     
  9. Slick_Willy

    Slick_Willy Anyone Else Want Some?

    Joined:
    May 19, 2000
    Messages:
    590
    Likes Received:
    0
  10. Lodev

    Lodev New Member

    Joined:
    Sep 3, 2000
    Messages:
    556
    Likes Received:
    0
    Hehe :)

    I'm just for fun making, from scratch, a 3D engine with powerbasic. This is the ugliest and slowest 3D engine that ever existed, BUT, it has refraction :D It traces every ray from your eye to the level, for every pixel seperately, and the refraction is simple to make by just bending the rays.

    But now I have to solve some trigonometric problems first otherwise I'll never be able to rotate the camera around...
     
  11. Metakill

    Metakill Inhumane

    Joined:
    Feb 18, 2000
    Messages:
    2,430
    Likes Received:
    0
    Bet it wasn't as ugly as the one i made on my old Amiga 1000. It had light sourcing, but no ray tracing or transparacy. However, for a 12 Mhz machine, it ran like lightning. It could handle about 30 polygons before the frame rate became intolerable. I used fixed point math to speed everything up.
     
  12. Lodev

    Lodev New Member

    Joined:
    Sep 3, 2000
    Messages:
    556
    Likes Received:
    0
    Mine doens't even have polygons! Space is described in the form of small dots, like molecules but of course not that small :) I think it's called voxels

    if powerbasic would have supported more than 16 colors, I'd be able to make the whole thing a little nicer already
     
Thread Status:
Not open for further replies.

Share This Page