Search found 25 matches

by hfeist
Wed Aug 21, 2013 2:56 am
Forum: Pano2VR general
Topic: open a fancybox programatically?
Replies: 2
Views: 3077

Re: open a fancybox programatically?

the solution I ended up with is this function centeredPopup(id){ $.fancybox.open({ type: 'ajax', 'autoScale': true, 'transitionIn': 'elastic', 'transitionOut': 'elastic', 'speedIn': 500, 'speedOut': 300, 'margin':10, 'padding':10, 'modal':false, 'autoDimensions': true, 'centerOnScroll': true, 'href'...
by hfeist
Wed Aug 21, 2013 12:31 am
Forum: ActionScript
Topic: add hotspot where user clicks? (using AS3)
Replies: 13
Views: 33669

Re: add hotspot where user clicks? (using AS3)

I got it working only to discover the HTML5 version gets very sluggish after only a small number of hotspots generated this way. Such is life...
by hfeist
Mon Aug 19, 2013 5:49 pm
Forum: Pano2VR general
Topic: open a fancybox programatically?
Replies: 2
Views: 3077

open a fancybox programatically?

I'm trying to open a fancybox from within a pano2vr panorama. I have a hotspot url trigger: javascript:centeredPopup(17); In the underlying page I have: function centeredPopup(id){ $.fancybox.open({ 'autoScale': true, 'transitionIn': 'elastic', 'transitionOut': 'elastic', 'speedIn': 500, 'speedOut':...
by hfeist
Fri Aug 16, 2013 4:08 am
Forum: ActionScript
Topic: add hotspot where user clicks? (using AS3)
Replies: 13
Views: 33669

Re: add hotspot where user clicks? (using AS3)

well the client was happy despite the inexact positioning but now they want it without flash. so i've tried to use your code in js. the values seem to be working but i'm stuck at the insertion of the dot within the panorama $(document).ready(function(e) { //alert('started'); $('#container').click(fu...
by hfeist
Thu Aug 08, 2013 6:14 am
Forum: ActionScript
Topic: add hotspot where user clicks? (using AS3)
Replies: 13
Views: 33669

Re: add hotspot where user clicks? (using AS3)

yes, that'll work very well. the hotspot is at dead centre. no calculating required at all my task though is to allow visitors to click willy nilly wherever they'd like to leave a comment while exploring a condo. moving the scene around to line up crosshairs seems to have somewhat of a military flav...
by hfeist
Tue Aug 06, 2013 5:43 am
Forum: ActionScript
Topic: add hotspot where user clicks? (using AS3)
Replies: 13
Views: 33669

Re: add hotspot where user clicks? (using AS3)

getting closer, at least as far as pan goes. the dots are close to where the mouse clicks when you're near the center and near the edges but wander away in no man's land between private function getMouseUp(e:Event):void { var sc:uint=this.stage.stageWidth/2; var mx:int=mouseX; var pan:Number = vr.pa...
by hfeist
Sat Aug 03, 2013 6:31 am
Forum: ActionScript
Topic: add hotspot where user clicks? (using AS3)
Replies: 13
Views: 33669

Re: add hotspot where user clicks? (using AS3)

I'm really flailing with this. I'm hoping someone can take a look at this and guide me toward a better approach. My thinking is to grab the mouseX as a percentage of the stage width then multiply the fov with that to get a position within it left or right of pan. Then I try to add that to the curren...
by hfeist
Mon Jul 29, 2013 7:11 pm
Forum: ActionScript
Topic: add hotspot where user clicks? (using AS3)
Replies: 13
Views: 33669

Re: add hotspot where user clicks? (using AS3)

Thanks for the very generous and thoughtful reply. No, i'm trying to create the hotspots within Flash, not on the external html page. With this code a hotspot is created inside the vr.pano at the centre of the current screen: function getMouseUp(e:Event) { var p = vr.pano.getPan(); var t = vr.pano.g...
by hfeist
Sun Jul 28, 2013 6:14 pm
Forum: ActionScript
Topic: add hotspot where user clicks? (using AS3)
Replies: 13
Views: 33669

Re: add hotspot where user clicks? (using AS3)

ok, now I understand that the pan/tilt parameters refer to the spherical coordinates of the hotspot. x/y are from another dimension.

now need to find the pan/tilt coordinates where the user clicks.

doable?
by hfeist
Sat Jul 27, 2013 4:45 pm
Forum: ActionScript
Topic: add hotspot where user clicks? (using AS3)
Replies: 13
Views: 33669

add hotspot where user clicks? (using AS3)

I'm trying to find a way to ask users to click on a pano wherever they'd like to leave a comment. I would add a small dot as a marker where the user clicked. i would also save those coordinates and then in another panorama i would retrieve all the comments and coordinates from a database and create ...
by hfeist
Tue Jan 04, 2011 5:32 am
Forum: ActionScript
Topic: Error #1009 on Pano2VR - Flash API sample
Replies: 5
Views: 6291

Re: Error #1009 on Pano2VR - Flash API sample

I am also having problems with the Flash API example. I have version Pano2VR 2.3.4 using Flash 10 and when attempting to add the code for detecting hotspot clicks vr.pano.onClickQtHotspot=function(id:Number,title:String,url:String,target:String) { // add your code here! trace(e + "," + tit...
by hfeist
Mon Jun 23, 2008 3:40 am
Forum: Pano2VR general
Topic: rotoscope video possible?
Replies: 3
Views: 3776

Re: rotoscope video possible?

I managed to get it to work with FPP

http://www.visualdiagnostics.ca/VISUALD ... bedded.asp

unfortunately their technology isn't as friendly as pan2vr's
by hfeist
Sat Jun 21, 2008 4:49 pm
Forum: Pano2VR general
Topic: tweening properties
Replies: 9
Views: 7231

Re: tweening properties

another tweak to pan the shortest distance

var dif=Math.abs(endPan-pan);
if (dif>180) {
if (pan>0) {
pan-=360;
} else {
pan+=360;
}
}
by hfeist
Sat Jun 21, 2008 1:29 am
Forum: Pano2VR general
Topic: tweening properties
Replies: 9
Views: 7231

Re: tweening properties

Here's a snippet to avoid panning the long way around when the difference between start of the pan and the end is more than 180 degrees var pan=vr.pano.getPan(); var tilt=vr.pano.getTilt(); var fov=vr.pano.getFov(); // add this bit if (Math.abs(endPan-pan)>180) { pan=pan-360; } // var panHit=false; ...
by hfeist
Fri Jun 20, 2008 8:29 pm
Forum: Pano2VR general
Topic: tweening properties
Replies: 9
Views: 7231

Re: tweening properties

Well I bit the bullet and wrote a crude function to achieve this. If you can see how to add easing to make it less abrupt I'd certainly like to hear. function panTo(endPan,endTilt,endFov,destination) { vr.pano.addEventListener(Event.ENTER_FRAME, panEnterFrame); var pan=vr.pano.getPan(); var tilt=vr....