fast cubemapped simple water

Miscellaneous Forums/Graphics Showcase/fast cubemapped simple water

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.

Aha!

When I move the cube down into the water I get more of a reflection behind it! How strange! Maybe it is the vertical position of the cube camera? try moving it down or up the amount you moved the sub up to get a proper looking reflection.


In the function which updates the cube camera...

;position cubemap camera
camoffsety#=(EntityY(maincamera,True)-EntityY(entity,True))
PositionEntity camera,EntityX#(maincamera,True),EntityY#(entity,True)-camoffsety,EntityZ(maincamera,True)



...maybe?

IPete2.

ps it seemed to work better moving this camera up for me. Try half the distance as a compromise...seems to do it here.