> ## Documentation Index
> Fetch the complete documentation index at: https://www.renderjuice.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Rigid Body Simulations with Render Farms

> Rigid body simulations are fully supported. Learn how to bake to keyframes or bake dynamics so the simulation is saved into your .blend.

## Status: ✅ Fully Supported

Rigid body simulations are fully supported on Renderjuice and should work as expected out of the box 🎉 without much hassle.

The key requirement is that you bake your rigid body simulations before uploading your scene. You can do this in two ways:

* **Bake to Keyframes:** This converts the simulation into keyframes embedded within your .blend file.
* **Bake All Dynamics:** This bakes the simulation into a cache that is stored in the .blend file when you save, so you still upload just the .blend.

## Example Files

Below are two example .blend files demonstrating the correct and incorrect setup for rigid body simulations.

<CardGroup cols={2}>
  <Card title="Unbaked Example Incorrect ❌" icon="download" href="https://public.storage.renderjuice.com/docs-example-files/rigid-body-basic-351-unbaked-incorrect.blend">
    Unbaked .blend file with rigid body simulation
  </Card>

  <Card title="Baked Keyframes Example Correct ✅" icon="download" href="https://public.storage.renderjuice.com/docs-example-files/rigid-body-basic-351-baked-keyframes-correct.blend">
    Baked .blend file with rigid body simulation
  </Card>

  <Card title="Baked Dynamics Example Correct ✅" icon="download" href="https://public.storage.renderjuice.com/docs-example-files/rigid-body-basic-351-baked-dynamics-correct.blend">
    Baked .blend file with rigid body simulation cache
  </Card>
</CardGroup>

Both files feature the Blender Suzanne monkey and a cube dropping onto a plane, showcasing how baking affects the simulation during rendering.

## Instructions

To use rigid body simulations with Renderjuice (and likely other render farms), you need to bake the simulation. There are two methods to do this:

* **Bake to Keyframes:** This converts the simulation into keyframes embedded within your .blend file.
* **Bake All Dynamics:** This bakes the simulation into a cache that is stored in the .blend file when you save, so you still upload just the .blend.

### Baking to Keyframes or Baking Dynamics

<Tabs>
  <Tab title="Bake to Keyframes">
    <Steps>
      <Step title="Set Up Your Rigid Body Simulation">
        Create your scene with the rigid body simulation. This might involve adding rigid body physics to objects like the cube and monkey mesh and setting up the simulation settings as desired.
      </Step>

      <Step title="Bake to Keyframes">
        After setting up your simulation, you need to bake it to keyframes.
        To bake the rigid body simulation to keyframes:
        Select all the objects involved in the rigid body simulation.
        Go to the Object menu at the top, navigate to `Rigid Body > Bake To Keyframes`.
        In the pop-up dialog, set the frame range and baking options as needed, then click OK.

        <Frame caption="Baking Rigid Body Simulation to Keyframes">
          <img src="https://mintcdn.com/renderjuice/JTRPTthvli0zXRaB/images/examples/rigid-bodies/bake-to-keyframes.png?fit=max&auto=format&n=JTRPTthvli0zXRaB&q=85&s=4d9ac42933732d86f6f8b97be3d2be42" width="2488" height="2060" data-path="images/examples/rigid-bodies/bake-to-keyframes.png" />
        </Frame>
      </Step>

      <Step title="Save Your Scene">
        After baking, make sure to save your .blend file. The baked keyframes are now part of your scene.
      </Step>

      <Step title="Upload and Render">
        Upload your .blend file to Renderjuice and start your render. Since the simulation is baked to keyframes, it will render correctly on the farm.

        <Tip>
          There's no need to upload any cache files or additional assets since the animation data is stored within the .blend file.
        </Tip>
      </Step>
    </Steps>
  </Tab>

  <Tab title="Bake All Dynamics">
    <Steps>
      <Step title="Set Up Your Rigid Body Simulation">
        Create your scene with the rigid body simulation as usual.
      </Step>

      <Step title="Bake All Dynamics">
        Use the 'Bake All Dynamics' option to bake the simulation into a cache.
        To do this:
        Go to the Scene properties panel.
        Find the Rigid Body World settings.
        Under the Cache section, click on Bake All Dynamics.

        <Frame caption="Baking All Dynamics">
          <img src="https://mintcdn.com/renderjuice/JTRPTthvli0zXRaB/images/examples/rigid-bodies/bake-all-dynamics.png?fit=max&auto=format&n=JTRPTthvli0zXRaB&q=85&s=defd6edb47979447452499c33e8f1921" width="1132" height="1710" data-path="images/examples/rigid-bodies/bake-all-dynamics.png" />
        </Frame>
      </Step>

      <Step title="Save Your Scene">
        After baking, save your .blend file. The rigid body cache is stored in memory and embedded into the .blend when you save, so the simulation travels with the file.

        <Tip>
          You only need to upload the `.blend` file. Rigid body bakes do not create a separate cache folder to include.
        </Tip>
      </Step>

      <Step title="Upload and Render">
        Upload your .blend file to Renderjuice and start your render.
      </Step>
    </Steps>
  </Tab>
</Tabs>

## Checklist

* [x] Did you bake your rigid body simulation? Whether to keyframes or as a cache.
* [x] Did you save your .blend file after baking? Ensure all changes are saved.
* [x] Are all necessary objects included in the bake? Only selected objects or those in the cache will have their simulations baked.

## FAQ

<Accordion title="Why do I need to bake rigid body simulations?">
  Rigid body simulations in Blender are not automatically included when rendering on a render farm. This would be the same result if you were to transfer the file to anybody else's computer!
  Baking the simulation ensures that it can be rendered consistently across different environments. Whether you bake to keyframes or use a cache, this process ensures that the simulation behaves the same way on the render farm as it does on your local machine.
</Accordion>

<Accordion title="Can I use the 'Bake All Dynamics' option?">
  Yes. After you click **Bake All Dynamics**, the rigid body cache is held in memory and embedded into the `.blend` file when you save. You only need to upload the `.blend` file, with no separate cache folder to include.

  <Tip>
    Remember to save your .blend file after baking so the cache is written into it.
  </Tip>
</Accordion>

<Accordion title="Do I need to bake other types of simulations?">
  For other simulations like fluid or smoke simulations, you need to cache and include the cache files when uploading to the render farm. Each simulation type has its own requirements. Refer to our documentation on [Using Simulation Nodes with Renderjuice](/docs/rendering-with-blender/simulation-nodes) for more information.
</Accordion>

<Accordion title="Can I edit the simulation after baking?">
  * **Baked to Keyframes:** Once the simulation is baked to keyframes, you can edit the keyframes like any other animation data. If you need to make changes to the simulation settings, you'll need to re-bake the simulation to update the keyframes.
  * **Baked All Dynamics:** If you've baked the dynamics, you can clear the bake, make changes, and re-bake the simulation.
</Accordion>

<Accordion title="Which baking method should I use?">
  * **Bake to Keyframes:** This method embeds the animation directly into the .blend file without the need for additional cache files. It's efficient and straightforward.
  * **Bake All Dynamics:** Useful if you prefer to work with simulation caches. The cache is embedded into the .blend on save, so you still upload just the one file.
    Choose the method that best fits your workflow.
</Accordion>

<Tip>
  Having trouble or something doesn't seem right? Just chat with us—we're happy to help and respond quickly!
</Tip>
