Solved

Compressing VRML files for Web

Posted on 1998-06-04
4
332 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

738 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