Go Shopping Cart Site Map User Panel and Admin English Home

Home > Easypano Forum    Easypano Forum has been upgraded.

Easypano Forum


Welcome Guest Register Login Search The Forum Display List of Forum Members
 All Forums
  Tourweaver
 
Subject Topic: Want to Pre-Cache you images??? Possible Post Reply Post New Topic
Message posted by leescott on September-29-2010 at 8:57pm
View leescott's Profile Profile   Search for other posts by leescott Search   Visit leescott's Homepage www   Quote leescott Quote   Send Private Message Send Msg  
leescott
Avatar
Gold Member
Gold Member
United States
November-10-2008
314 Posts

I have been working on a batch file "PC only" that will read txt files (You create)

Using the following command (dir /b > filename.txt) of the files in teh directories under the Scene directory in your published tour (both 1 and 2).

It will auto create the script file that you can load in the html created by Tourweaver.

This will Pre Cache the jpgs in your tour and will amke the images load faster. and it doesn't matter how many files are in the directory nor the dimensions of the files.

Anyone want to test it?



-------------
Lee Scott - Nikon D3/D300/D5000 - |shaved Nikkor 10.5 mm| Manfrotto 055XPROB tripod /322RC2 Grip - Mrotator TCS |CS5 | PW7 & TW6.5 Pro
----
To err is human ... to not try is just plain lazy

Message posted by leescott on September-29-2010 at 10:25pm
View leescott's Profile Profile   Search for other posts by leescott Search   Visit leescott's Homepage www   Quote leescott Quote   Send Private Message Send Msg  
leescott
Avatar
Gold Member
Gold Member
United States
November-10-2008
314 Posts

Working on Batch file that will create the files needed for the input that will create a directory on the drive of your choice and then copy the (2) files to that directory. S/B ready tomorrow 9/30/2010

i.e. runf file _makecache from the home directory of the muplished tour it will create a directory called (c:\cache) or what ever drive you want, then create the two files inthat directory



-------------
Lee Scott - Nikon D3/D300/D5000 - |shaved Nikkor 10.5 mm| Manfrotto 055XPROB tripod /322RC2 Grip - Mrotator TCS |CS5 | PW7 & TW6.5 Pro
----
To err is human ... to not try is just plain lazy

Message posted by nerjaace on September-30-2010 at 3:23am
View nerjaace's Profile Profile   Search for other posts by nerjaace Search   Visit nerjaace's Homepage www   Quote nerjaace Quote   Send Private Message Send Msg  
nerjaace
Avatar
Platinum Member
Platinum Member
 
May-10-2008
585 Posts
Sounds good Lee. Would like to see it in action.

Message posted by leescott on September-30-2010 at 5:38pm
View leescott's Profile Profile   Search for other posts by leescott Search   Visit leescott's Homepage www   Quote leescott Quote   Send Private Message Send Msg  
leescott
Avatar
Gold Member
Gold Member
United States
November-10-2008
314 Posts
I should have files to upload either tonight or tommorw. Am travelling and am working on documentation...

-------------
Lee Scott - Nikon D3/D300/D5000 - |shaved Nikkor 10.5 mm| Manfrotto 055XPROB tripod /322RC2 Grip - Mrotator TCS |CS5 | PW7 & TW6.5 Pro
----
To err is human ... to not try is just plain lazy

Message posted by vilmer on September-30-2010 at 9:55pm
View vilmer's Profile Profile   Search for other posts by vilmer Search   Visit vilmer's Homepage www   Quote vilmer Quote   Send Private Message Send Msg  
vilmer
Avatar
Gold Member
Gold Member
 
April-08-2006
218 Posts
Hey Lee,
have a look in the source of this tour. You can use the part between the <p> and </p> tags. That tour is not made with Tourweaver btw, but you'll get the idea.
I noticed it's a good idea to have the jpg of the 1st scene of the tour on top of the list, so you don't have to wait for others to load 1st..

(And if I'm not mistaking; tourweaver is already caching the remaining pano's after loading the first one)

-------------



Message posted by thedhgroup on October-01-2010 at 12:22am
View thedhgroup's Profile Profile   Search for other posts by thedhgroup Search   Visit thedhgroup's Homepage www   Quote thedhgroup Quote   Send Private Message Send Msg  
thedhgroup
Gold Member
Gold Member
United States
April-10-2005
131 Posts
I concur. While the first scene is being viewed the rest of the scenes are preloading.

-------------
www.dvt360.com

Message posted by leescott on October-01-2010 at 7:33pm
View leescott's Profile Profile   Search for other posts by leescott Search   Visit leescott's Homepage www   Quote leescott Quote   Send Private Message Send Msg  
leescott
Avatar
Gold Member
Gold Member
United States
November-10-2008
314 Posts

Here is a sample of the code it will generate

<script language="JavaScript">"
function preloader()
{
      // counter     
      var i = 0;

      // create object     
      imageObj = new Image();
      
      // set image list     
      images = new Array();
images[0]="http:\\yourweb\hbc\tour\scene\1\back tennis courts_0.jpg"
images[1]="http:\\yourweb\hbc\tour\scene\1\back tennis courts_1.jpg"
images[2]="http:\\yourweb\hbc\tour\scene\1\back tennis courts_2.jpg"
images[3]="http:\\yourweb\hbc\tour\scene\1\back tennis courts_3.jpg"
images[4]="http:\\yourweb\hbc\tour\scene\1\back tennis courts_4.jpg"
images[5]="http:\\yourweb\hbc\tour\scene\1\back tennis courts_5.jpg"
images[6]="http:\\yourweb\hbc\tour\scene\1\back tennis courts_6.jpg"
images[7]="http:\\yourweb\hbc\tour\scene\1\back tennis courts_7.jpg"
images[8]="http:\\yourweb\hbc\tour\scene\1\back yard_0.jpg"
images[9]="http:\\yourweb\hbc\tour\scene\1\back yard_1.jpg"
images[10]="http:\\yourweb\hbc\tour\scene\1\basketball in the park_0.jpg"
images[11]="http:\\yourweb\hbc\tour\scene\1\basketball in the park_1.jpg"
images[12]="http:\\yourweb\hbc\tour\scene\1\basketball in the park_2.jpg"
images[13]="http:\\yourweb\hbc\tour\scene\1\basketball in the park_3.jpg"
images[14]="http:\\yourweb\hbc\tour\scene\1\basketball in the park_4.jpg"
images[15]="http:\\yourweb\hbc\tour\scene\1\basketball in the park_5.jpg"
images[16]="http:\\yourweb\hbc\tour\scene\1\basketball in the park_6.jpg"
images[17]="http:\\yourweb\hbc\tour\scene\1\basketball in the park_7.jpg"
images[18]="http:\\yourweb\hbc\tour\scene\1\eagle harbor still_0.jpg"
images[19]="http:\\yourweb\hbc\tour\scene\1\eagle harbor still_1.jpg"
images[20]="http:\\yourweb\hbc\tour\scene\1\eagle harbor_0.jpg"
images[21]="http:\\yourweb\hbc\tour\scene\1\eagle harbor_1.jpg"
images[22]="http:\\yourweb\hbc\tour\scene\1\eagle harbor_2.jpg"
images[23]="http:\\yourweb\hbc\tour\scene\1\eagle harbor_3.jpg"
images[24]="http:\\yourweb\hbc\tour\scene\1\eagle harbor_4.jpg"
images[25]="http:\\yourweb\hbc\tour\scene\1\eagle harbor_5.jpg"
images[26]="http:\\yourweb\hbc\tour\scene\1\eagle harbor_6.jpg"
images[27]="http:\\yourweb\hbc\tour\scene\1\eagle harbor_7.jpg"
    

Opps forgot to change that code to reflect the change in this number

 // start preloading
      for(i=0; i<=3; i++)
       {
           imageObj.src=images;
       }
}
</script>

If you test it please change that number "3" to the highest number in your image count  (this case would be 27) [:oops:]

The code will auto generate as many jpgs you have in either scene\1 or scene\2 directories. from 1 to 400 + That code was good an I can probably implement that in the batch file



It looks that it is using some type of Java Script
AC_OETags.js
and I unfortunately don't know how that is working. If someone could shed some light on it I can implement it in the same way ***


-------------
Lee Scott - Nikon D3/D300/D5000 - |shaved Nikkor 10.5 mm| Manfrotto 055XPROB tripod /322RC2 Grip - Mrotator TCS |CS5 | PW7 & TW6.5 Pro
----
To err is human ... to not try is just plain lazy

Message posted by leescott on October-02-2010 at 9:06am
View leescott's Profile Profile   Search for other posts by leescott Search   Visit leescott's Homepage www   Quote leescott Quote   Send Private Message Send Msg  
leescott
Avatar
Gold Member
Gold Member
United States
November-10-2008
314 Posts

Here's a link to the file and documentation

Please let me know if you have any questions
[:D]

Files and documentation for creating cache script

Hey guys that code was good, but It looks that it is using some type of Java Script
AC_OETags.js
and I unfortunately don't know how that is working. If someone could shed some light on it I can implement it in the same way ***



-------------
Lee Scott - Nikon D3/D300/D5000 - |shaved Nikkor 10.5 mm| Manfrotto 055XPROB tripod /322RC2 Grip - Mrotator TCS |CS5 | PW7 & TW6.5 Pro
----
To err is human ... to not try is just plain lazy

Message posted by vilmer on October-02-2010 at 9:59am
View vilmer's Profile Profile   Search for other posts by vilmer Search   Visit vilmer's Homepage www   Quote vilmer Quote   Send Private Message Send Msg  
vilmer
Avatar
Gold Member
Gold Member
 
April-08-2006
218 Posts
AC_OETags.js is a script to detect your flash player. Does not have anything to do with the precaching. It's part of the file structure of the software used to create that tour.

-------------



Message posted by leescott on October-02-2010 at 2:51pm
View leescott's Profile Profile   Search for other posts by leescott Search   Visit leescott's Homepage www   Quote leescott Quote   Send Private Message Send Msg  
leescott
Avatar
Gold Member
Gold Member
United States
November-10-2008
314 Posts

O Ok I just didn't see where it was calling the actual tour in the code. But since it's not TW code then that explains it

Thanks Vilmer



-------------
Lee Scott - Nikon D3/D300/D5000 - |shaved Nikkor 10.5 mm| Manfrotto 055XPROB tripod /322RC2 Grip - Mrotator TCS |CS5 | PW7 & TW6.5 Pro
----
To err is human ... to not try is just plain lazy

If you wish to post a reply to this thread you must first Login
If you are not already registered you must first register

Forum Jump Post Reply Post New Topic
Printer Friendly Version Printable version

Powered by: - Web Wiz Guide Discussion Forums