Solved

Compressing VRML files for Web

Posted on 1998-06-04
4
324 Views
Last Modified: 2013-12-25
Is it possible to compress a VRML 2.0 file for transfer over the web?  I want the visitor to my site to be able to click on a link to a VRML page and view the VRML world.  Problem is that my VRML worlds are 700+ KB.  Can this file be compressed for faster transfer but still have automatic viewing without the user needing to do anything?
0
Comment
Question by:jbetts
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
julio011597 earned 100 total points
ID: 1857090
Yes, handling compressed VRML files is part of the functionality recent browsers offer, namely CosmoPlayer. All you need is to compress your files with the "gzip" utility, freely available from GNU foundation.

One only warning: gzip, after compression, appends a ".gz" extension to the wrl file, but you have to get rid of that extra extension before your file can be read by the browser; then, to uncompress back your file, you have to re-append the ".gz" extension, otherwise gzip doesn't recognize it as a compressed file.

Also, note that compressing files improves transfer performances only; compressing will NOT improve client frame rate.

HTH, julio
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1857091
Just in case the answer is not clear, compressing-uncompressing regards *your* handling of the file. As for the client, (s)he doesn't see any difference when opening the file.

-julio
0
 

Author Comment

by:jbetts
ID: 1857092
Julio

Confirm that I have this straight....
Make VRML file (*.wrl)
Use gzip to compress the file (*.wrl.gz)
Start MS Internet Explorer 4.0
Open/browse to file (*.wrl.gz) and the browser will start Cosmo player, decompress, and show the VRML graphics?
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1857093
There's an additional step needed for publishing, so here is the full plan:

1) Make Vrml file (*.wrl)
2) Compress it with gzip (*.wrl.gz)
3) Get rid of the ".gz" extensione by renaming the file (*.wrl)
4) Start your web browser
5) Browse the file (of course, *.wrl)... Cosmo Player will read-decompress-show its contents.

In case you need to modify the file:

1) Rename it back to *.wrl.gz
2) uncompress it (gzip -d, or Winzip)
3) Modify it
4) Recompress it
5) Rename it to *.wrl... now it's ready to re-publish.

Let me know if this is not clear.

-julio
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Does Use of Custom Homepage in Wordpress cause SEO confusion? 4 54
Excel Hyperlink Question 4 60
Remove third quote mark from widget 6 28
PHP Form Calculate Total Price 10 83
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question