PDA

View Full Version : Panorama Alpha Channel


TimF
03-09-2007, 10:11 AM
Hiya,

How about the possibility of creating alpha channels on the panoramic images. eg.
mypic_f.jpg (normal pano pic)
mypicAlpha_f.jpg (alpha mask pano pic)

That way you would layer underneath the panorama another movie to give the impression of being inside something which is moving. Say a window you could look out of in a house and see the trees moving in the background.

Just an idea, wondered if there is any mileage in it :)

Cheers
Tim

PS. NICE product, I only bought it the other day and I am sooo impressed !!!!!

Denis
03-10-2007, 04:59 PM
I will show you soon how to make it if you have some Flash experience. Possible for only future 2.0 version. :)

TimF
03-10-2007, 11:43 PM
Hi Denis,

Yep, I have a reasonable knowledge of Flash so I should be able to follow you, although my AS3 is non-existent, my AS1 and AS2 is fairly reasonable.

Can't wait for version 2.0 ! :wink:

Denis
03-13-2007, 12:46 AM
Can't wait for version 2.0 ! :wink:

Me too. 8)

TimF
03-25-2007, 12:24 PM
I will show you soon how to make it if you have some Flash experience. Possible for only future 2.0 version. :)

Hi Denis,

Any update on a quick tutorial for this ?

And well done on getting V2.0 out. Looks much more comprehensive than before and I know that I am going to have loads of fun with this !

Cheers, you are a star !!

Denis
03-27-2007, 10:06 AM
I have an idea how to implement this, but did't try it yet. I will test in free time. :)

Denis
03-31-2007, 07:36 PM
http://flashpanoramas.com/player/examples/earthTrans.html
:)
Main problem is not to make holes in pano image (just use png files with transparency channel), but to draw some below the panorama.

I made a special swf file and load it as a spot. This is more simple and useful than to load the panorama inside another Flash movie I think.

AS3 code how to place the MovieClip below the panorama image (source of earthTransApp.swf spot):
// wait for stage attachment (more reliable the ADDED_TO_STAGE event)
var waitTimer:Timer = new Timer(10);
waitTimer.addEventListener("timer", waitForStage);
waitTimer.start();

function waitForStage (event:Event) {

if (stage==null) {
return;
} else {
waitTimer.stop();
}

var mc:MovieClip = new MovieClip();

// attach a movieclip directly to the stage
stage.addChild(mc);

// place it to the bottom of display objects stack
stage.setChildIndex(mc,0);

// draw some
mc.graphics.beginBitmapFill(new Logo());
mc.graphics.moveTo(0,0);
mc.graphics.lineTo(stage.stageWidth*2,0);
mc.graphics.lineTo(stage.stageWidth*2,stage.stageH eight*2);
mc.graphics.lineTo(0,stage.stageHeight*2);
mc.graphics.lineTo(0,0);
}

XML file of the panorama:
http://flashpanoramas.com/player/examples/earthTrans.xml

So, now tell me, what the point? 8)
Looks useless for now. :)