Skip to content

Creating vertex color groups

Dmitry edited this page Apr 20, 2020 · 1 revision

Introduction

To create a Static Prelight, we need to use Vertex Colors. the program will apply the desired color to the vertices/faces.

To find a list of vertices recorded in the color model, go to the Object Data tab, which is located on the right side of the working window, and after scrolling a little below you will find a list with recorded vertex colors.

Here, the colors of the object's vertices are saved (“+” creates; “-” deletes):

  1. Day light.
  2. Night light.

Example

Note: A strict order is observed here, the first is responsible for daylight, the second is for the night, and the name of the recorded peaks does not affect anything (in the screenshot I renamed them (Day, Night) for more understanding)!

Let's start!

For example, I will show it on a simple model.

Test model

Go to the tab on the right called Object Data, find the Vertex Colors list there and delete everything (select an item from the list and click on the "-" button).

Delete all vertex coolors

You must have a clean list.

Add two items to this list.

Tip: The first item - daylight, the second item - night lighting.

Item list

Daylight

Select the first item and go to Vertex Paint mode.

Go to Vertex Paint mode

Go to face selection mode.

Go to face selection mode

Select all faces (key A).

Choose the color for the faces.

Select color

Color circle

Now, in the sense of brightness (right column), select a darker shade of white (choose to your taste).

Select dark shade

Now press the “Shift + K” hotkey (Paint → Set Vertex Color) and this color will be applied to the selected faces.

Nightlight

In the tab Object Data → Vertex Colors select the second item in the list (type of night lighting)

Select night col

And now in the Vertex Paint mode we do exactly the same as with daylight.

I will paint the object in a darker color so that the object does not glow at night, and leave only the windows bright.

Night object

Bake the textures in the same way as I showed above.

After baking, you can export the model in the .dff format File → Export → DragonFF DFF (.dff)) .

Test in the game

Daytime

Daytime object

Night time

Night time object