?
Solved

Compressing VRML files for Web

Posted on 1998-06-04
4
Medium Priority
?
360 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 400 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

718 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