Compile error...

Brought the latest rev down via SVN and tried to compile within Flash...

I get this error:
Camera3D.as, Line 56 1020: Method marked override must override another method.

Comments?

hmmm. I don't get that when

hmmm. I don't get that when I compile, so I am not sure how that is happening. I just checked the source and line 56 of Camera3D.as is the orbit function, which unless I am greatly mistaken is wholly unused in PanoSalado, and so you should be able to delete the whole function from Camera3D.as and try to compile again.

Try that and let me know what happens.

Zephyr

__________________

Zephyr Renner

Strict Mode...

I usually keep things in Strict Mode, so maybe that's why the error shows up for me?

I'll try removing it - as you're right, orbits probably won't be necessary for what we're doing here...

I'll post what happens.

I compile in strict mode

I compile in strict mode also, so I don't believe that is the problem.

I just checked the code again, and the orbit function in Camera3D overrides the orbit function in CameraObject3D. And that error is saying that your copy of CameraObject3D does not have an orbit function. The CameraObject3D in the repository definitely does have an orbit function. So you might try downloading the whole source over again.

Zephyr

__________________

Zephyr Renner

re: Compile error (can't replicate issue)

djsegler wrote:

Brought the latest rev down via SVN and tried to compile within Flash...

I get this error:
Camera3D.as, Line 56 1020: Method marked override must override another method.

Comments?

Hey DJ:

When I compile out PanoSalado.as using strict mode, I get no error...

?

I'm using revision 90 from the source repository.

__________________

Patrick Cheatham
FlashPanos.com creator, Panoramic Photographer
Got PanoSalado?

Update...

It helps to have the latest version of PV3D and the associated path described in Flash CS3!!

Compiles without issue now.

Gets stuck at the preview image, or if I remove that and load just the pano, I just a get an all white image...

Used the basic XML format, known good images, and referred to MuduleLoader.swf in my html file...

Common issue?

re: Compile error (update)

Hey DJ:

Hmmm -- that's not an issue I've encountered. If you can put an example online and link to it, I might be able to see what's going on. Are you getting any Flash debug errors?

The current source version for download is rev 93 -- is this the one you're using now?. The source download contains all the PV3D classes you'll need, plus Panosalado of course. If you compile using the source download do you still see the issue? If you don't compile new source, but simply modify the XML in the examples download (which contains already compiled SWFs) do you see the issue?

__________________

Patrick Cheatham
FlashPanos.com creator, Panoramic Photographer
Got PanoSalado?

Compile Error...

I downloaded the latest rev for the source...

I can compile without errors...

I've also tried using the example SWFs from the example download...

They all result in the same result - a white image instead of the pano...

Here's my HTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>

<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="window.scrollTo(0,0);">

<script type="text/javascript" src="files/swfobject.js"></script>      
<div id="flashcontentpanosalado">text which appears when user needs to install Flash</div>

    <script type="text/javascript">
                var so = new SWFObject("ModuleLoader.swf?xml=PanoSalado.xml", "pano", "800", "500", "9.0", "#FFFFFF");
                so.addParam("allowFullScreen","false");
                so.addParam("allowScriptAccess","sameDomain");
                so.write("flashcontentpanosalado");
                window.document["pano"].focus();
</script>

    </center>
</body>
</html>

And here's my XML:

-<PanoSalado>
        -<layer id="PanoSalado" url="PanoSalado.swf?xml=PanoSalado.xml" depth="0" onStart="loadSpace:myPano">

                -<spaces>
                        -<space id="myPano">
                                -<cube id="Pano1Cube">
                                        <file id="front">images/image_f.jpg</file>
                                        <file id="right">images/image_r.jpg</file>
                                        <file id="left">images/image_l.jpg</file>
                                        <file id="top">images/image_u.jpg</file>
                                        <file id="bottom">images/image_d.jpg</file>
                                        <file id="back">images/image_b.jpg</file>
                                </cube>
                                <hotspot id="logo" useHandCursor="false" pan="-20" tilt="-10">
                                        <file>images/simple_logo.png</file>
                                </hotspot>
                        </space>
                </spaces>      
        </layer>
</PanoSalado>

Ideas?

My images are stored in an image folder and the swwfs / xml files are stored in the root. The images are also labeled according to the XML naming convention. But it's almost as if it can't find the images...

I'm sure it's something simple and obvious...

re: Compile error (update)

Hey DJ:

Try changing "id" to "face"... a la:

<cube id="Pano1Cube">
     <file face="front">images/image_f.jpg</file>
     <file face="right">images/image_r.jpg</file>
     <file face="left">images/image_l.jpg</file>
     <file face="top">images/image_u.jpg</file>
     <file face="bottom">images/image_d.jpg</file>
     <file face="back">images/image_b.jpg</file>
</cube>

If you're using the latest source, this will do the trick.

I am working on a writeup of the entire XML schema as we speak. This info about "face" versus "id" should be in a read me in the downloads; if not, apologies.

We changed to face so that the id attribute can be used in more general ways. I was running into issues with using id to create unique infos about the element(s), and PanoSalado wanted to use id internally. So, now you can have your ids and faces too.

__________________

Patrick Cheatham
FlashPanos.com creator, Panoramic Photographer
Got PanoSalado?

Hmmmm....

Well - I tried the face vs id recommendation and I get the same thing.

I've used the swf's that were part of the Rev93 zip file that contains and example build... same thing.

I don't get any errors when I compile and everything seems to be located in the right place...

Note, however, that if I bring in a equirectangular preview image first, I do get that to work - but it never loads the pano cube faces and just stays in preview...

I assume that the compiled SWF's don't rely on anything else other than:

HTML file to play ModuleLoader.swf [located in the root]
XML to load images (and the one I'm using is the most simplistic I think!) [located in the root]
image files named appropriately with (l,r,f,b,u,d) [located under "images" subdirectory]
ModuleLoader and PanoSalado SWF files [located in the root]

What am I missing? This seems like it should be pretty basic...

re: Cube faces not loading

Hey there:

Hmmm... is right. Wink

* Your image files can be named anything you want; the "face" attribute takes care of putting them in the right place.

What do you get in the trace output or debugger window, or the activity viewer/media info of the browser? are the files trying to load? If you can post an example online, it would be most informative.

Cheers,

Patrick

__________________

Patrick Cheatham
FlashPanos.com creator, Panoramic Photographer
Got PanoSalado?

re: Cube faces not loading (solution)

OK!

There's a limit to how simple the XML can be... A bit of a surprise to myself (erk). Wink

The below XML works A-OK. I removed all attributes, and the preview would load fine. I added in onTransitionEnd="loadSpace:concert1", expecting PanoSalado to pick up the ball and run with it. No luck. So, in order for PanoSalado to do onTransitionEnd, you need to make there be a transition first.

<PanoSalado>
        <layer id="PanoSalado" url="PanoSalado.swf?xml=PanoSalado.xml" depth="0" onStart="loadSpace:preview">
                <spaces>
                        <space id="preview"
                                transition="tween:currentSpace.viewport.alpha from 0 over 1.5 seconds using Expo.easeInOut then do preview.onTransitionEnd"
                                onTransitionEnd="loadSpace:concert1"
                        >
                                <sphere id="preview_pano">
                                        <file>images/cube_concert_1/preview.jpg</file>
                                </sphere>
                               
                        </space>
                        <space id="concert1"
                                onTransitionEnd="removeLastSpace"
                        >
                                <cube id="concert1_pano">
                                        <file face="front">images/cube_concert_1/Concert_1-sm_f.jpg</file>
                                        <file face="right">images/cube_concert_1/Concert_1-sm_r.jpg</file>
                                        <file face="left">images/cube_concert_1/Concert_1-sm_l.jpg</file>
                                        <file face="top">images/cube_concert_1/Concert_1-sm_u.jpg</file>
                                        <file face="bottom">images/cube_concert_1/Concert_1-sm_d.jpg</file>
                                        <file face="back">images/cube_concert_1/Concert_1-sm_b.jpg</file>
                                </cube>
                        </space>
                </spaces>      
        </layer>
</PanoSalado>

Keep us posted!

[edit]
I'm working from the rev_93_example download, and just editing the XML there. If even a "just a cube" presentation doesn't work for you, we'll have to keep parsing out what's going on.

__________________

Patrick Cheatham
FlashPanos.com creator, Panoramic Photographer
Got PanoSalado?

About on transition end

Yeah, onTransitionEnd was originally picked up automatically, before I change the transition engine to use the tweens and all, and I still need to go back in and fix that.

So call it a bug with a work around.

Zephyr

__________________

Zephyr Renner

The saga continues...

Zephyr,

It appears that the simplest XML file does not work for me - even if I apply the face mod above instead of id...

I am able to get my images to load using your XML file from the rev 93 example - but I have to have some of the pano settings defined to make it work...

Another weird thing is that if I try to load in another png in place of the existing hotspot used in the 1st pano of the example, my image is so small I can't even see it (just a dot). It's about 2x in size and is a hotspot graphic I've used many times before... I haven't had a chance to really dive into the documentation yet to see if there is a scale function for the XML file - but, I wouldn't think there should be such a huge reaction / difference by PS with loading another graphic for a hotspot.

I'll keep the questions coming as I make more progress. I've been distracted on some other stuff and it's kept me from really diving in like I'd like.

Thanks for the help.

Trouble with QTVR parsing

Hi, i'm using this version of pano rev_93, it's great Release.
But i have a problem with parsing of quicktime file with php files.
I have a Mamp Server on mac and work correctly with php, but when i changing my xml files with personal code and press new hotspot, nothing appear, file php don't parse the movie.
I think what happend it's different from online example, wich splitting in 6 different images the movie, anyone have the same problem with QTVR space?
my hotspot code:

<hotspot id="toConcert1"
                                        pan="80"
                                        tilt="5"
                                        segments="2"
                                        oneSide="false"
                                        smooth="true"
                                        useHandCursor="true"
                                        onClick="loadSpace:qtvr_preview"
                                >

                                        <file>graphics/hotspot.png</file>
                                </hotspot>

this code it's the same of online version:

                        <space id="qtvr_preview"
                                interactive="0"
                                transition="tween:currentSpace.viewport.alpha from 0 over 3 seconds using Expo.easeInOut then do qtvr_preview.onTransitionEnd"
                                onTransitionEnd="loadSpace:qtvr_fullres"
                        >

                                <qtvr id="qtvr_preview_pano" applyCameraSettingsFromThisQTVR="true">
                                        <mov>PSQTVRPreviewParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov</mov>
                                </qtvr>
                               
                        </space>
                        <space id="qtvr_fullres"
                                interactive="0"
                                transition="tween:currentSpace.viewport.alpha from 0 over 3 seconds using Expo.easeInOut then do spaces.onTransitionEnd"
                        >

                                <qtvr id="qtvr_fullres_pano" applyCameraSettingsFromThisQTVR="true">
                                        <mov>PSQTVRParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov</mov>
                                </qtvr>
                               
                        </space>

                </spaces>

thank you.
Akaro

re: Trouble with QTVR parsing

Hi Akaro!

Hmmm... Are you able to post a link to an online example? That could be most helpful.

Thanks!

Patrick

__________________

Patrick Cheatham
Forum Administrator

Hi Patrick, this is my link

Hi Patrick, this is my link test:
http://www.olografica.com/smartpanorama/

it's the same source of your release with one hotspot like a camera, this is the code:

<hotspot id="QTVRRR"
                                        useHandCursor="true"
                                        pan="10"
                                        tilt="-10"
                                        segments="2"
                                        oneSide="false"
                                        smooth="true"
                                        onClick="loadSpace:qtvr_preview"
                                       
                                >

Thanks a lot At Wits End

re: Trouble with QTVR parsing

Hi Akaro:

I get a page not found error when I go to your link...

?

Cheers,

Patrick

__________________

Patrick Cheatham
Forum Administrator

Hi Patrick, I am also facing

Hi Patrick,

I am also facing problem with playing mov file on wamp server with windows.

I have downloaded rev_128 example and modified the html and xml files as follows:

HTML
----

var so = new SWFObject("ModuleLoader.swf?xml=PanoSalado_Movie.xml", "pano", "800", "600", "9", "#000000");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
window.document["pano"].focus();

XML
----

PSQTVRPreviewParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov

PSQTVRParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov

i am not getting any output means its displaying blank screen with out movie,

I have checked the wamp server log file, and it giving this line

127.0.0.1 - - [12/Mar/2009:12:16:31 -0700] "GET /Panosalado/PSQTVRParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov HTTP/1.1" 200 24150

So can you help me what is the wrong in this process

and tell me what are all other things need to do for testing movie file on wamp server

Ramesh

XML file format for load mov file

PSQTVRPreviewParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov

PSQTVRParse.php?mov=images/qtvr_lgphoto/20070824_LG.mov