This addon is specifically designed to assist in creating ambient mask volumes within the Blender environment
If support needed join discord and ask on #fix-my-mod
This addon utilizes the texconv
tool developed by Microsoft. Special thanks to Microsoft for providing this invaluable tool for texture conversion.
This addon is distributed under the GNU General Public License v3.0. See the LICENSE file for details.
Install AMV Tools plugin to Blender. If you're getting an error "No module named 'tifffile'", restart Blender.
Choose your output directory, where generated XML and .DDS files will be saved.
Open a scene with your model or import it.
Click on the + icon to create a new AMV entry.
Go to Edit mode, select all vertices and click Set Bounds From Selection.
Return to Object mode, fill interior location using your ymap placement data (Position XYZ, Rotation XYZW).
Click on Calculate Position and Generate UUID buttons. Your AMV position and unique name will be generated.
Next, click on Setup Light button, this is going to enable world's lighting in Blender scene.
Feel free to rearrange the probes to suit your interior design. Simply click on the 'Display Probes' button to preview how many pixels your AMV texture will encompass. If you're satisfied with the adjustments, you can save and reset the probe positions.
Now, click Bake AMV. Script will bake two textures and save it to .DDS files. This step may take a shorter or longer while, patience is the key.
Open the folder selected in Output Directory. You'll notice a folder with a hexadecimal name.
Open CodeX Explorer and type amv_zone_0.ymt in the search bar. Click on the second .YMT file, which is located in RDR2\update4.rpf.
Head down to the end of the file, click at the last entry.
Open generated .XML file, copy the whole content except first line and paste it in .YMT file.
Save the file by choosing Save As.
Now, return to CodeX Explorer and type amv_zone_0.ytd in the search bar. Click on the second .YTD file, which is located in RDR2\update4.rpf.
In the Texture Editor, click on the + icon to add two .DDS files.
After adding your textures, find them on the list, click on Details tab, find Dimension column and change Texture2D to Texture3D. Do the same thing for the second texture.
Save your .YTD file by choosing Save As.
Now move your .YMT and .YTD file to RedM resource and that's all!