Skip to content
Snippets Groups Projects
  1. Dec 09, 2021
  2. Dec 08, 2021
  3. Dec 07, 2021
  4. Dec 06, 2021
    • Mark OLESEN's avatar
      Merge branch 'feature-sampled-sets-extension' into 'develop' · 810d0c72
      Mark OLESEN authored
      sampledSets - enable writer construction from dictionary; glTF export
      
      See merge request !503
      810d0c72
    • Andrew Heather's avatar
      TUT: Added glTF export example for field and track data · 34b47709
      Andrew Heather authored and Mark OLESEN's avatar Mark OLESEN committed
      34b47709
    • Andrew Heather's avatar
      ENH: Added new glTF sammpled set writer · 85b40520
      Andrew Heather authored and Mark OLESEN's avatar Mark OLESEN committed
      Description
          Writes point data in glTF v2 format
      
          Two files are generated:
          - filename.bin  : a binary file containing all scene entities
          - filename.gltf : a JSON file that ties fields to the binary data
      
          The output can contain both geometry and fields, with additional support
          for colours using a user-supplied colour map, and animation of particle
          tracks.
      
          Controls are provided via the optional formatOptions dictionary.
      
          For non-particle track data:
      
          \verbatim
          formatOptions
          {
              // Apply colours flag (yes | no ) [optional]
              colours     yes;
      
              // List of options per field
              fieldInfo
              {
                  p
                  {
                      // Colour map [optional]
                      colourMap       <colourMap>;
      
                      // Colour map minimum and maximum limits [optional]
                      // Uses field min and max if not specified
                      min             0;
                      max             1;
      
                      // Alpha channel [optional] (uniform | field)
                      alpha           uniform;
                      alphaValue      0.5;
      
                      //alpha           field;
                      //alphaField      T;
                      //normalise       yes;
                  }
              }
          }
          \verbatim
      
          For particle tracks:
      
          \verbatim
          formatOptions
          {
              // Apply colours flag (yes | no) [optional]
              colours     yes;
      
              // Animate tracks (yes | no) [optional]
              animate     yes;
      
              // Animation properties [optional]
              animationInfo
              {
                  // Colour map [optional]
                  colourMap       <colourMap>;
      
                  // Colour [optional] (uniform | field)
                  colour          uniform;
                  colourValue     (1 0 0); // RGB in range [0-1]
      
                  //colour          field;
                  //colourField     d;
      
                  // Colour map minimum and maximum limits [optional]
                  // Note: for colour = field option
                  // Uses field min and max if not specified
                  min             0;
                  max             1;
      
                  // Alpha channel [optional] (uniform | field)
                  alpha           uniform;
                  alphaValue      0.5;
      
                  //alpha           field;
                  //alphaField      T;
                  //normalise       yes;
              }
          }
          \endverbatim
      
      Note
          When writing particle animations, the particle field and colour properties
          correspond to initial particle state (first data point) and cannot be
          animated (limitation of the file format).
      
          For more information on the specification see
          https://www.khronos.org/registry/glTF/
      85b40520
    • Andrew Heather's avatar
      ENH: particleTracks - updated to include field data · 0f155daf
      Andrew Heather authored and Mark OLESEN's avatar Mark OLESEN committed
      The utility will now add field data to all tracks (previous version only
      created the geometry)
      
      The new 'fields' entry can be used to output specific fields.
      
      Example
      
          cloud           reactingCloud1;
      
          sampleFrequency 1;
      
          maxPositions    1000000;
      
          fields          (d U); // includes wildcard support
      
      STYLE: minor typo fix
      0f155daf
    • Andrew Heather's avatar
      ENH: sampledSets - enable writer construction from dictionary · 98c25d16
      Andrew Heather authored and Mark OLESEN's avatar Mark OLESEN committed
      Users can now include additional controls via a new formatOptions dictionary.
      98c25d16
    • Andrew Heather's avatar
      ENH: sampledSetWriters - updated writing of particle tracks · e5267bf8
      Andrew Heather authored and Mark OLESEN's avatar Mark OLESEN committed
      e5267bf8
    • Andrew Heather's avatar
      ENH: Cloud - added function to read cloud fields from disk to obr · 79fafda2
      Andrew Heather authored and Mark OLESEN's avatar Mark OLESEN committed
      79fafda2
    • mattijs's avatar
  5. Dec 03, 2021