Refraction

Blitz3D Forums/Blitz3D Programming/Refraction

HNPhan(Posted 2003) [#1]
now i know we can do reflection easely, how about refraction? how would 1 go about cubicmapping to simulate refraction?


Neo Genesis10(Posted 2003) [#2]
Afaik, there isnt a way. Cubemapping wont help here. On my pervious post podperson mentioned the use of pixel shaders but I dont know how to implement them in Blitz.


fredborg(Posted 2003) [#3]
Try playing around with SetCubeMode, it's not documented, but it does change the way the cube mapping acts.


HNPhan(Posted 2003) [#4]
ya i tried setcube mode and using texture blend to 1

altough it kinda looks like refraction, its really not accurate at all.


Gabriel(Posted 2003) [#5]
On my pervious post podperson mentioned the use of pixel shaders but I dont know how to implement them in Blitz.


You can't. Pixel Shaders weren't introduced until DX8 and Blitz3d is DX7.