Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Dragun

Water in the original Quake?

This topic is 5536 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m looking through the Quake 1 source and I cannot find the code on their water morphing. Does anybody know what I''m talking about and the actual name of it so I can google it?

Share this post


Link to post
Share on other sites
Advertisement
by water morphing i gather you mean the texture effect on the water. it''s done by simply playing around with the texture co-ordinates of the water polygons to make it looks like it''s rippling and sifting.

and no, i dont know where the code is located in the q1 source

Share this post


Link to post
Share on other sites
I''m talking about the software renderer :

If I remember well, water has its own scanline renderer
''class'' and the ''morphing'' (I''d call it distorsion) effect
is done using two 1D lookup tables.

If you look for that particular low level rendering routine,
you should find the name of the LUTs and then its reference
in the code.

Hope it helps

Share this post


Link to post
Share on other sites
Are you talking about the effect when you swim in the water?
Or is it when you look at the water surface?

Share this post


Link to post
Share on other sites
You could do something similar using the texture matrix. Mark
Kilgard has an example here:

http://www.opengl.org/developers/code/mjktips/projtex/

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!