DevalVR support

 

It is currently Tue Sep 07, 2010 8:25 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: custom progressbar ?
PostPosted: Thu Apr 03, 2008 2:19 pm 
Offline

Joined: Tue Feb 26, 2008 12:44 pm
Posts: 45
is it possible to have custom logo and progressbar in center of viewer instead of deval's inbuilt progressbar ?

what is the procedure to make that if its possible ?


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Fri Apr 04, 2008 6:55 pm 
Offline

Joined: Sun Feb 24, 2008 8:30 pm
Posts: 27
nice recommandation, I need this feature too! :lol:


Top
 Profile  
 
 Post subject: Re: custom progressbar ?
PostPosted: Wed Mar 04, 2009 2:55 pm 
Offline

Joined: Fri Sep 22, 2006 2:54 pm
Posts: 37
atomicmak wrote:
is it possible to have custom logo and progressbar in center of viewer instead of deval's inbuilt progressbar ?


Yes, it is possible. :D

Here is how I do it (example of .DVL file):
Code:
(pano1)
{
   type=mov;
   file=panorama1.mov;
   
   INCLUDE=loading;
   
}

(pano2)
{
   type=mov;
   file=panorama2.mov;
   
   INCLUDE=loading;
   
}

(loading)
{

   type=include;
   Image=loading,1,0,0,#99,100,no,loading;
  FONT= fontloading, "Times New Roman", 24, 7, normal;
   TEXT= textloading, 1, 0,70, #99, #000000, , #FFFFFF, 100, fontloading, " Loading... %PROGRESS% % ";
   
   PROPERTYCODE2 = codeloading,1,"progress",100,"Fade("","textloading",0,3.5);Fade("","loading",0,3.5);";
}


(loading)
{
   type=image;
   file=loading.png;
}


The problem with the code above is that it shows my custom loading image only when I open the virtual tour.
When I'm navigating inside the tour and choose another panorama it doesn't show the loading image on the second panorama.

Maybe someone knows a solution.

How do you add comments inside .DVL ?

Best regards,
Aris

_________________
"Imagination is more important than knowledge.
Knowledge is limited. Imagination encircles the world." - Einstein


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 04, 2009 3:41 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 1919
There are some examples with a text with progress percentage here http://www.devalvr.com/panos/howto1.zip . The instruction PROPERTYCODE2 is used to hide the test (or any image that you use) when the % loaded is a defined value.

Aris, you can use the same name in the test and image, to show/hide the two objects with only one instruction, or use a group name:

Code:
(pano1)
{
   type=mov;
   file=panorama1.mov;
   
   INCLUDE=loading;
   
}

(pano2)
{
   type=mov;
   file=panorama2.mov;
   
   INCLUDE=loading;
   
}

(loading)
{

   type=include;
   Image=loading,1,0,0,#99,100,no,loading;
  FONT= fontloading, "Times New Roman", 24, 7, normal;
   TEXT= loading, 1, 0,70, #99, #000000, , #FFFFFF, 100, fontloading, " Loading... %PROGRESS% % ";
   
   PROPERTYCODE2 = codeloading,1,"progress",100,"Fade("","loading",0,3.5);";
}

(loading)
{
   type=image;
   file=loading.png;
}


When you load another pano in the script, you can use:

Code:
GoToFrame("pano2");Fade("","loading",100,0.5);


regards!


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Wed Mar 04, 2009 4:12 pm 
Offline

Joined: Fri Sep 22, 2006 2:54 pm
Posts: 37
Hi Fiero,

I tried like this and it was not working, it wasn't showing my loading image:
Code:
(loading)
{

type=include;
Image=loading,1,0,0,#99,100,no,loading;
FONT= fontloading, "Times New Roman", 24, 7, normal;
TEXT= loading, 1, 0,70, #99, #000000, , #FFFFFF, 100, fontloading, " Loading... %PROGRESS% % ";
   
PROPERTYCODE2 = codeloading,1,"progress",100,"Fade("","loading",0,3.5);";
}



Then I changed to this and it's working (I added a group name):
Code:
(loading)
{

type=include;
Image=loading,loadingimg,1,0,0,#99,100,no,loading;
FONT= fontloading, "Times New Roman", 24, 7, normal;
TEXT= loading,loadingtxt, 1, 0,70, #99, #000000, , #FFFFFF, 100, fontloading, " Loading... %PROGRESS% % ";
   
PROPERTYCODE2 = codeloading,1,"progress",100,"Fade("","",0,3.5,"loading");";
}


IMPORTANT:
In the TEXT syntax there is no GROUP name specified and I was a bit confused when you said to add a group name:
TEXT = name, visible, x, y, alignment, color, effect, backgroundcolor, alpha, fontName, text ;
http://www.devalvr.com/paginas/soporte/ ... .html#TEXT


And by adding this to the end to each hotspot it shows the custom loading image on every pano.
Code:
Fade("","",100,3.5,"loading");


Thank you very much for your help!

Best regards,
Aris

_________________
"Imagination is more important than knowledge.
Knowledge is limited. Imagination encircles the world." - Einstein


Last edited by Aris on Wed Mar 04, 2009 4:41 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 04, 2009 4:37 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 1919
It's true, I updated the page.

Do you mean a Fade() function with alpha=100 at the end of the hotspot code? Maybe this is a typo, you wrote 0.

Thanks for the testing!


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Wed Mar 04, 2009 4:46 pm 
Offline

Joined: Fri Sep 22, 2006 2:54 pm
Posts: 37
I updated my previous post it was my mistake. 100 is the right number. :D

Thanks for pointing this small error... it made my custom loading image fade when it reaches 50-60%. In some cases it didn't appeared at all. :)

With the group name I think I can add a custom loading image for each room... I'm working on a tour for a local museum.

Thanks!

Aris

_________________
"Imagination is more important than knowledge.
Knowledge is limited. Imagination encircles the world." - Einstein


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group