Bmp Magnify sphere effect

Blitz3D Forums/Blitz3D Programming/Bmp Magnify sphere effect

jimmyx(Posted 2006) [#1]
Hi im looking for some blitz3d code for
a bmp magnify sphere affect which
moves around the screen and bounces
of the sides.

like some of the screensaver effects you get.


Akat(Posted 2006) [#2]
its call refraction... try cubemap mode 3... is that what u want?


jimmyx(Posted 2006) [#3]
would you have some code ??


Matty(Posted 2006) [#4]
I don't know how inefficent this would be but could you do this:

Create a flat mesh in a grid arrangement, texture it with the screen shot, then move the vertices in such a way that where the magnify effect is they are expanded out radially.


Akat(Posted 2006) [#5]
u can get the sample code from within the Blitz3D example folder for cubemap..


Ross C(Posted 2006) [#6]
Or, as matty describes, except, move the UV co-ords :o)


jimmyx(Posted 2006) [#7]
anycode for this guys , or exact location


puki(Posted 2006) [#8]
I think there is an example in the code archives for something like this - I remember seeing it.


puki(Posted 2006) [#9]
Might be this one - I can't run it from here, but take a look just in case:

http://www.blitzbasic.com/codearcs/codearcs.php?code=578