Maybe you overlooked it Thuur, I had made it smaller and put it into the monitor at the end of the table.
I had to go on with the project. Can't wait for support that doesn't come
Grtz, Ton
Maybe you overlooked it Thuur, I had made it smaller and put it into the monitor at the end of the table.
I had to go on with the project. Can't wait for support that doesn't come
Grtz, Ton
I have solved it myself. If pausedonstart="true", it will answer to the alpha setting. Odd, but true.
I have placed back the video in the reception. It has an alpha value of 0.3.
In the showroom I have placed a smaller version into the monitor at the end of the table, with an alpha value of 0.1.
As can be seen, the alpha has no effect.
I hope anybody has any idea how to solve this!
Thanks, Ton
I had to remove the video in the reception as my customer wants to have a look at the tour tomorrow.
Wednesday I will put in in again.
Ton
Hi,
I ran into a problem with the videoplayer. I am using the videoplayer as a hotspot and my intention was to give it a lower alpha value.
The strange thing is that this only works in my first scene. If I put it in any other scene, the alpha setting doesn't work.
But going from the first scene to another and returning to it again, the alpha value is also gone.
I have tried every different setting I could imagine, but without any luck. Don't know the version of the videoplayer, but it is dated 16-3-2012.
This is the code I use:
<hotspot name="video4"
url="tour.data/plugins/videoplayer.swf"
alturl="tour.data/plugins/videoplayer.js"
videourl="tour.data/media/slideshownw.flv"
altvideourl="tour.data/media/slideshow.mp4"
keep="false"
visible="true"
enabled="true"
handcursor="false"
capture="false"
ath="+1" atv="0"
distorted="true"
pausedonstart="false"
loop="true"
alpha="0.30"
scale="1"
/>
Alles anzeigen
Here is an example that I have put into the first two scenes to demonstrate what it does: correct alpha in the reception, not working in the showroom. And returning at the reception the same problem.
http://www.pro4pics.com/test/rodenstock/tour.html
Thanks for looking into it!
Ton
This makes the difference Klaus! All images are now loaded first and not interupted anymore if I click on a hotspot.
Thanks again!
Ton
Thanks Klaus,
I finally found some time to do a number of tests, as I was not sure where to place the 'keep'.
It seems that the 'keep' does work like this, but I still have the problem that the preload is terminated when I click on a hotspot before all has been loaded.
My code for the preload looks like this:
<action name="preloadimage">
<!-- 1. parameter = internal ID, 2. parameter = url -->
addplugin(pre_%1);
set(plugin[pre_%1].visible, false);
set(plugin[pre_%1].onloaded, trace(preload %2 done);removeplugin(pre_%1) );
set(plugin[pre_%1].url, %2);
trace(starting preloading %2);
</action>
<action name="preloadpano1">
preloadimage(showroom_1_l, %SWFPATH%/tour.data/images/showroom_1_l.jpg);
preloadimage(showroom_1_f, %SWFPATH%/tour.data/images/showroom_1_f.jpg);
preloadimage(showroom_1_r, %SWFPATH%/tour.data/images/showroom_1_r.jpg);
preloadimage(showroom_1_b, %SWFPATH%/tour.data/images/showroom_1_b.jpg);
preloadimage(showroom_1_u, %SWFPATH%/tour.data/images/showroom_1_u.jpg);
preloadimage(showroom_1_d, %SWFPATH%/tour.data/images/showroom_1_d.jpg);
</action>
<action name="preloadauto1" keep="true">
preloadimage(auto_1_f, %SWFPATH%/tour.data/images/12_f.jpg);
preloadimage(auto_1_r, %SWFPATH%/tour.data/images/12_r.jpg);
preloadimage(auto_1_l, %SWFPATH%/tour.data/images/12_l.jpg);
preloadimage(auto_1_b, %SWFPATH%/tour.data/images/12_b.jpg);
preloadimage(auto_1_u, %SWFPATH%/tour.data/images/12_u.jpg);
preloadimage(auto_1_d, %SWFPATH%/tour.data/images/12_d.jpg);
</action>
<action name="preloadauto2" keep="true">
preloadimage(auto_2_f, %SWFPATH%/tour.data/images/13_f.jpg);
preloadimage(auto_2_r, %SWFPATH%/tour.data/images/13_r.jpg);
preloadimage(auto_2_l, %SWFPATH%/tour.data/images/13_l.jpg);
preloadimage(auto_2_b, %SWFPATH%/tour.data/images/13_b.jpg);
preloadimage(auto_2_u, %SWFPATH%/tour.data/images/13_u.jpg);
preloadimage(auto_2_d, %SWFPATH%/tour.data/images/13_d.jpg);
</action>
Alles anzeigen
And this is how I embedded the preload command in the scene:
<scene name="showroom_1" title="showroom_1" onstart="" >
<view vlookat="0" fovtype="MFOV" fov="100" fovmin="85" fovmax="120" />
<events onloadcomplete="preloadpano2(); preloadauto1(); preloadauto2(); preloadauto3()"/>
<preview url="tour.data/images/showroom_1_preview.jpg" />
<image>
<left url="tour.data/images/showroom_1_l.jpg" />
<front url="tour.data/images/showroom_1_f.jpg" />
<right url="tour.data/images/showroom_1_r.jpg" />
<back url="tour.data/images/showroom_1_b.jpg" />
<up url="tour.data/images/showroom_1_u.jpg" />
<down url="tour.data/images/showroom_1_d.jpg" />
</image>
<hotspot name="spot_auto_1" style="hotspot_ani" url="tour.data/graphics/stuur_ani.png" ath="-115" atv="-3" scale="1" onhover="showtext('Opel Corsa 3 Drs ',hotspottextstyle)"
onclick="transition(spot_auto_1, -115.0, 0.0, 0, auto_1, -20, 0, 110)" />
<hotspot name="spot_auto_2" style="hotspot_ani" url="tour.data/graphics/stuur_ani.png" ath="-95" atv="-3" scale="1" onhover="showtext('Opel Corsa 5 Drs ',hotspottextstyle)"
onclick="transition(spot_auto_2, -95.0, 0.0, 0, auto_2, 0, 0, 100)" />
<hotspot name="spot_auto_3" style="hotspot_ani" url="tour.data/graphics/stuur_ani.png" ath="-65" atv="-3" scale="1" onhover="showtext('Opel Astra GTC ',hotspottextstyle)"
onclick="transition(spot_auto_3, -65.0, 0.0, 0, auto_3, 0, 0, 100)" />
<hotspot name="spot_auto_4" style="hotspot_ani" url="tour.data/graphics/stuur_ani.png" ath="10" atv="-4" scale="1" onhover="showtext('Opel Astra Sports Tourer ',hotspottextstyle)"
onclick="transition(spot_auto_4, 10, 0.0, 0, auto_4, 0, 0, 100)" />
<hotspot name="spot_auto_5" style="hotspot_ani" url="tour.data/graphics/stuur_ani.png" ath="102" atv="-4" scale="1" onhover="showtext('Opel Zafira Tourer ',hotspottextstyle)"
onclick="transition(spot_auto_5, 102, 0.0, 0, auto_5, 0, 0, 100)" />
<hotspot name="spot_auto_7" style="hotspot_ani" url="tour.data/graphics/stuur_ani.png" ath="172" atv="-4" scale="1" onhover="showtext('Opel Astra 5 Drs ',hotspottextstyle)"
onclick="transition(spot_auto_7, 172.0, 0.0, 0, auto_7, 20, 0, 100)" />
<hotspot name="spot_showroom_2" style="hotspot_ani" url="tour.data/graphics/hotspot_i.png" ath="185" atv="-4" scale="1"
onclick="transition(spot_showroom_2, 185, 0, 0, showroom_2, 45, 0, 90)" onhover="showtext('showroom 2',hotspottextstyle)"/>
</scene>
Alles anzeigen
I have only made a preload command for the first three cars in this test: http://www.pro4pics.com/test/den_hartog/tour.html
Thanks for having a look at it!
Ton
Hi all,
I am using the preload procedure as described in the first post. It does work, but I found that it can be interupted by an action and the complete preload then seems to be lost.
Here is the situation where I try to use it: I made a tour for a car dealer who has 3 different showrooms.
It is possible to look round in every car in every showroom.
When loading a showroom, I call the preload like this and that seems to work fine as long as it is not interupted:
But if I click on a hotspot to load a new scene (like any car in that showroom) before all images have completely preloaded I seem to loose all of them.
And returning to the showroom from the car does not start the preload again as I had hoped.
I wonder if I am doing something wrong, of if there is a better solution.
Thanks for any help!
Ton
Great! Thanks for making me happy again Klaus! I still have a lot to learn...
Ton
Thanks for the quick reaction Klaus!
Yes I am using Safari. And now it becomes clear to me why I have seen Krpano examples that do show the custom cursor.
This tour is for mobile and tablet use too, so I guess there is no other way to solve this?
Thanks again, Ton
Thanks Sacha,
The main reason was the customer demand for viewing the tours on mobile devices. I think Krpano is the best tool for that by far.
It also gives a lot more flexibility in programming. The only down side is getting used to the new syntax again, but I am happy with the first results!
Ton
Hi all,
I have just finished my first commercial tour in krpano and I was surprised when I did a check on my Macbook that I didn't get the qtvr cursor, as it works fine on Windows using Firefox and IE.
There must be something that I have overlooked, but I can't find it.
Any help would be most welcome!
Here is my code related to the cursors:
<action name="startup">
<!-- load the first scene -->
qtvrcursor(); loadscene(get(scene[0].name),null,MERGE); zoomto(90,smooth(5)); delayedcall(1, set(plugin[uitleg].visible,0));
</action>
<action name="qtvrcursor">
set(control.mousetype, moveto);
set(cursors.url, virtualtour/tour.data/graphics/qtvr-cursors.png);
set(cursors.type, 8way);
set(cursors.move, 0|0|16|16);
set(cursors.drag, 16|0|16|16);
set(cursors.arrow_u, 32|0|16|16);
set(cursors.arrow_d, 48|0|16|16);
set(cursors.arrow_l, 64|0|16|16);
set(cursors.arrow_r, 80|0|16|16);
set(cursors.arrow_lu, 96|0|16|16);
set(cursors.arrow_ru, 112|0|16|16);
set(cursors.arrow_rd, 128|0|16|16);
set(cursors.arrow_ld, 144|0|16|16);
</action>
Alles anzeigen
And here a link to the actual tour: http://www.pro4pics.com/test/Stern/tour.html
Thanks for looking into it!
Ton
Thanks Klaus, that was very helpful!
This is how I solved it now:
<view hlookat="110" limitview="lookat" vlookatmin="0" vlookatmax="0" fovmax="90.0" fovmin="70.0"/>
That does exactly what I wanted. The vertical movement is locked and by using the fov limiters it can't be zoomed out too much. Nice.
Coming from another background, the syntax is still very difficult for me, but I am slowly learning.
Thanks, Ton
I have just installed the 1.0.8.14 viewer and that seems to do the job right.
Still wonder if there is an easier way to lock the vertical movement.
Thanks, but that is not the solution.
I want viewing inside this range, or even better, disable vertical movement completely.
My problem is that the given range works completely different on the iPad and on the pc. That seems strange to me.
I am used to work with FPP where I can lock the vertical movement but I could not find something similar in Krpano.
I am using cubes for several reasons, but I want to have the vertical fixed.
To do this, I limited the vertical view. It works fine on a PC, but it does not work on the iPad/iPhone: the result is an extreme zoomed-in image.
I have tried all kind of things without any result. I must be missing something, but what?
<scene name="receptie_1" title="begin" onstart="delayedcall(2, loadscene(receptie_2,null,KEEPALL,BLEND(1.2))); toon_menu()" >
<view hlookat="100" limitview="range" vlookatmin="-35" vlookatmax="+35" />
<image>
<left url="tour.data/receptie/receptie_1_l.jpg" />
<front url="tour.data/receptie/receptie_1_f.jpg" />
<right url="tour.data/receptie/receptie_1_r.jpg" />
<back url="tour.data/receptie/receptie_1_b.jpg" />
<up url="tour.data/receptie/receptie_1_u.jpg" />
<down url="tour.data/receptie/receptie_1_d.jpg" />
<mobile>
<left url="tour.data/receptie/rec_1_512_l.jpg" />
<front url="tour.data/receptie/rec_1_512_f.jpg" />
<right url="tour.data/receptie/rec_1_512_r.jpg" />
<back url="tour.data/receptie/rec_1_512_b.jpg" />
<up url="tour.data/receptie/rec_1_512_u.jpg" />
<down url="tour.data/receptie/rec_1_512_d.jpg" />
</mobile>
<tablet>
<left url="tour.data/receptie/rec_1_1024_l.jpg" />
<front url="tour.data/receptie/rec_1_1024_f.jpg" />
<right url="tour.data/receptie/rec_1_1024_r.jpg" />
<back url="tour.data/receptie/rec_1_1024_b.jpg" />
<up url="tour.data/receptie/rec_1_1024_u.jpg" />
<down url="tour.data/receptie/rec_1_1024_d.jpg" />
</tablet>
</image>
</scene>
Alles anzeigen
Thanks foor any help on this!
Ton
Works, many thanks!
I could hardly believe it would be that simple.
Ton
Is there is a way to disable the full screen command in the context menu?
I am relatively unfamiliar with krpano and could not find any topic or helpfile explaining this.
The idea is to have a small demo pano as part of a complete html-page.
It is not intended to be viewed full screen, as it will be too small.
Thanks for any suggestions,
Ton