dag2riRes
Overview
The dag2riRes tool is used for the following purposes:
Converting
.dagfiles into.composit.blkfiles.Generating multiple
.dagfiles from objects within a single.dagfile.
The tool uses two key files:
dag2riRes-dev.exedag2riRes-dev.pdb
Usage Recommendation
For ease of use, it is recommended to create a separate directory where you can
copy the tool. Avoid placing this directory within the project resources, as
temporary files can accumulate there, potentially disrupting the build process
and generating errors in the editor logs. While these issues are usually minor
and can be resolved by routine cleanup, in cases like research or iterative
testing, where frequent exporting, testing, and deleting is necessary, it is
better to keep the tool in a dedicated directory. In the created directory,
duplicate the .exe and .pdb files.
Generating a .composit.blk File
To generate a .composit.blk file:
In 3ds Max or Blender, either create a new object if it is not yet available in the asset database, or import it from an existing
.dagfile.Name the object either after the original
.dagfile from which you imported the geometry or after the.dagfile you want to generate from the object using dag2riRes.Add a three-digit suffix such as
_000.If you assign the suffix
_originto any object in the scene, its pivot point will be used as the zero-coordinate in the resulting composite file.Note
If the
.dagfile being processed with dag2riRes lacks a node named*_origin, the pivot in the resulting composite file will not match the pivot of the original.dag, and will be offset instead.It is recommended to clone similar geometry in the scene as a reference (or instance).
Export the
.dagscene to the directory containing the dag2riRes tool.The composite file will be generated in the root directory, next to the executable file.
See also
For more information on composite files, see .composit.blk.
Rules for Generating Individual .dag Files
When generating individual .dag files:
.dagfiles will be created based on similar names. For a set of similarly named objects in the scene, only one.dagfile will be generated based on the first object in the numerical order.For example, from the objects
test_geometry_001,test_geometry_127, andtest_geometry_origin, only one.dagfile will be created, namedtest_geometry, based on the first object (test_geometry_001)..dagfiles will automatically be assigned a.lod00suffix; no other suffixes are supported.The
.dagfiles will be located in the/simple_dags/p_RendInstdirectory..rendinst.blkfiles will be generated alongside the.dagfiles, but they are generally not useful.
Running the dag2riRes
To run dag2riRes-dev.exe, it is recommended to use FAR. Upon launching, the
log will display a brief instruction:
Enter the command in the command line. At a minimum, you need to specify the
name of the .dag file you are processing and the target directory. For
example:
dag2riRes-dev.exe -s:test.dag -d:simple_dags
All other parameters are optional.