(tested with Blender 3.6)
The general gist of it is as follows.
- download the
sourcefolder. - rename the folder to BAT4Blender and zip it (the files inside the zip should end up inside a BAT4Blender subfolder).
- open Blender and go to
Edit->Preferences->Add-ons->Install.. - navigate to the zip file created in step 2.
- select
Install Add-on from File... - the Add-on is now installed and available in the
Propertiescontext menu in theScenetab.
Notes
- in Blender, print output is sent to system console, not to the Python console. Go to 'Window' -> 'Toggle System Console' to open it.
- alpha version (camera positioning, LOD creation, rendering of small objects)
- slicing of rendered images if larger than 256 px
- slicing of LODs
- uv-mapping of LODs
- zoom-dependent LODs
- renderer settings (lighting/shading/materials/…)
- nightlights
- darknite settings
- HD rendering
- conversion of LODs to S3D: Using fshgen:
fshgen import -o output.SC4Model --force --with-BAT-models --format Dxt1 --gid 0xffffffff *.obj *.png - showing progress while rendering: Go to the Rendering workspace to see the current image. Press ESC to cancel rendering.