AWS for M&E Blog
How to use 3ds Max with service-managed fleets on AWS Deadline Cloud
It can be challenging for studios and artists who want to leverage the power of the managed infrastructure of Amazon Web Services (AWS) Deadline Cloud while continuing to use Autodesk 3ds Max in their workflows. We’ll show you how to overcome this limitation by using configuration scripts to enable 3ds Max on service-managed fleets (SMFs). With this approach you can combine the convenience of managed infrastructure with the power of 3ds Max. You will have more flexibility in your rendering pipeline without the overhead of managing your own render nodes.
Prerequisites
Before you begin, make sure you have the following:
- An AWS Account to use AWS Deadline Cloud.
- A Deadline Cloud farm with one queue associated with one SMF using Windows instances. We recommend to create a new queue dedicated for 3ds Max to avoid affecting your existing environment.
- The Deadline Cloud monitor installed and a profile created for your farm.
- Autodesk 3ds Max 2024 installation files downloaded from Autodesk (verify the
Setup.exe
application is at the root of the folder). - A Windows workstation with 3ds Max 2024
- The Deadline Cloud submitter for 3ds Max
Note: Autodesk 3ds Max has its own licensing requirements separate from AWS. Confirm you have the appropriate licenses before proceeding. See additional details on Autodesk Cloud Rights for 3ds Max.
Preparing the 3ds Max installation package
First, we need to prepare the 3ds Max installation files for deployment to our fleet workers:
- Compress your 3ds Max 2024 installation folder into a zip package named:
3ds_max_2024_full.zip
- Go to the AWS Deadline Cloud console and navigate to Farms and other resources.
- Select your farm, then select your queue.
- In the queue details view, select the Job Attachments
- Click the bucket name to open the bucket in the S3 console.
- Create a new folder called
resources
in this bucket. - Upload the
3ds_max_2024_full.zip
file into the newly createdresources
folder.
Configuring S3 bucket permissions
The configuration script will run using the fleet’s IAM role. You will need to grant the appropriate S3 bucket permissions to the fleet’s IAM role so your fleet workers can access the 3ds Max installation files:
- Go to the AWS Deadline Cloud console and navigate to Farms and other resources.
- Select your farm, then select your fleet.
- In the Fleet Details, click the link to the fleet service role.
- Add the following inline policy to the role, replacing the placeholders for <your-bucket-name> and <your-account-id> with your actual values:
Creating the worker configuration script
Now we’ll create a worker configuration script that will install 3ds Max on each fleet worker when it starts up:
- Go to the AWS Deadline Cloud console and navigate to Farms and other resources.
- Select your farm, then select your fleet.
- In the fleet details view, select the Configurations
- In the “Worker configuration script” section, click the Edit
- In the script editor, paste the following PowerShell script. Replace
<your-bucket-name>
with the name of your S3 bucket.
- IMPORTANT: Update the script timeout to 1200 seconds (20 min) to allow enough time for the 3ds Max installation to complete.
- Click Save to apply the changes.
NOTE: The script is run when fleet workers start up. If there are already running workers in the fleet, do not run the newly configured script.
Configuring the queue environment
The default queue environment provides a mechanism to install required software dependencies by the submitted jobs. The submitter recognizes the default queue environment definition, and it auto-configures a few software dependencies by default. In the case of 3ds Max, the submitter inadvertently configures unavailable software dependencies, since there is currently no built-in support for 3ds Max.
This is not a problem, because the configuration script will take care of installing the required dependencies. However, if the job definition requests dependencies that do not exist, the job will fail.
To work around this issue, we will delete the default queue environment:
- In the fleet details view, select the Associated queues tab, and select your queue.
- In the queue details view, select the Queue environments
- If a default queue environment exists, select the default queue environment and click Delete.
Note: You can still use the default queue environment if you need it. However, you will need to override the Conda Packages property in the submitter, to remove the auto-configured values. You will have to do this in every job submission.
Submitting a 3ds Max rendering job
Now that your fleet is configured to support 3ds Max, you can submit your rendering jobs. Before submitting a full rendering job, it’s a good practice to validate that your configuration is working correctly.
- Open 3ds Max on your workstation and prepare a test job with a minimal 3ds Max scene (such as rendering a single frame of a basic scene).
- Use the Deadline Cloud submitter for 3ds Max to submit your job to the queue associated with your configured fleet.
- Open the Deadline Cloud monitor and navigate to the Job Monitor view to track the progress of your job.
Benefits
Implementing 3ds Max rendering on AWS Deadline Cloud through host configuration scripts combines cloud scalability with your existing 3ds Max workflows. This approach balances performance, cost-effectiveness, and streamlined operations without requiring significant changes to your current processes.
The solution demonstrates the flexibility of AWS Deadline Cloud. You can customize your rendering environment to meet your specific needs while still benefiting from the managed service model.
Benefits for using this approach:
- Reducing the operational overhead of managing your own render nodes.
- Scaling your rendering capacity automatically based on demand.
- Maintaining compatibility with your existing 3ds Max workflows.
Troubleshooting
If you encounter issues with your 3ds Max rendering jobs, here are some common troubleshooting steps:
- Installation failures: Check the worker logs in the Deadline Cloud console to see if there were any errors during the 3ds Max installation process.
- Missing dependencies: Some 3ds Max plugins or features might require additional dependencies. You can modify the worker configuration script to install these dependencies as needed.
- Timeout issues: If the installation consistently fails due to timeout, consider increasing the script timeout beyond 1200 seconds. You can try increments of 300 seconds until it no longer fails, or until the one hour limit is reached.
- Permission errors: Verify that the fleet’s IAM role has the correct permissions to access the S3 bucket and the 3ds Max installation files.
Conclusion
I’ve shown how to enable Autodesk 3ds Max on AWS Deadline Cloud Service Managed Fleets using Configuration Scripts. With this approach you can leverage the convenience of managed infrastructure while still using 3ds Max in your rendering pipeline.
Contact an AWS Representative to know how we can help accelerate your business.
Further reading
Keep up to date with new ways to leverage host configuration scripts for 3ds Max in the Deadline Cloud Samples repository.
If you want to dive deeper into this topic, here are some relevant resources: