# INSTAFOG

<figure><img src="https://1749990179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5mR6bxwnA5qGkSqBAd09%2Fuploads%2FSlZc3R56mYUp85gceBh4%2Ffog.gif?alt=media&#x26;token=d70290cb-fe73-40c0-a8c4-e5a6159623c4" alt=""><figcaption></figcaption></figure>

### Usage

Access the addon's panel:

1. Open a 3D Viewport in Blender.
2. In the 3D Viewport, locate the Tool Shelf on the right side.
3. Look for the "CY-Tools" tab and click it to reveal the "CY-Tools Instafog " panel.

<figure><img src="https://1749990179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5mR6bxwnA5qGkSqBAd09%2Fuploads%2FcZ1g1LdsNLS5fYZnH1cF%2Fimage.png?alt=media&#x26;token=021c9a43-88e9-463c-86c7-864af9bcf583" alt=""><figcaption></figcaption></figure>

The properties are set to the following by default to achieve a cloud look with the Principle Volume using a Musgrave texture. Make sure you have lights in your scene to view the fog properly and feel free to play around with the values. The following should be considered:

* Scale: This parameter controls the size of the texture. A larger scale value will create a more detailed texture with smaller features, while a smaller scale value will create a smoother texture with larger features.

<div><figure><img src="https://1749990179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5mR6bxwnA5qGkSqBAd09%2Fuploads%2FrCtLzV10rFzUWpB59vTk%2FScale0001.png?alt=media&#x26;token=3886ad8b-4eca-403b-8184-5c3553735212" alt=""><figcaption><p>Scale: 2.4</p></figcaption></figure> <figure><img src="https://1749990179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5mR6bxwnA5qGkSqBAd09%2Fuploads%2F4Sr3c02wlTgIsZHPUHkM%2FScale0003.png?alt=media&#x26;token=1a206075-2498-4e38-8ca0-9929aec95235" alt=""><figcaption><p>Scale: 0.7</p></figcaption></figure></div>

* Detail: This parameter controls the amount of high-frequency detail in the texture. A higher detail value will create a more complex texture with more small-scale variations, while a lower detail value will create a simpler texture with fewer variations.
* Dimension: This parameter controls the overall shape of the texture. Higher values will create a more flat, two-dimensional texture, while lower values will create a more three-dimensional texture with bumps and ridges.
* Lacunarity: This parameter controls the variation in feature size within the texture. A lower lacunarity value will create a more uniform texture with less variation in feature size, while a higher lacunarity value will create a more varied texture with larger and smaller features mixed together.&#x20;

<div><figure><img src="https://1749990179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5mR6bxwnA5qGkSqBAd09%2Fuploads%2F6aFGqbiZYPuijSJEErJm%2F0001.png?alt=media&#x26;token=156505d5-1df3-4844-aea0-694bc1a5a224" alt=""><figcaption><p>Lacunarity: 1.0</p></figcaption></figure> <figure><img src="https://1749990179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5mR6bxwnA5qGkSqBAd09%2Fuploads%2Fft9h956aehFKE6W3M7uV%2F0003.png?alt=media&#x26;token=a46049f2-3a45-43ab-ae04-0245d0939702" alt=""><figcaption><p>Lacunarity: 1.4</p></figcaption></figure></div>

### Recommendations:&#x20;

**FOR EVEE:**

<figure><img src="https://1749990179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5mR6bxwnA5qGkSqBAd09%2Fuploads%2FldW8SO6ShPz0UfEXy5es%2Fimage.png?alt=media&#x26;token=c2cfff03-c75a-4e0e-b6f9-c7d4041df533" alt=""><figcaption></figcaption></figure>

Make sure to have a look at Render Properties > Volumetrics parameters. If you have a performing GPU, you can easily set the tile size to 2px to get a more crisp fog, as well as make sure to enable Volumetric Shadows. I personally got good results with Distribution and Light Clamping to 0.<br>

**FOR CYCLES:**

For more control over rendering go to Render Properties > Light Paths parameters.\
Change the "Volume" value from 0 to a value between 4 to 12 or above depending on your hardware.&#x20;

Under Render Properties > Volumes, change the Max Steps to control how many samples the volume will render with. You can lower this in case of extremely long render times.<br>

<figure><img src="https://1749990179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5mR6bxwnA5qGkSqBAd09%2Fuploads%2FcVHzQajiH12ckz6DygLL%2FScreenshot%202023-05-03%20120203.png?alt=media&#x26;token=179ea230-05f9-4641-becd-0e0c8d02987c" alt=""><figcaption></figcaption></figure>

I also recommended to using INSTAFOG in combination with the [COLORIZER ](https://cytools.cjkproduction.com/colorizer)addon.

### Development considerations

This addon is still in development and interactions may occasionally not work as expected.\
Follow this addon on Blender Market to stay tuned regarding any updates.

### Author and License&#x20;

Cy-Tools is a suite of Blender Addons created by @cyrusjameskhan and\
licensed under the GNU General Public License (GPL). See [LICENSE](https://cytools.cjkproduction.com/license) for more information.
