Assigning material to non-avatar objects in the scene
In version O/22 or later, you have the possibility to add and render non-avatar objects with specially assigned materials. For example a bicycle, a bag, eyeglasses or earrings.
By default, this object will have the same material as the avatar.
To assign
a different material to it, you need to create a json format file that
will map this object meshes into the materials.
When this object is loaded into a scene PDS, it will automatically look
for such a json format file.
You must prepare in advance :
-
A json file saved together with the 3D file
e.g:
{
"mesh1": "Rigid Bronze",
"mesh2": "Rigid Chrome",
"mesh3": "Rigid Copper",
"mesh4": "Rigid Glass",
"mesh5": "Rigid Gold",
"mesh6": "Rigid Rough Metal",
"mesh7": "Rigid Rusty Metal",
"mesh8": "DefaultSkin",
"mesh9": "Rigid Wood"
}
-
The json file should be located in the same directory as the MOD file and have the same file name.
-
Add to the registry under Computer\HKEY_CURRENT_USER\Software\Optitex\Optitex 22\3D\3DView\Settings
a new Dword with value =1( In decimal) "AvatarMaterialFromJSON" -
Have the relevant materials in the Optitex material repository. (e.g: C:\Users\Public\Optitex\Optitex 22\Content Library\MaterialType)
Note: This only works with
PR3D rendering.
See also: