Heimdall3D for Directory Opus - public beta
===========================================

HDR images and 3D models rendered inside Directory Opus 13: in the preview
pane, in the Viewer window, and as thumbnails in the file list.

Handles .hdr .pic .exr .pfm .dds .obj .stl .gltf .glb .fbx .bvh


THE INSTALLER IS THE RECOMMENDED ROUTE
--------------------------------------

Heimdall3D-<version>-setup.exe does four things this ZIP cannot. Extracting
instead moves each of them onto you.

  1. It runs "dopusrt.exe /flushplugins" first, and names the file Opus is
     still holding if one is. Extracting over a running Opus fails with a
     sharing violation instead, and Windows names a file rather than the pane
     that has it open.
  2. It removes an older heimdall.dll - the pre-rename name - before it copies
     anything, and stops with an explanation if it cannot. Opus loads every DLL
     in Viewers\, so a survivor means two plugins claiming the same file types.
     The plugin retires one itself either way (see below), but only once it has
     loaded, which costs an extra Opus restart.
  3. It widens the permissions on %PROGRAMDATA%\Heimdall3D so that every
     Windows account on a shared machine can update the evaluation record. The
     plugin creates that folder itself either way, so on a machine with one
     user this changes nothing.
  4. It reports what your GPU will do on its final page. From this ZIP, run
     gpu-info.cmd instead - see "Confirming it worked" below.

Neither the installer nor the plugin is code-signed, and there is no plan to
sign either. Windows SmartScreen shows an "unknown publisher" warning on a
downloaded .exe as a result. It shows none on files extracted from a ZIP, and
Directory Opus does not check a plugin's signature - which is what this ZIP is
for.


INSTALLING FROM THIS ZIP
------------------------

1. In Directory Opus, close any preview pane or Viewer window showing a 3D
   model or an HDR image. You do not need to close Opus itself.

   If you have used Heimdall3D before, also run this once from a Command
   Prompt, replacing the path with your own Opus folder:

       "C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /flushplugins

   Skipping this is what produces "the file is in use" halfway through the
   copy. If that happens, close the pane and copy again - a half-extracted
   state is not dangerous, because the plugin refuses to load a mismatched
   helper rather than rendering with it.

2. Copy the "Viewers" folder from this ZIP into your Directory Opus PROGRAM
   folder - the one containing dopusrt.exe. Usually:

       C:\Program Files\GPSoftware\Directory Opus

   Answer "replace the files in the destination" if Windows asks. When it is
   done you should have:

       ...\Directory Opus\Viewers\heimdall3d.dll
       ...\Directory Opus\Viewers\Heimdall3D\heimdall3d_render.exe
       ...\Directory Opus\Viewers\Heimdall3D\heimdall_probe.exe
       ...\Directory Opus\Viewers\Heimdall3D\gpu-info.cmd
       ...\Directory Opus\Viewers\Heimdall3D\THIRD-PARTY-NOTICES.md
       ...\Directory Opus\Viewers\Heimdall3D\characters\
       ...\Directory Opus\Viewers\Heimdall3D\environments\
       ...\Directory Opus\Viewers\Heimdall3D\floors\
       ...\Directory Opus\Viewers\Heimdall3D\gobos\
       ...\Directory Opus\Viewers\Heimdall3D\icons\
       ...\Directory Opus\Viewers\Heimdall3D\shaders\

3. Restart Directory Opus.


CONFIRMING IT WORKED
--------------------

In Opus, go to Preferences / Viewer / Plugins. "Heimdall3D - HDR & 3D Viewer"
is listed there with its version number.

Then open a folder holding a .hdr, .exr or .obj file. The thumbnails are
rendered pictures rather than generic icons.

To find out what your GPU will do, double-click:

    ...\Directory Opus\Viewers\Heimdall3D\gpu-info.cmd

The rendering runs in a separate process, heimdall3d_render.exe, so a graphics
driver fault cannot take Directory Opus down with it. A "Baseline" verdict from
gpu-info.cmd means that process found no usable Vulkan device and previews are
rendered on the CPU, which is slower. That comes from your graphics driver, not
from this plugin - nothing installed here can raise a machine's Vulkan version.


IF YOU UPGRADED FROM AN OLDER BUILD
-----------------------------------

Versions before the rename installed a file called heimdall.dll. This build
retires one the first time it loads: it deletes the file, or renames it to
heimdall.dll.disabled if Opus already has it open, in which case restart Opus
once more. A .disabled file can be deleted at any time.

Check these two folders if thumbnails look stale:

    <Opus program folder>\Viewers\
    %APPDATA%\GPSoftware\Directory Opus\Viewers\


EVALUATION
----------

Heimdall3D runs with nothing withheld for 21 days, counted from the first file
it previews rather than from the install. After that, previews are replaced by
a panel carrying a link to the purchase page. Nothing is uploaded and nothing
is sent anywhere; the evaluation record is two files on this machine, under
%APPDATA%\Heimdall3D and %PROGRAMDATA%\Heimdall3D.


UNINSTALLING
------------

Close any Heimdall3D preview pane, then delete:

    <Opus program folder>\Viewers\heimdall3d.dll
    <Opus program folder>\Viewers\Heimdall3D\        (the whole folder)

Restart Opus. If a file will not delete, Opus still has it loaded - run
"dopusrt.exe /flushplugins" and try again.

%APPDATA%\Heimdall3D holds your evaluation timestamp and is left alone
deliberately, so that removing and reinstalling does not restart the clock.
Delete it yourself if you want it gone.


LICENCES
--------

THIRD-PARTY-NOTICES.md in the Heimdall3D folder lists every third-party
component compiled into this plugin and reproduces its licence.
