Jump to content
  • Advertisement

Archived

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

guts

water

This topic is 5558 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

hi! i just finished my geomipmap terrain. now i want to implementate water + a reflection of the landscape on the water. i already know how to implement the water, but there are so many ways to the reflection on the water. which methode do you prefer? i''m thinking of cubemaps, but i''m not sure how i could implementate this in my engine. thanks in advance. guts

Share this post


Link to post
Share on other sites
Advertisement
I think sphere mapping runs faster, but cube mapping looks better. There both pretty straight forward to implement. I''m not sure (i havent'' done any dynmaic environment mapping), but i think with dynamic cube/sphere maps, the cube map would be easier to develop (just 6 renders of the scene) where as with sphere maps you have to fish bowl the image (could somebody confirm this?)

Share this post


Link to post
Share on other sites
With cube mapping though, could you get away with just 5 sides of the cube, since water will mostly be in a planar surface?

Another method would be just a straight forward stencil reflection, if the water was flat.

[edited by - jamessharpe on September 23, 2003 3:30:14 PM]

Share this post


Link to post
Share on other sites
the dynamic sphere map sounds good.

is this correct:

activate a pbuffer,
position the camera ... (where)
render scene onto pbuffer
render the scene normally
bind the pbuffer as the water texture
render water

so where shall i position the camera before rendering the scene onto the pbuffer ?!

Share this post


Link to post
Share on other sites
quote:
Original post by Martin Foerster
666 is no problem.
Believing in god and doing things because of god is sick!

Nothing wrong with that either, depending what what "things" one is doing. Killing people and crap like that. . . eh. . . Yeah, sick. . .

Back on topic: from where would one render the cubemap for such a large reflective surface? Obviously for a relatively small object (compared to the landscape), one would render the cubemap from the location of the centre of the object. However, it appears quite a bit more complicated a matter for a large scale water surface. . .

Share this post


Link to post
Share on other sites
quote:
Original post by guts
so, were shall i position my cam?


It seems to me that the best place to position the camera is found by reflecting its position about the plane of the water.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!