[hugin-ptx] Re: Pure JavaScript pano viewer

2009-08-14 Thread Bruno Postle

On Wed 01-Apr-2009 at 09:30 +0100, Bruno Postle wrote:
On Wed 01-Apr-2009 at 01:11 -0700, Bart.van.Andel wrote:

Well, this page here suggests that 3D is very well possible with the
canvas element:

http://www.xs4all.nl/~peterned/3d/

That's exactly how it can be done, there is everything here for a
no-plugin cubic panorama viewer, and the speed is comparable to
flash panoramas.

Here's another very lively example, just using canvas and 
javascript:
http://gyu.que.jp/jscloth/touch.html

BSD licensed too:
http://gyu.que.jp/jscloth/parpevision.js
http://www.slideshare.net/gyuque/mozilla-party-2009-canvas-programming

-- 
Bruno

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-07 Thread Bart.van.Andel

Did you post a test blogpost so we can take a peek at it?
Otherwise, there are (free) products on the market to reduce/obfuscate
javascript code, for instance JSMin [1], YUI Compressor [2] and Dojo
Compressor [3]. This might help fit the javascript code into the blog.
I don't know what exact restrictions apply, so I cannot guarantee this
will work.

Best,
Bart

[1] http://crockford.com/javascript/jsmin
[2] http://developer.yahoo.com/yui/compressor/
[3] http://dojotoolkit.org/docs/shrinksafe

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-07 Thread Ir. Hj. Othman bin Hj. Ahmad

The html and javascript files were successfully combined and tested
locally.


http://sabahheaven.blogspot.com/
When exported to blogspot, I had to remove html headers, but actually
blogspot will remove headers for you automatically. headers such as
body, html

I use blogspot the most because it is the most stable among my sites
but friends don't appreciate the 2D picture representation of a 360
degree panorama because of the distortions.

I need to get a pano viewer for blogspot. Your javascript is the most
ideal,  if only I can make it to work.

Thank you so much for the tips. I was not aware of them before. I had
to delete comments manually.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-04 Thread Ir. Hj. Othman bin Hj. Ahmad

I had tested it locally. It worked but my main aim for a javascript
based viewer is to use it for blogspot.

I tried but failed. Somehow blogspot blocks some scripts.
Initially the script is too large so I deleted all comments so that
all scripts and forms were not corrupted but it still does not work.

I had deleted some headers. Maybe that could be the reason.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-02 Thread Bart.van.Andel

On 2 apr, 02:33, Yuval Levy goo...@levy.ch wrote:
 Bart.van.Andel wrote:
  I don't want to be wasting the
  mentor's, GSOC's or my own resources on a project which is bound to
  fail for lack of time...

 if you can't work full time on your GSoC project, than it is better not
 to apply. Too bad,

Exactly my thought.

 I really like the Javascript viewer, even though I
 would prefer if the mouse controls would be like traditional VR viewers
 (inverted left and right).

I gave that one a thought, but decided somehow that inverted left and
right belong to viewers which also implement autoscroll. I'll add it
as an option (which is really too easy), because the idea attracts me
as well. Autoscroll can be added fairly easily as well, although it's
probably useless when the speed is only 3 fps.

Best,
Bart
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread Bart.van.Andel

 I don't mind hosting.

Great!

 What type of traffic can we expect?

Very little. It's only the html and js that have to be hosted, the
images can be hosted anywhere. The example html uses one picture
directly from my Picasa photo album and two other images I found using
Google.

I´m a bit busy right now, but when I get more time, I´ll update the
html and js so parameters (like hFovDst and mode) can be tweaked more
easily. Tweaking is already possible, but at the moment a call to
setMode is needed to propagate the changes to the individual div
elements.

Best,
Bart
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread Bart.van.Andel

 Well, this page here suggests that 3D is very well possible with the
 canvas element:

 http://www.xs4all.nl/~peterned/3d/

 That's exactly how it can be done, there is everything here for a
 no-plugin cubic panorama viewer, and the speed is comparable to
 flash panoramas.

Cubic panoramas: yes.
Other types: challenge.

Hey, GSOC is approaching... ;-)

Best,
Bart
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread Bart.van.Andel

Thanks (a lot) to Dale, a pretty minimalistic demo can now be viewed
here:
http://www.tatteredmoons.org/jspanoviewer.html

Best,
Bart
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread smb . nyx

Bart

This is an excellent piece of Javascript coding..

I have tried using the script on my website, rather than hosting the
demo examples; see http://www.miltonpanoramic.co.uk/javascriptviewer.php
. From my initial experiments the examples you gave were just too slow
(10seconds redraw) so I decided to scale the image down to get a
faster movement..

However now trying the http://www.tatteredmoons.org/jspanoviewer.html
with FireFox I find I can view the Trucks in Car-Park pano as fast
and smooth as any flash / java plugin I've used.. It seems that
Internet Explorer is much slower..

At Home and at Work, with IE7 the redraw is just too slow, 5s and 10s
respectively
At Work with FireFox 2, the redraw is lightning fast.

What are other people finding?

Given this I think I will try using the script on fullsize panoramas
on my website, then testing in other browsers.

Regards
Stephen

On Apr 1, 9:38 am, Bart.van.Andel bavanan...@gmail.com wrote:
 Thanks (a lot) to Dale, a pretty minimalistic demo can now be viewed
 here:http://www.tatteredmoons.org/jspanoviewer.html

 Best,
 Bart
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread Yuval Levy

Bart.van.Andel wrote:
   Cubic panoramas: yes.
 Other types: challenge.
 
 Hey, GSOC is approaching... ;-)

want to apply? the deadline is April 3, and I think that this is a 
project worth considering.

Yuv

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread David Haberthür

Hey Bart

 Over the past two weeks, I've built a panorama viewer using only
 standard html and javascript. It expects full or partial cylindrical/
 equirectilinear panoramas. The renderer works with div elements
 containing vertical slices of the input image, so fisheye type
 panoramas cannot be displayed. Maybe a future version using a canvas
 could overcome this limitation (and add some speed...)

That looks impressive, great work.

 If someone could host a demo (the unpacked version of the archive,
 optionally beautified a bit with some style rules), please let me
 know, so I can link to it from the project home page! Maybe we could
 feature it on the Hugin home page?

I've downloaded the code, fiddled a bit with the html (mostly to make
sure the panorama is always in the middle of the window, no matter how
you resize it) and uploaded an example here:
http://habi.gna.ch/jspanoviewer/
I've also added two more presets to the list :)

Will keep a close eye on this!
Cheers, Habi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread Bart.van.Andel

Hi all,

Great to see that I'm not the only one who likes the idea of a
javascript panorama viewer :)

Regarding speed, I've been fiddling around a bit myself with the
current version, and here are some of my (mostly quite obvious)
findings:

 - Smaller dimension of input image: faster
 - Smaller dimension of panorama viewer: faster
 - Less vertical slices (larger wSlice): faster (but less accurate)
 - Smaller visible part of the input image (smaller vertical field of
view): faster. Compare MODE_PRESSx to MODE_NORMAL or MODE_PANNINI for
example.
 - Google Chrome or Firefox versus Internet Explorer: faster.

I've tested the script on my new laptop (Core2 Duo at 2.23 GHz), my 4
year old desktop (Athlon64 at 2.2 GHz) and a pretty recent computer at
my job, with the current html file (720x300 pixels). It doesn't run
nearly as smooth as most Flash viewers, but 1 or 2 frames per second
using IE, and a little more using Chrome and Firefox. Considering it's
just Javascript, I found this pretty okay. But of course I hope to get
newer versions to run faster. It's open source, so others are of
course welcome to contribute.

Best,
Bart
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread Bart.van.Andel

On 1 apr, 15:26, Yuval Levy goo...@levy.ch wrote:
 Bart.van.Andel wrote:

    Cubic panoramas: yes.

  Other types: challenge.

  Hey, GSOC is approaching... ;-)

 want to apply? the deadline is April 3, and I think that this is a
 project worth considering.

I'm limping on two legs here (Dutch saying, haha). I'd love to get
this thing working, but first I have to finish my studies. And this
summer is the absolute deadline. After that, I won't be a student
anymore, plus I seriously need a vacation... So probably, this isn't
gonna work well with a GSOC, or is it? I don't want to be wasting the
mentor's, GSOC's or my own resources on a project which is bound to
fail for lack of time...

Maybe I'm guessing wrong, if so, please elaborate!

Best,
Bart
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread David Haberthür

Hey Bart

[snip]

 I've tested the script on my new laptop (Core2 Duo at 2.23 GHz), my 4
 year old desktop (Athlon64 at 2.2 GHz) and a pretty recent computer at
 my job, with the current html file (720x300 pixels). It doesn't run
 nearly as smooth as most Flash viewers, but 1 or 2 frames per second
 using IE, and a little more using Chrome and Firefox. Considering it's
 just Javascript, I found this pretty okay. But of course I hope to get
 newer versions to run faster. It's open source, so others are of
 course welcome to contribute.

Now that I'm home I've also tested it on OS X (10.5.6, on a MacBok Pro  
with 2GB RAM @ 2.33 GHz).
With both Safari (3.2.1) and Firefox (3.0.8) the script works fine if  
the images are not too big.
The preset Twin Lakes is slow (less than 1frame/sec), my presets  
with the Baldachin (on http://habi.gna.ch/jspanoviewer/) work quite  
well, nearly realtime.

just my 0.02$, have a nice evening.

habi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread Bruno Postle

On Wed 01-Apr-2009 at 11:33 -0700, Bart.van.Andel wrote:

I've tested the script on my new laptop (Core2 Duo at 2.23 GHz), my 4
year old desktop (Athlon64 at 2.2 GHz) and a pretty recent computer at
my job, with the current html file (720x300 pixels). It doesn't run
nearly as smooth as most Flash viewers, but 1 or 2 frames per second
using IE, and a little more using Chrome and Firefox.

For me two of the panoramas were very slow, about 3 fps, the 'parking 
lot' panorama is extremely smooth and comparable to a flash/java 
viewer.

-- 
Bruno

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread RizThon
For me two of the panoramas were very slow, about 3 fps, the 'parking
lot' panorama is extremely smooth and comparable to a flash/java
viewer.
Yup same here, parking lot is quite smooth and thus quite usable, but the
others are still too slow...But just like the others I like the idea of a
javascript pano viewer!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Pure JavaScript pano viewer

2009-04-01 Thread Yuval Levy

Bart.van.Andel wrote:
 I don't want to be wasting the
 mentor's, GSOC's or my own resources on a project which is bound to
 fail for lack of time...

if you can't work full time on your GSoC project, than it is better not 
to apply. Too bad, I really like the Javascript viewer, even though I 
would prefer if the mouse controls would be like traditional VR viewers 
(inverted left and right).

Yuv

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
hugin and other free panoramic software group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---