Intégrer une image en ligne dans une visite ?  

Partagez vos trucs et astuces ici ou demandez de l'aide sur Panotour / Panotour Pro !
Pas de rapport de bug (de quelque sorte) dans ce forum !
User avatar
vincen
Member
 
Posts: 854
Joined: Fri Mar 13, 2009 11:30 am
Location: Grenoble, France

Intégrer une image en ligne dans une visite ?

by vincen » Sun Nov 28, 2010 2:27 pm

Bonjour,

Je cherche désespérément à  intégrer l'affichage sur un hotspot d'une image en surimpression au milieu de l'écran (image qui est en ligne sur mon serveur !). J'ai mis l'URL de mon image dans le champ URL mais quand je clique sur le Hotspot l'image apparait dans un nouvel onglet du browser et non au milieu de ma visite en surimpression ! Si je choisis HTML cela ne marche évidemment pas !

Une idée de comment faire cela ?

Merci,

Vincèn
Blog: http://www.skivr.com
My shop for panoramic photographs: http://magasin.skivr.com
Nodal Ninja 4 R-D16 on Benro Tripod + Ultimate R1 on Nodal Ninja P2 + Nikon D800 + Nikkor 10.5 + Nikkor 14/24 f/2.8 +Pentax 645D

no avatar
mediavets
Moderator
 
Posts: 14288
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

by mediavets » Sun Nov 28, 2010 2:43 pm

Why not just use another copy of the image for the tour?
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

User avatar
vincen
Member
 
Posts: 854
Joined: Fri Mar 13, 2009 11:30 am
Location: Grenoble, France

by vincen » Sun Nov 28, 2010 2:48 pm

mediavets wrote:Why not just use another copy of the image for the tour?

impossible as it's an image refreshed automatically on website (generated by a camera) !

Vincèn
Blog: http://www.skivr.com
My shop for panoramic photographs: http://magasin.skivr.com
Nodal Ninja 4 R-D16 on Benro Tripod + Ultimate R1 on Nodal Ninja P2 + Nikon D800 + Nikkor 10.5 + Nikkor 14/24 f/2.8 +Pentax 645D

no avatar
mediavets
Moderator
 
Posts: 14288
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

by mediavets » Sun Nov 28, 2010 3:21 pm

vincen wrote:
mediavets wrote:Why not just use another copy of the image for the tour?

impossible as it's an image refreshed automatically on website (generated by a camera) !

Vincèn

OK - I understand now.

Two options:

1. Use the Link/HTML option - I think that should work although you suggest it doesn't. I think this is the relevant krpano documentation - if I recall correctly the Link/HTML feature is in fact an implementation of the krpano HTML textfield plug-in:
http://krpano.com/plugins/textfield/

2. If you can control the name and location of the automatically generated camera image then make those (namre and location) match a 'dummy' image linked as Link/Object in PTP when creating the tour, such that the system overwrites that 'dummy' image with the automatically generated camera image.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

User avatar
vincen
Member
 
Posts: 854
Joined: Fri Mar 13, 2009 11:30 am
Location: Grenoble, France

by vincen » Sun Nov 28, 2010 4:00 pm

mediavets wrote:1. Use the Link/HTML option - I think that should work although you suggest it doesn't. I think this is the relevant krpano documentation - if I recall correctly the Link/HTML feature is in fact an implementation of the krpano HTML textfield plug-in:

Don't work, well at least not as expected as it opens a new page in browser to display the picture, so not good for me :/

mediavets wrote:2. If you can control the name and location of the automatically generated camera image then make those (namre and location) match a 'dummy' image linked as Link/Object in PTP when creating the tour, such that the system overwrites that 'dummy' image with the automatically generated camera image.

Too complicated and not easy for each update of the tour but that's a good idea ;)

vincèn
Blog: http://www.skivr.com
My shop for panoramic photographs: http://magasin.skivr.com
Nodal Ninja 4 R-D16 on Benro Tripod + Ultimate R1 on Nodal Ninja P2 + Nikon D800 + Nikkor 10.5 + Nikkor 14/24 f/2.8 +Pentax 645D

User avatar
ygilquin
Kolor Team
 
Posts: 200
Joined: Wed Sep 29, 2010 9:00 am
Location: Francin

by ygilquin » Mon Nov 29, 2010 2:24 pm

My suggestion:
Create a new html (for example: mypopup.html) document with code describing what you want to be displayed in the popup. For example in your case, one image:
Code: Select all
<img src="http://www.webcam-chambery.com/photos/mairie.jpg"/>

Add a link to this new document in html field (to your local mypopup.html) and set appropriate dimensions to make the popup fit with your content.
Enjoy :)
--
Yann G.
www.kolor.com

no avatar
mediavets
Moderator
 
Posts: 14288
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

by mediavets » Mon Nov 29, 2010 3:47 pm

ygilquin wrote:My suggestion:
Create a new html (for example: mypopup.html) document with code describing what you want to be displayed in the popup. For example in your case, one image:
Code: Select all
<img src="http://www.webcam-chambery.com/photos/mairie.jpg"/>

Add a link to this new document in html field (to your local mypopup.html) and set appropriate dimensions to make the popup fit with your content.
Enjoy :)

Yann,

Did you try this? - I thought this would work too but I couldn't get to work.

My linked HTML file contains code like your suggestion:
Code: Select all
<img src="http://www.islehamchurch.org.uk/images/logo_church.jpg"/>

When I run the tour I get an error message:




Last edited by mediavets on Mon Nov 29, 2010 3:48 pm, edited 1 time in total.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

User avatar
vincen
Member
 
Posts: 854
Joined: Fri Mar 13, 2009 11:30 am
Location: Grenoble, France

by vincen » Mon Nov 29, 2010 4:22 pm

ygilquin wrote:My suggestion:Create a new html (for example: mypopup.html) document with code describing what you want to be displayed in the popup. For example in your case, one image:
Add a link to this new document in html field (to your local mypopup.html) and set appropriate dimensions to make the popup fit with your content.

Already thought about it but it opens a new tab/window in browser to display the picture so bad idea :(

Vincèn
Blog: http://www.skivr.com
My shop for panoramic photographs: http://magasin.skivr.com
Nodal Ninja 4 R-D16 on Benro Tripod + Ultimate R1 on Nodal Ninja P2 + Nikon D800 + Nikkor 10.5 + Nikkor 14/24 f/2.8 +Pentax 645D

no avatar
mediavets
Moderator
 
Posts: 14288
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

by mediavets » Mon Nov 29, 2010 4:28 pm

vincen wrote:
ygilquin wrote:My suggestion:Create a new html (for example: mypopup.html) document with code describing what you want to be displayed in the popup. For example in your case, one image:
Add a link to this new document in html field (to your local mypopup.html) and set appropriate dimensions to make the popup fit with your content.

Already thought about it but it opens a new tab/window in browser to display the picture so bad idea :(

Vincèn

It will if you link to a URL, but Yann and I are talking about linking to HTML - which uses the krpano textfield plug-in to create a pop-up window within a tour.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

User avatar
ygilquin
Kolor Team
 
Posts: 200
Joined: Wed Sep 29, 2010 9:00 am
Location: Francin

by ygilquin » Mon Nov 29, 2010 5:37 pm

mediavets wrote:Yann, Did you try this? - I thought this would work too but I couldn't get to work.

Yes I did and it worked fine.
--
Yann G.
www.kolor.com

no avatar
mediavets
Moderator
 
Posts: 14288
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

by mediavets » Mon Nov 29, 2010 6:26 pm

ygilquin wrote:
mediavets wrote:Yann, Did you try this? - I thought this would work too but I couldn't get to work.

Yes I did and it worked fine.

On local playback or only when tour is on-line?

Any ideas as to why it didn't work for me?

I'm using Panotour Pro V1.5 RC1 on Windows XP 32-bit SP3.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

User avatar
vincen
Member
 
Posts: 854
Joined: Fri Mar 13, 2009 11:30 am
Location: Grenoble, France

by vincen » Tue Nov 30, 2010 7:29 am

ygilquin wrote:
mediavets wrote:Yann, Did you try this? - I thought this would work too but I couldn't get to work.

Yes I did and it worked fine.

Yep works fine here also :) http://visites.skivr.com/visites/7_Laux/2010-2011/index.html I have only one little problem, I have a white border around the picture. Select the green I on Pleynet or Snowpark (these ones are setup with 640*480 size in PTP) but I still have a white border around :( How to remove that ?

Thanks,

Vincèn
Blog: http://www.skivr.com
My shop for panoramic photographs: http://magasin.skivr.com
Nodal Ninja 4 R-D16 on Benro Tripod + Ultimate R1 on Nodal Ninja P2 + Nikon D800 + Nikkor 10.5 + Nikkor 14/24 f/2.8 +Pentax 645D

no avatar
mediavets
Moderator
 
Posts: 14288
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

by mediavets » Tue Nov 30, 2010 11:39 am

vincen wrote:Yep works fine here also :) http://visites.skivr.com/visites/7_Laux/2010-2011/index.html
Vincèn

Does it work when played back locally from/on your Mac, or only after the tour is put on-line?
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

User avatar
vincen
Member
 
Posts: 854
Joined: Fri Mar 13, 2009 11:30 am
Location: Grenoble, France

by vincen » Tue Nov 30, 2010 12:43 pm

mediavets wrote:Does it work when played back locally from/on your Mac, or only after the tour is put on-line?

I never try it local because all I get is a big black window when I play it locally, visit doesn't work at all locally ! so I always put it online to test !

Vincèn
Last edited by vincen on Tue Nov 30, 2010 12:44 pm, edited 1 time in total.
Blog: http://www.skivr.com
My shop for panoramic photographs: http://magasin.skivr.com
Nodal Ninja 4 R-D16 on Benro Tripod + Ultimate R1 on Nodal Ninja P2 + Nikon D800 + Nikkor 10.5 + Nikkor 14/24 f/2.8 +Pentax 645D

User avatar
ygilquin
Kolor Team
 
Posts: 200
Joined: Wed Sep 29, 2010 9:00 am
Location: Francin

by ygilquin » Tue Nov 30, 2010 1:32 pm

mediavets wrote:Does it work when played back locally from/on your Mac, or only after the tour is put on-line?

It worked locally for me.
--
Yann G.
www.kolor.com

no avatar
mediavets
Moderator
 
Posts: 14288
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

by mediavets » Tue Nov 30, 2010 3:26 pm

ygilquin wrote:
mediavets wrote:Does it work when played back locally from/on your Mac, or only after the tour is put on-line?

It worked locally for me.

Yann,

I'm still having problems with this. Perhaps you can tell me where I'm going wrong.

I'm running PTP 1.5 RC1 on Windows XP-32 with SP3.

Screenshot 1 - shows how I have configured the hotspot to link to HTML and the name of the HTML file.

Screenshot 2 - shows the content of that linked HTML file displayed in WordPad.

Screenshot 3 - shows the relevant section of the XML file generated by PTP.

Screenshot 4 - shows the error message displayed when attempting to run the tour locally.

Screenshot 5 - shows my edit of the XML to replace the 'include' tag contents with the contents of my linked HTML file.

Screenshot 6 - shows that the tour now plays as expected locally.

So what am I doing wrong with my linked HTML file?












Last edited by mediavets on Tue Nov 30, 2010 3:30 pm, edited 1 time in total.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.


Return to Utilisation Panotour et Panotour Pro 1.8

Who is online

Users browsing this forum: No registered users and 1 guest