I would like use the webplayer to put interactive panoramas online – interactive 360 panoramas as in Quicktime VR etc – like those eg. on Panodigg
www.panodigg.com
Panorama navigation is different from standard mouse look in the kinetics of the mouse drag interaction. Most significantly, the panning (tilting) gets faster the further you drag from the original click point. This is the Lingo (Shockwave) I use to do this
on mouseDown me
set startV = the mouseV
set startH = the mouseH
repeat while the mouseDown
mypan = member(“newBox”).cameraRotation[2]
mytilt = member(“newBox”).cameraRotation[1]
myroll = member(“newBox”).cameraRotation[3]
set tDX = -(the mouseH - startH) / 1800.0
set tDY = -(the mouseV - startV) / 1800.0
mypan =mypan + tDX
mytilt = mytilt + tDY
if mytilt >90 then
set startV= the MouseV
set tDY = -(the mouseV - startV) / 300.0
if tDY > 0 then
set tDY = 0
end if
end if
if mytilt <-90 then
set startV= the MouseV
set tDY = -(the mouseV - startV) / 300.0
if tDY < 0 then
set tDY = 0
end if
end if
member(“newBox”).cameraRotation = vector(mytilt, mypan, 0)
end
Could someone be so kind as to indicate how one might do this in Unity3d?
thanks
Peter M