You are not logged in.

philkrom

Beginner

  • "philkrom" started this thread

Posts: 35

Location: Montpellier France

Occupation: Zooomez cofounder

  • Send private message

1

Tuesday, January 20th 2015, 3:37pm

Starting display

Hi !

A very newbie question maybe...

On this link, our 2015 wishes : http://static.zooomez.fr/medias/pr/ph/12…euxzmz2015.html

with a fader as explained here : http://krpano.com/examples/118/examples/…bes/slider.html

The first display shows during a short time the cube faces loading, then black overlay, then fade, and then the rotating pano.

If I open the url a 2nd time, the datas are in cache, and the display is this time correct (no flash with the cube faces) . Of course, if I empty the cache, I am in the previous state with the ugly "flash".

Is it possible not to show the cube faces the first time ?

I have made an overlay with a png

<plugin name="overlay" url="black.png" align="center" alpha="1" visible="true" width="150%" height="150%" enabled="false" zorder="-2" keep="true" />


And the start action is :


<action name="start">

showtext('Nous vous souhaitons une excellente année 2015[br]dans un monde de tolérance de paix et de fraternité', voeux);

delayedcall(2, tween(plugin[overlay].alpha,0,3,,set(plugin[overlay].visible,false)););

delayedcall(6, hideintroimage(););

addcube(pano1);

addcube(pano2);

setblend(0);

</action>

Any idea welcome ;-)
Philippe - Newbie in krpano code but very interested in everything about Oculus and VR devices *w00t*

Cofounder of the Zooomez project - zmz.fr - map on this link
If you want to support our project, please like our Facebook page *thumbsup*

2

Tuesday, January 20th 2015, 6:48pm

Hi,

there are several possibilities - either hide (alpha=0) the cube faces until they were loaded (onloaded) - or 'preload' your overlay image (preload=true) - or use an simple black container element instead of the overlay image (=no loading necessary).

Best regards,
Klaus

philkrom

Beginner

  • "philkrom" started this thread

Posts: 35

Location: Montpellier France

Occupation: Zooomez cofounder

  • Send private message

3

Wednesday, January 21st 2015, 2:29pm

Works !

Thanks Klaus, It works : http://zooomez.fr/vv/vx2015/
Philippe - Newbie in krpano code but very interested in everything about Oculus and VR devices *w00t*

Cofounder of the Zooomez project - zmz.fr - map on this link
If you want to support our project, please like our Facebook page *thumbsup*

Similar threads