initial motion
Submitted by klausesser on July 3, 2008 - 17:25.
the XML-initialmotion script:
Hi Aldo!
I made a script for initial motion in my pano as i did sometimes before. Now it crashes Safari and Firefox on my Mac G5.
I´d like to post the scripts or/and upload them somewhere together with the picture to show them here.
I don´t know if that´s a bug or just a fault due my lack of experiences . . . .
best, Klaus
the html:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SPi-V panorama</title>
</head>
<body bgcolor="#000000" style="margin:0px; overflow:hidden">
<object width=100% height=100% classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0">
<param name=src value="dswmedia/SPi-V.dcr">
<param name=swURL value="initialmotionbook.xml">
<param name=swStretchStyle value="stage">
<param name=swRemote value="swContextMenu='FALSE'">
<param name=progress value="true">
<param name=logo value="false">
<param name=bgColor value="#000000">
<embed width=100% height=100% type="application/x-director"
pluginspage="http://www.macromedia.com/shockwave/download/"
src="dswmedia/SPi-V.dcr" swURL="initialmotionbook.xml" swStretchStyle="stage" swRemote="swContextMenu='FALSE'"
progress="true" logo="false" bgColor="#000000">
</embed>the XML-initialmotion script:
<?xml version="1.0" encoding="utf-8" ?>
<tour>
<global>
<uigroup id="scriptlet#initialmotion">
<behavior object="_scene" id="scriptlet#initialmotion-start">
<action event="ready" type="setProperty" target="scriptlet#initialmotion-fov" property="active" value="true" />
<action event="ready" type="setProperty" target="scriptlet#initialmotion-pan" property="active" value="true" />
<action event="ready" type="setProperty" target="scriptlet#initialmotion-tilt" property="active" value="true" />
</behavior>
<!-- dampened ramps brings camera tilt/pan/fov to new position (until interrupted) -->
<ramp id="scriptlet#initialmotion-tilt" stepincrease="0.01" interrupt="press,key" active="false" value2="0">
<behavior id="scriptlet#initialmotion-tilt-behavior">
<action event="start" type="setProperty" target="scriptlet#initialmotion-tilt" property="value1" value='=getProperty("_camera","tilt")' />
<action event="start" type="setProperty" target="scriptlet#initialmotion-tilt" property="value" value='=getProperty("_camera","tilt")' />
<action event="change" type="setProperty" target="_camera" property="tilt" value='=getProperty("scriptlet#initialmotion-tilt","value")' />
<action event="interrupt" type="setProperty" target="scriptlet#initialmotion-tilt" property="active" value="false" />
</behavior>
</ramp>
<ramp id="scriptlet#initialmotion-pan" stepincrease="0.01" interrupt="press,key" active="false" value2="0">
<behavior id="scriptlet#initialmotion-pan-behavior">
<action event="start" type="setProperty" target="scriptlet#initialmotion-pan" property="value1" value='=getProperty("_camera","pan")' />
<action event="start" type="setProperty" target="scriptlet#initialmotion-pan" property="value" value='=getProperty("_camera","pan")' />
<action event="change" type="setProperty" target="_camera" property="pan" value='=getProperty("scriptlet#initialmotion-pan","value")' />
<action event="interrupt" type="setProperty" target="scriptlet#initialmotion-pan" property="active" value="false" />
</behavior>
</ramp>
<ramp id="scriptlet#initialmotion-fov" stepincrease="0.01" interrupt="press,key" active="false" value2="90">
<behavior id="scriptlet#initialmotion-fov-behavior">
<action event="start" type="setProperty" target="scriptlet#initialmotion-fov" property="value1" value='=getProperty("_camera","fov")' />
<action event="start" type="setProperty" target="scriptlet#initialmotion-fov" property="value" value='=getProperty("_camera","fov")' />
<action event="change" type="setProperty" target="_camera" property="fov" value='=getProperty("scriptlet#initialmotion-fov","value")' />
<action event="interrupt" type="setProperty" target="scriptlet#initialmotion-fov" property="active" value="false" />
</behavior>
</ramp>
</uigroup>
</global>
<!-- dummy scene so we can view this XML scriptlet on it's own -->
<scene id="sample-scene">
<meta>
<title>sample-scene</title>
<description>this scene demonstrates the initial movemment scriptlet</description>
<defaultview pan="360" tilt="180" fov="20"/>
</meta>
<behavior object="_scene">
<action event="ready" type="setProperty" target="scriptlet#initialmotion-pan" property="value2" value="180" />
<action event="ready" type="setProperty" target="scriptlet#initialmotion-tilt" property="value2" value="-30" />
<action event="ready" type="setProperty" target="scriptlet#initialmotion-fov" property="value2" value="68" />
</behavior>
<panoelement id="sample-pano">
<image id="sample-image"><layer class="base" type="bitmap" src="bookvr.jpg" /></image>
</panoelement>
</scene>
</tour>It can be found also on my server under: http://www.klausesser.de/book.html
fieldOfView | SPi-V dev
initial motion 3
Hi there!
I refer to my last post/mail and my difficulties to get Spiffy run with a recent made set of images.
Now i pinned down the problem to the "ImageSPIver" i use.
The problem is definitely not in the code - it´s the picture.
I replaced a pictures name in the code with a name of an older picture - and it worked.
When i use a picture i made with "ImageSPIver" actually - all browsers crash.
I tried all possible orientations of filling in the pics into "ImageSPIver" - crashes all the time.
So, what´s the hell is going on? How do i generate a jpg which Spiffy wotks with without using the "ImageSPIver"
best, Klaus
to bee seen here: http://www.klausesser.de/book.html
The picture i suspect crashes the browsers is here (don´t worry - it doesn´t crash anything . . ;-) ):
http://www.klausesser.de/bookvr.jpg
initialmotion 4
everthing´s ok! It was a very, very silly jpg-error . . . (instead of baseline there was 3pass activated - i don´t know who did it . . )
best, Klaus
Re: initialmotion 4
Sorry I could not be of more help.
Yep, unfortunately Shockwave often chokes on progressive jpegs. So its best not to use them.
I have edited your posts to have them in a single topic...