Skip to main content

Blender to DIRSIG Integration: Visualization and Animation Tool

As many of you may have read in past posts by Niek, we have been using the Blender software heavily in the construction of scenes so they can be ingested into DIRSIG. While we have many Blender tools that work in the editing and exporting of existing scenes, they only utilize a small subset of features that exist in Blender. Blender can be viewed as the vi (or emacs) of the 3D animation world which means it can be very powerful but at times opaque to the newly initiated. After paying our dues in the apprenticeship of Blender knowledgedom, we wanted to make accessible to DIRSIG users the capabilities that have made Blender the de facto standard of the 3D animation domain.

In an ongoing project that addresses the need of data sets for training machine learning algorithms and assessing the performance of target detection/exploitation algorithms, DIRS has focused on implementing tools for producing numerous instantiation of simulated scenes. Blender has been an integral part of this tool development because of its scriptability and tight integration with visualization providing the user with immediate feedback of object placement.
It also brings a scene-centric perspective at the input end of the image and data simulation chain independent of the modality that may be rendered in DIRSIG.

One of the major realizations we encountered in addressing this problem was the need for the role of a Scene Librarian to assess the quality of the scene components. The construction of scene elements vary greatly depending on the application and the facilities available to the creator. It became obvious to us that a guideline of best practices was necessary to vet any shortcomings in the geometric construction or material. This will be discussed in a future posting, but we wanted to give some context of how these tool came about.

The one tool that we feel a Scene Librarian would need is a visualization and setup tool that helps them to not only view the scene in question, but to also provide the facilities for animating camera views and geometries. While this does not directly help with the geometric construction process, it does provide the librarian/user a rapid means of generating the necessary input files for different imaging modalities (VNIR, LWIR, and Hyperspectral). Shortcomings of the scene geometry will hopefully become apparent in one of these modalities. The resulting simulation files are compatible with dirsig_edit and can be modified from that interface. Past demonstrations of DIRSIG involving vehicle and sensor motion was painstakingly specified by hand. While it can be rightly argued that Blender 2.49 is an equally painstaking environment (which we will not contest), we made great lengths to invoking the tool a simple action. The tool takes advantage of Blender animation concepts and translates those parameters into DIRSIG specific files.

A screencast showing some features of that tool can be viewed below.


Additional details regarding this routine is described on the DIRS/CIS wiki at


The above screencast shows the process under Blender 2.49 which was the stable release when we started our development with Blender. We hope to update these and other routines to the Blender 2.5 series as documentation to their API becomes available (which we believe is slated for the 2.58 release).

Enjoy,

Rolando

Comments

Zachary said…
How do I use the DIRSIG plugins for Blender to import/export? I am using Blender 2.6.
Niek Sanders said…
Zach,

At the time I left RIT, our Blender scripts only worked with the older version (2.49). The Blender guys changed the underlying interface in the newer releases and I'm guessing the RIT scripts haven't been updated yet.

For instructions on using the scripts with the older copy of blender, see these posts.

Popular posts from this blog

LIDAR Point Cloud Visualization

A common question we get asked is how to visualize the point cloud data produced by either the Linear-mode or Geiger-mode LIDAR simulations. First, you should remember that the point cloud files produced by the "APD Processor" are simple ASCII/text files. Each line is the entry for a single return or "point" in the point cloud, including the point location and some attributes that vary depending on whether you modeled a Linear-mode or Geiger-mode system. For a Linear-mode system, a point cloud file will generally look like the example below: 12.7388 -45.3612 -0.0256 5.0290 0 0 0 0 12.8169 -45.3612 -0.0264 4.8362 0 1 0 0 12.8950 -45.3612 -0.0271 4.8362 0 2 0 0 ... 32.4008 -25.5446 10.5945 4.6783 0 65533 0 0 32.4781 -25.5446 10.5953 5.8959 0 65534 0 0 32.5360 -25.5640 12.5408 5.9185 0 65535 0 0 The first three columns are the X/Y/Z location of the point return. The 4th column is the intensity (in photons). Since Linear mode can support multiple returns per pulse, t

Viewing and Importing DIRSIG Output Images

We are often asked what programs can view DIRSIG's image outputs and how to import the raw DIRSIG image data files into other tools for further processing. For basic image viewing, DIRSIG-4.4.0 now includes a very simple viewing tool. Launch it from the main simulation editor window by selecting the "Start image viewer" option from the "Tools" menu. If you run your simulation from the GUI simulation editor, new image files are automatically added to the list in the image viewer as they are generated. If you want to manually add files to the list, simply select the "Open" item from the "File" menu or the toolbar. Here is a screenshot of the main image viewer window. The top part contains the list of currently opened files and the bands within those image files. To view a single band as a gray-scale image, choose "Single Band Display" from the combo box and then click on the image band that you want. Finally, click "Load Band

Using MODTRAN6 with DIRSIG

It has been a pretty exciting year for the team at Spectral Sciences, Inc.  with the release of MODTRAN6 . This latest version marks a major milestone in the continued development of one of the most popular and trusted codes for simulating radiative transfer in the atmosphere. In addition to important science related advancements, this latest code also includes significant improvements to the general usability of the software. This includes a new graphical user interface (GUI) and the introduction of a formal application programmer interface (API), which let's codes like DIRSIG interact with MODTRAN in a far more robust way than previous versions allowed. New MODTRAN, new interfaces The major development in the interface area is a shift from the old "tape5" style inputs to a new JSON (JavaScript Object Notation) style input. In addition to improving the general readability of the input, the JSON document format is much easier to read in, modify and write back out. The