Sphere Wave by Dot Merix14th Sep 2004 14:38
|
---|
Summary Creates an interesting wave effect on on a sphere. (Beginners 3d) Description This sets spheremapping on a 3d sphere with an image. It then rotates the sphere around to create an interesting wave effect. Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com load image "dots.bmp",1 make object sphere 1,2 set sphere mapping on 1,1 sync on sync rate 60 do yrotate object 1, wrapvalue(Object angle y(1)+1) `zrotate object 1, wrapvalue(Object angle z(1)+1) `xrotate object 1, wrapvalue(object angle x(1)+1) sync:loop |