Publishing

This section covers how to publish and distribute viewer models for your organization. Whether you need to apply custom branding to your viewer pages or embed models into your own websites and platforms, you’ll find the guidance you need here.

  • Configure branded viewer pages with your organization’s logo, colors, and styling.

Subsections of Publishing

Custom Branding

Enterprise customers can have a custom branded landing page for the C Tech 3D Scene Viewer. A branded page removes default advertising and provides a customized experience for your clients and stakeholders.

You can see a live example of a branded landing page at the EnviroFaux sample site, which demonstrates the branding features described below using a fictitious company.

Branded Landing Page

Your branded landing page lives on the C Tech viewer domain with your organization’s name — for example, viewer.ctech.com/envirofaux.html. This page displays your custom logo and branding instead of the default C Tech branding.

Embedding in Your Own Domain

You can embed your branded page within your own website using an IFRAME, so that users access the viewer through your domain rather than the C Tech domain. This gives you full control over the URL your clients see.

For example, the EnviroFaux sample site embeds the viewer at envirofaux.com/viewer — the same branded viewer, but accessed through the client’s own domain.

Client-Specific Customization

Info

This feature requires the Unlimited Client Customized Landing Pages option. See the C Tech price list for details.

With this option, you can dynamically customize the landing page on a per-client or per-project basis by adding URL-encoded search parameters for the page title and logo. This lets you create unique viewer links for different clients or projects without needing a separate branded page for each one.

The two parameters you can set are:

ParameterDescription
titleThe page title displayed in the viewer header
logoA URL pointing to the logo image to display

Both values must be URL-encoded. You then append them as query parameters to your branded page URL.

For example, starting from the EnviroFaux branded page, you could create a customized link for a client called “ACME Site”:

https://viewer.ctech.com/envirofaux.html?title=3D%20Viewer%3A%20ACME%20Site&logo=https%3A%2F%2Fenvirofaux.com%2FACME-EnviroFaux.png

This approach also works when combined with IFRAME embedding on your own domain. The EnviroFaux sample site demonstrates this at:

Embedding & Hosting

You can embed interactive 3D Scene Viewer models directly into your own website, dashboard, or intranet page using an IFRAME. The example embedded model below demonstrates the interactive experience your users will have.

Combining with Custom Branding

Embedded viewers work well alongside Custom Branding. You can embed a branded viewer page in your own domain using an IFRAME, giving your users a seamless experience under your own URL. See the Custom Branding page for details on branded landing pages and client-specific customization.

Subsections of Embedding & Hosting

Embed Code Generator

C Tech provides an Embed Code Generator that builds the HTML snippet for you — fill in your hosting details and copy the result into your page.

How It Works

The embedded viewer loads a lightweight, read-only version of the Scene Viewer inside an IFRAME on your page. Users can rotate, zoom, pan, and interact with the model just like the full viewer, but cannot upload or modify files.

The generated embed code points to viewer.ctech.com/inline_viewer.html with query parameters that identify your scene file and authenticate the request.

Required Information

Before generating an embed code, you need the following:

FieldDescription
Scene FilenameThe name of your scene file (e.g., myScene.ctws or myBundle.ctmws). Case-sensitive.
Domain Hosting Scene FileThe full URL of the server hosting your scene files (e.g., https://viewerdemo.ctech.com).
Folder Containing Scene FileThe subdirectory path on the hosting domain where your files are stored (e.g., clients/myclient). Leave empty if the file is at the domain root. Case-sensitive.
API KeyA 16-character hexadecimal key that authenticates requests to your hosting domain. This is provided by C Tech when your hosting domain is configured.

Viewer Options

The embed generator also lets you configure how the embedded viewer appears:

OptionDefaultDescription
Width80%Width of the embedded viewer. Accepts pixels (e.g., 640) or a percentage (e.g., 80%).
Height400pxHeight of the embedded viewer. Accepts pixels (e.g., 600) or a percentage.
Allow Full ScreenOnWhen enabled, users can expand the viewer to fill their screen.
Allow Scene InformationOnWhen enabled, the information panel is available for users to inspect model details.

Generated Embed Code

After filling in the required fields, the generator produces an HTML snippet you can copy and paste into your website. A typical embed code looks like this:

<iframe loading="lazy"
    src="https://viewer.ctech.com/inline_viewer.html?apikey=CEBA68C1CC918347&model=https%3A%2F%2Fviewerdemo.ctech.com%2Fclients%2Fmyclient%2FmyScene.ctws"
    width="80%" height="400px" frameborder="0" allowfullscreen>
</iframe>

The model parameter is a URL-encoded path built from your domain, folder, and filename. The generator handles the encoding automatically.

Tip

The Embed Code Generator remembers your settings between visits, so you only need to enter your domain and API key once.

Tip

To embed multiple scenes side by side, use a .ctmws bundle file. See Multi-Scene Embedding for details.

URL Parameters Reference

If you prefer to construct embed URLs manually, the inline viewer accepts these query parameters:

ParameterRequiredDescription
apikeyYesYour 16-character API key
modelYesURL-encoded path to the scene file (domain + folder + filename). Supports both .ctws and .ctmws files.
include_infoNoShow or hide the information panel (true or false, defaults to true)

Multi-Scene Embedding

You can embed multiple scenes in a single viewer by using a .ctmws (multi-workspace) bundle file instead of a single .ctws file. The .ctmws format packages multiple scenes together with their layout, titles, and linking settings into one file.

The example below shows three TCE contamination plume models from different time periods displayed in a single embedded viewer:

To embed a multi-scene layout, use the .ctmws file in the Embed Code Generator the same way you would a single .ctws file.

Creating a .ctmws Bundle

  1. Open the Scene Viewer and load your scenes using the Scene Management menu
  2. Arrange the layout, set titles, and configure linking options
  3. Click Export as .ctmws in the Scene Management menu
  4. Host the exported .ctmws file on your domain alongside your other scene files

The exported bundle preserves the complete workspace state — layout arrangement, split ratios, viewport titles, and linking settings. See Saving and Sharing Multi-Viewport Scenes for details.

Hosting Requirements

To host scene files on your own domain, C Tech must configure your domain in the viewer’s hosting system. Each domain is registered with a unique API key. Contact C Tech to set up hosting for your domain.

Your hosting server must meet these requirements:

  • HTTPS — Scene files must be served over HTTPS.
  • CORS policy — The server must include a Access-Control-Allow-Origin header that permits GET requests from viewer.ctech.com. Without the correct CORS configuration, the browser will block the viewer from loading your scene files. Most cloud storage providers (e.g., Azure Blob Storage, AWS S3) have CORS settings in their configuration panels.
  • Case-sensitive paths — Folder paths and filenames are case-sensitive on most hosting servers.