CTWS File Size & Optimization

Published May 2024 - Based on EVS Version 2024.3.0

I hope that all of our users have embraced C Tech Web Scenes (CTWS files) as their primary method to publish their EVS modeling results. C Tech Web Scenes have dozens of advantages over 4DIMs and all users should be aware that in the near future, the ability to create 4DIM files will be permanently dropped from EVS.

With that preamble, this topic will focus on the factors that affect the size of your CTWS files and the actions you can take to minimize that size.

You might wonder “Why should I care about the size of the CTWS files?”

  • The simple answer is that smaller files are faster and easier for your clients. Whether you are:
    • Sending the files in emails
    • Placing them on a site for download, or
    • Embedding them on your company website
    • The client needs to download the file and the bigger it is, the longer that will take.
  • Bigger files are also more taxing for the computer or device your client may be using. This can make everything sluggish.

What makes your CTWS files Large?

There are many things that affect the size of your CTWS files:

  • Model size: The size of your models affects the size of the CTWS.
    • The product of you X-Y-Z Grid resolution determines the number of nodes and cells in you model. This directly affects the size of CTWS files.
    • The content of your application affects the size in various ways:
      • Lithologic models use grid smoothing which can dramatically increase the number of nodes and cells beyond what was in the input grid.
      • Annotation modules such as CAD, Shapefiles, Aerial Photos, etc. add to the model size
      • For example, the axes module defaults to 3D extruded text. Each character can have hundreds of nodes and the total size of axes can be significant.
      • Every module with a red output port which is connected to the viewer adds Objects to the CTWS Table of Contents and therefore adds to the model size.
      • The image used in overlay aerial can add size to your CTWS more than all other objects in your Table of Contents
      • The addition of any object with lines will automatically turn off the ability to Optimize Output. This can have a dramatic effect because optimization employs compression which can reduce the size of CTWS files by as much as 90%.
        • axes
        • external edges
        • isolines
        • 3d legend (note legend is ok because it is converted to a 2d image.)
        • CAD or Shapefiles with lines
        • Streamlines
        • Line fonts

Two items in particular can have a dramatic effect:

  1. The image used in overlay aerial can add size to your CTWS more than all other objects in your Table of Contents
  2. The addition of any object with lines will automatically turn off the ability to Optimize Output. This can have a dramatic effect because the compression inherent in Optimization can reduce the size of CTWS files by as much as 90%. However, the modules below are among those which can have lines in their output objects. Many of these can be converted to tubes instead of lines, but the items in red cannot be fixed in this way.
    • axes: The only alternative is the direction indicator module
    • external edges
    • isolines
    • 3d legend (legend is ok because it is converted to a 2d image)
    • CAD or Shapefiles with lines
    • Streamlines
    • Line fonts: (use TrueType fonts instead)

For this topic I’m going to use one of the Studio Project applications: Earth Volumetric Studio Projects 2024.1 > Analytical (Contaminant) Modeling > fuel-storage-union-efb.intermediate.evs. The application has these modules:

Application modules overview Application modules overview

When I export the default version of this application as a CTWS file, the output looks like:

Default CTWS output Default CTWS output

and the CTWS file cannot be optimized, resulting in a file size of 5.74Mb.

If we replace axes with direction indicator and pass external edges through the tubes module, the application becomes:

Optimized application modules Optimized application modules

and the output looks like:

Optimized CTWS output Optimized CTWS output

Now the CTWS file can be optimized, resulting in a file size of 727 kb (one-eighth as big).