Creating Water Surfaces - Any tips on how to achieve it

Blitz3D Forums/Blitz3D Programming/Creating Water Surfaces - Any tips on how to achieve it

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Cubemapping is your best bet. Take a look at the SetCubeFace commands and the optional texture flag. Essentially what you want to do to create a reflection is to render the world as seen from the surface to the cubemap texture. Blitz takes care of the rest when you call RenderWorld. Note than in order to render to a texture buffer you need to use RenderWorld and then CopyRect to the buffer.