Working with multiple RDL2 scene files and external data #28
-
Hi everyone, congrats for the open source launch! I'm looking through the documentation of the RDL2 scene format and one thing that isn't clear to me is what is the intended way to deal with scenes that include external data such as large meshes. Is it possible to break down a scene in multiple RDL2 files and combine them in some way? Does this work directly with Lua imports and is this handled by the binary format? Is it possible to mix the two in some way, for example by having a small text scene including a bunch of binary RDL2 files to create a more complex scene? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @ramenguy99 ! Several RDL2 geometry primitives reference external files, e.g., That said, it is possible to give MoonRay multiple RDL files as input. For example, we frequently supply an RDLA file (for parameters like
|
Beta Was this translation helpful? Give feedback.
-
I wanted to clarify because I don't think it's obvious:
Since they happen to be labeled "a" (for ASCII) and "b" (for binary), it seems like a versioning system. |
Beta Was this translation helpful? Give feedback.
-
https://docs.openmoonray.org/developer-reference/scene_rdl2-library/ has further examples and documentation about using multiple rdl files. It's also possible to convert between the text-based and binary formats through |
Beta Was this translation helpful? Give feedback.
-
I'll also mention this page ( see Inputs section ): It briefly discusses this, but it probably needs some example RDLA snippets to show how you can append/overwrite attributes on subsequent input files. |
Beta Was this translation helpful? Give feedback.
Hi @ramenguy99 !
Several RDL2 geometry primitives reference external files, e.g.,
UsdGeometry
.That said, it is possible to give MoonRay multiple RDL files as input. For example, we frequently supply an RDLA file (for parameters like
SceneVariables
) and an RDLB file for things like geometry.