Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Compressing VRML files for Web

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

972 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