# Rendering

### Render Buffer

The Render Buffer is used to generated Effects data onto. For each Model/Group/Submodel, xLights creates a Rectangular Grid to render effects on to. The size of the buffer depends on the model type and settings. 16 strand by 40 pixels Mega Tree will have a 16x40 render buffer.

<figure><img src="https://1941201815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ2Jwp7mRP9HqIZtQ_h%2Fuploads%2FC7PgV3GA7jBpKDNZG8LT%2Fimage.png?alt=media&#x26;token=548dd300-d25d-4921-b006-b7ac0a26fcc8" alt=""><figcaption></figcaption></figure>

The Effect is overlaid onto the render buffer to calculate the color data of the individual pixels or lights.

<figure><img src="https://1941201815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ2Jwp7mRP9HqIZtQ_h%2Fuploads%2F2Riyz9QRhnhuuA7WzQbB%2Frender1.gif?alt=media&#x26;token=a7b25037-0bac-47db-b832-e6acb4f0b203" alt=""><figcaption><p>Matix Render Buffer</p></figcaption></figure>

<figure><img src="https://1941201815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ2Jwp7mRP9HqIZtQ_h%2Fuploads%2FsNDPJSHK2VO5jNLe0QcN%2Frender.gif?alt=media&#x26;token=9fa57da9-4d01-4869-8a33-c0750ebf5099" alt=""><figcaption><p>Custom Model Render Buffer</p></figcaption></figure>

### Group Render Buffer

Default Minimal Grid will Draws a 2D grip over the models in the group and attempt to put each pixel in its own box, Up to the Max Grid Size, Normally 400x400.

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUczyTTS52yvM3s0r22roSTXII8KMXFtsIisgK6_JOQvKRAhHiX905wvuGvDP8yBO5Lum-UbjLGl9rzaET-bOR1fW4sGRMmO_x0cFR49xjeBamL-GypUP5QjdRH3qVWEzC578qELX3UeRoeT9cf04FIf8Hrtsg=s2048?key=1gBjmeJmolgwdkZH-qLraA" alt=""><figcaption></figcaption></figure>

### Model Rendering Low Level Model

<div data-full-width="true"><figure><img src="https://1941201815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ2Jwp7mRP9HqIZtQ_h%2Fuploads%2FwgPV5TbosaVr3HpoZ3pJ%2FxLights%20Rendering.pptx.png?alt=media&#x26;token=0bbb643b-69d7-4d3e-86ca-f5c5c6e9b898" alt=""><figcaption><p>Credit: Keith Westley</p></figcaption></figure></div>
