Cube Mapping Optimization

Blitz3D Forums/Blitz3D Programming/Cube Mapping Optimization

Steve Elliott(Posted 2005) [#1]
I've been asked to post this question - anybody got any idea's?

I am using cube mapping to give a sense of water reflection in my game. To do this, I have to render 5 different views (front, back, left, right, down) to use as the water texture. In order to increase the frame rate, on each game loop I only render and update one of those views. This allows my game to stay at about 38 FPS, but it results in a choppy reflection. I have tried to actually render the 5 views each time through the game loop and the frame rate drops to 20 FPS. I just wanted to know if anyone has a better method for reflection.


jfk EO-11110(Posted 2005) [#2]
did you already implement the method described in the code archives? (6 times faster thingie)


Steve Elliott(Posted 2005) [#3]
Thanks - I'll pass that on.


Damien Sturdy(Posted 2005) [#4]
;) Linky below :)

Also, if you wish to penetrate the water and have it work, look into usnig DX Clip Planes.... works a treat when done properly :)