Difference between revisions of "Vertex color coding"

From Nexus Mods Wiki
Jump to: navigation, search
(Created page with " We are using vertex color to define 2 types of operation on clothing items and 1 for facial animation purposes: *Hiding items which are ocluding first person view (hats...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
*Select verticies which you want to hide and set its color in GREEN channel to 0 (RGB 255 0 255)  
 
*Select verticies which you want to hide and set its color in GREEN channel to 0 (RGB 255 0 255)  
  
http://wiki/@api/deki/files/1283/=Green.jpg
+
[[File:KCD green.jpg|RTENOTITLE]]
  
 
 
 
 
Line 27: Line 27:
 
*Select verticies and set its color in RED channel to 0 (RGB 0 255 255)  
 
*Select verticies and set its color in RED channel to 0 (RGB 0 255 255)  
  
http://wiki/@api/deki/files/1284/=Red.jpg
+
[[File:KCD red.jpg|RTENOTITLE]]
  
 
 
 
 
  
 
'''Realtime tangent update'''
 
'''Realtime tangent update'''
 
 
 
  
 
*Select verticies and set its color in BLUE channel to 0 (RGB 255 255 0)  
 
*Select verticies and set its color in BLUE channel to 0 (RGB 255 255 0)  
  
 
+
[[File:KCD blue.jpg|RTENOTITLE]]
 
 
http://wiki/@api/deki/files/1285/=blue.jpg
 
  
 
 
 
 
Line 49: Line 45:
 
See the result below.
 
See the result below.
  
http://wiki/@api/deki/files/1286/=greenBlue.jpg
+
[[File:KCD greenBlue.jpg|RTENOTITLE]]
 +
 
 +
{{KCDNavigation}}
 +
 
 +
[[Category:Documentation]] [[Category:Kingdom Come Deliverance]]

Latest revision as of 09:17, 10 February 2020

We are using vertex color to define 2 types of operation on clothing items and 1 for facial animation purposes:

  • Hiding items which are ocluding first person view (hats, helmets, hoods)
  • Define, which part of item is not hiding any attachments on character (hood tails, open jackets etc.)
  • Define verticies which are updating tangents in realtime (facial animation)

To save all of those information into verticies, each feature has its own channel in vertex color.
To setup and export clothing item or any other geometry binded on our skeleton correctly, you have to follow several rules.

  1. Default vertex color MUST be 255 255 255 in RGB
  2. Hiding geometry occluding players 1st person view is coded in GREEN channel
  3. Define, which part of item is not hiding any attachments on character is coded in RED channel
  4. Realtime tangent update is coded in BLUE channel

 

Hiding geometry occluding players 1st person view

  • Select verticies which you want to hide and set its color in GREEN channel to 0 (RGB 255 0 255)

RTENOTITLE

 

Define, which part of item is not hiding any attachments on character

  • Select verticies and set its color in RED channel to 0 (RGB 0 255 255)

RTENOTITLE

 

Realtime tangent update

  • Select verticies and set its color in BLUE channel to 0 (RGB 255 255 0)

RTENOTITLE

 

Players head setup

There is need to hide head geomatry and update tangents at the same time. So there is some part of players head which has GREEN and BLUE channel set to 0.

See the result below.

RTENOTITLE

Kingdom Come: Deliverance: Forum | Before you start | Tutorials & Instructions | Basic Mods | Tools | Documentation | Glossary | EULA