Get the full commented source code of

HTML5 Suika Watermelon Game

Talking about 3D, Actionscript 3 and Flash.

This is a quick experiment with two sided materials in Flare3D.

We start with this photo taken without any kind of permission from 360pixel:

And with a Flare3d sphere with a two sided material and this actionscript:

package {
	import flash.display.Sprite;
	import flash.display.BitmapData;
	import flare.basic.*;
	import flare.materials.*;
	import flare.primitives.*;
	import flare.core.*;
	public class flarePanorama extends Sprite {
		public function flarePanorama() {
			var panoBitmap:BitmapData=new BitmapData(4000,2000);
			panoBitmap.draw(new panoramicImage(4000,2000));
			var panoMaterial:TextureMaterial=new TextureMaterial("",new Texture3D("",panoBitmap));
			panoMaterial.twoSided=true;
			panoMaterial.smooth=true;
			var sphere:Sphere=new Sphere("",50,60,panoMaterial);
			sphere.rotateZ(180);
			var scene:Scene3D=new Viewer3D(this);
			scene.addChild(sphere);
		}
	}
}

We end with this result:

Drag the mouse to move the view.

I think this does not need any kind of comment, just look how I rotate the sphere by 180 degrees at the beginning. Anyway here it is the source code.

Never miss an update! Subscribe, and I will bother you by email only when a new game or full source code comes out.