<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.larian.game/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Alena</id>
	<title>Divinity Engine Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.larian.game/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Alena"/>
	<link rel="alternate" type="text/html" href="https://docs.larian.game/Special:Contributions/Alena"/>
	<updated>2026-05-12T23:37:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Item&amp;diff=6398</id>
		<title>My first: Item</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Item&amp;diff=6398"/>
		<updated>2018-09-24T09:00:37Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the Items guide. Here you will find the item creation pipeline from modelling to importing your item in Divinity Engine 2.&amp;lt;br /&amp;gt;&lt;br /&gt;
This article is part of a collection of guides, with a page for every type of item.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item | General]]&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Scenery | Scenery]] (Rocks, plants, trees, shelves, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Lootable items | Lootable items]] (Shells, plates, food, gems, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Interactable animated items | Interactable animated items]] (Levers, doors, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Interactable socket items | Interactable socket items]] (Chairs, beds, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Weapons | Weapons]] (The sharp stuff)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To create items you will need some 3d modelling and texturing skills. &amp;lt;br /&amp;gt;&lt;br /&gt;
Two most important things you need to have if you want to create an Item: item model and it's textures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
= File formats =&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
No matter what type of item you want to do your pipeline will consists of:&amp;lt;br /&amp;gt;&lt;br /&gt;
*Modelling &lt;br /&gt;
*Texturing &lt;br /&gt;
*Setting up the item in the file&lt;br /&gt;
*Setting up the item in the editor&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
= Modelling =&lt;br /&gt;
&lt;br /&gt;
You will need a 3d modelling software to create items. If you unfamiliar with 3d modelling we advice you to check some 3d modelling specific guides first.&amp;lt;br /&amp;gt;&lt;br /&gt;
Places you can find good tutorials about 3d modelling:&amp;lt;br /&amp;gt;&lt;br /&gt;
* [http://polycount.com/ Polycount]&lt;br /&gt;
* [https://cubebrush.co/ Cubebrush]&lt;br /&gt;
* YouTube tutorials ([https://www.youtube.com/channel/UCSLLdTBwLMfTKWS56tOiQpw/videos good example])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
= Importing your resources in the editor =&lt;br /&gt;
&lt;br /&gt;
If you already have your granny files (.GR2) and Direct Draw Surface (.dds) texture files it's time to import them in the editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
#Open your Content Browser. Choose a correct package or create a new one.&amp;lt;br /&amp;gt;&lt;br /&gt;
#Hit the add resource button (highlighted red in the left upper corner) and select what type of resource you want to add. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:AddNewResourse.jpeg|none]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that you'll need to make a new material, assign textures to your new material and assign the material to your mesh.&amp;lt;br /&amp;gt;&lt;br /&gt;
To make a new material you have two options: &amp;lt;br /&amp;gt;&lt;br /&gt;
#Create a new material by pressing &amp;quot;Add resource&amp;quot; button highlighted red on the screenshot above and select material.&amp;lt;br /&amp;gt;&lt;br /&gt;
#Select any material that you see in content browser right click it and select &amp;quot;Create new from selected&amp;quot;. That will create a new material copy with all settings from the original.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you need to assign textures to your material and material to the mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Depending on the type of the material you're using it can have different texture parameters. &amp;lt;br /&amp;gt;&lt;br /&gt;
The most standard material we use for items is called Base_PBR.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:AssigningTexture.jpeg|none]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are using physical based rendering, it means that you need a base color texture (BM) a physical map (PM) and a normal map (NM)&amp;lt;br /&amp;gt;&lt;br /&gt;
The physical map (PM) channels are as follow: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Metalness in red (R) channel&lt;br /&gt;
* Roughness in green (G) channel&lt;br /&gt;
* Ambient Occlusion is in blue (B) channel&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item | General]]&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Scenery | Scenery]] (Rocks, plants, trees, shelves, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Lootable items | Lootable items]] (Shells, plates, food, gems, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Interactable animated items | Interactable animated items]] (Levers, doors, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Interactable socket items | Interactable socket items]] (Chairs, beds, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Weapons | Weapons]] (The sharp stuff)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Item&amp;diff=6397</id>
		<title>My first: Item</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Item&amp;diff=6397"/>
		<updated>2018-09-24T08:59:49Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the Items guide. Here you will find the item creation pipeline from modelling to importing your item in Divinity Engine 2.&amp;lt;br /&amp;gt;&lt;br /&gt;
This article is part of a collection of guides, with a page for every type of item.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item | General]]&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Scenery | Scenery]] (Rocks, plants, trees, shelves, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Lootable items | Lootable items]] (Shells, plates, food, gems, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Interactable animated items | Interactable animated items]] (Levers, doors, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Interactable socket items | Interactable socket items]] (Chairs, beds, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Weapons | Weapons]] (The sharp stuff)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To create items you will need some 3d modelling and texturing skills. &amp;lt;br /&amp;gt;&lt;br /&gt;
Two most important things you need to have if you want to create an Item: item model and it's textures.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
= File formats =&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
No matter what type of item you want to do your pipeline will consists of:&amp;lt;br /&amp;gt;&lt;br /&gt;
*Modelling &lt;br /&gt;
*Texturing &lt;br /&gt;
*Setting up the item in the file&lt;br /&gt;
*Setting up the item in the editor&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
= Modelling =&lt;br /&gt;
&lt;br /&gt;
You will need a 3d modelling software to create items. If you unfamiliar with 3d modelling we advice you to check some 3d modelling specific guides first.&amp;lt;br /&amp;gt;&lt;br /&gt;
Places you can find good tutorials about 3d modelling:&amp;lt;br /&amp;gt;&lt;br /&gt;
* [http://polycount.com/ Polycount]&lt;br /&gt;
* [https://cubebrush.co/ Cubebrush]&lt;br /&gt;
* YouTube tutorials ([https://www.youtube.com/channel/UCSLLdTBwLMfTKWS56tOiQpw/videos good example])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
= Importing your resources in the editor =&lt;br /&gt;
&lt;br /&gt;
If you already have your granny files (.GR2) and Direct Draw Surface (.dds) texture files it's time to import them in the editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
#Open your Content Browser. Choose a correct package or create a new one.&amp;lt;br /&amp;gt;&lt;br /&gt;
#Hit the add resource button (highlighted red in the left upper corner) and select what type of resource you want to add. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:AddNewResourse.jpeg|none]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that you'll need to make a new material, assign textures to your new material and assign the material to your mesh.&amp;lt;br /&amp;gt;&lt;br /&gt;
To make a new material you have two options: &amp;lt;br /&amp;gt;&lt;br /&gt;
#Create a new material by pressing &amp;quot;Add resource&amp;quot; button highlighted red on the screenshot above and select material.&amp;lt;br /&amp;gt;&lt;br /&gt;
#Select any material that you see in content browser right click it and select &amp;quot;Create new from selected&amp;quot;. That will create a new material copy with all settings from the original.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you need to assign textures to your material and material to the mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Depending on the type of the material you're using it can have different texture parameters. &amp;lt;br /&amp;gt;&lt;br /&gt;
The most standard material we use for items is called Base_PBR.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:AssigningTexture.jpeg|none]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are using physical based rendering, it means that you need a base color texture (BM) a physical map (PM) and a normal map (NM)&amp;lt;br /&amp;gt;&lt;br /&gt;
The physical map (PM) channels are as follow: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Roughness in green (G) channel&lt;br /&gt;
* Metalness in red (R) channel &lt;br /&gt;
* Ambient Occlusion is in blue (B) channel&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item | General]]&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Scenery | Scenery]] (Rocks, plants, trees, shelves, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Lootable items | Lootable items]] (Shells, plates, food, gems, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Interactable animated items | Interactable animated items]] (Levers, doors, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Interactable socket items | Interactable socket items]] (Chairs, beds, etc.)&lt;br /&gt;
|-&lt;br /&gt;
| [[My first: Item - Weapons | Weapons]] (The sharp stuff)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3823</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3823"/>
		<updated>2017-10-12T09:25:43Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If you scale a creature, some animations -like climbing- will not work properly..&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all bones in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all bones in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So white color will be 0xffffffff; black will be - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipment&amp;quot; and &amp;quot;ItemColors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequipped, and are hidden when player equips armor from equipment root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as pre-existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate equipment root template and add your meshes to equipment data.  &lt;br /&gt;
* Create &amp;quot;foldable&amp;quot; mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Create an icon for your equipment root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that is only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in Maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. Black vertices are needed to keep the cloth in place. If the cloth is not connected to the rest of your mesh by black vertices, it will fall through the level.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0, because it will fly around too much. If you put it too high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new ones, you will have to work with equipment root templates. Each equipment root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases, when we want to hide certain equipment slots, whenever something is equipped. For example, we have a long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as their living counterparts, so you can avoid remodeling entire meshes by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3822</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3822"/>
		<updated>2017-10-12T09:24:30Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If you scale a creature, some animations -like climbing- will not work properly..&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all bones in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all bones in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So white color will be 0xffffffff; black will be - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipment&amp;quot; and &amp;quot;ItemColors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequipped, and are hidden when player equips armor from equipment root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as pre-existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate equipment root template and add your meshes to equipment data.  &lt;br /&gt;
* Create &amp;quot;foldable&amp;quot; mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Create an icon for your equipment root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that is only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in Maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. Black vertices are needed to keep the cloth in place. If the cloth is not connected to the rest of your mesh by black vertices, it will fall through the level.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0, because it will fly around too much. If you put it too high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new ones, you will have to work with equipment root templates. Each equipment root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases, when we want to hide certain equipment slots, whenever something is equipped. For example, we have a long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as their living counterparts, so you can avoid remodeling entire meshes by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== MSK ==&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3821</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3821"/>
		<updated>2017-10-12T09:20:43Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If you scale a creature, some animations -like climbing- will not work properly..&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all bones in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all bones in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So white color will be 0xffffffff; black will be - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipment&amp;quot; and &amp;quot;ItemColors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequipped, and are hidden when player equips armor from equipment root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as pre-existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate equipment root template and add your meshes to equipment data.  &lt;br /&gt;
* Create &amp;quot;foldable&amp;quot; mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Create an icon for your equipment root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that is only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in Maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. Black vertices are needed to keep the cloth in place. If the cloth is not connected to the rest of your mesh by black vertices it will fall through the level.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== MSK ==&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3820</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3820"/>
		<updated>2017-10-12T09:18:48Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If you scale a creature, some animations -like climbing- will not work properly..&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all bones in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all bones in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So white color will be 0xffffffff; black will be - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipment&amp;quot; and &amp;quot;ItemColors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequipped, and are hidden when player equips armor from equipment root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as pre-existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate equipment root template and add your meshes to equipment data.  &lt;br /&gt;
* Create &amp;quot;foldable&amp;quot; mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Create an icon for your equipment root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that is only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in Maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== MSK ==&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3819</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3819"/>
		<updated>2017-10-12T09:17:55Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If you scale a creature, some animations -like climbing- will not work properly..&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all bones in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all bones in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So white color will be 0xffffffff; black will be - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipment&amp;quot; and &amp;quot;ItemColors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequipped, and are hidden when player equips armor from equipment root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as pre-existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate equipment root template and add your meshes to equipment data.  &lt;br /&gt;
* Create &amp;quot;foldable&amp;quot; mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Create an icon for your equipment root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== MSK ==&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3818</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3818"/>
		<updated>2017-10-12T09:16:07Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If you scale a creature, some animations -like climbing- will not work properly..&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all bones in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all bones in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So white color will be 0xffffffff; black will be - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipment&amp;quot; and &amp;quot;ItemColors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequipped, and are hidden when player equips armor from equipment root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3817</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3817"/>
		<updated>2017-10-12T09:14:23Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If you scale a creature, some animations -like climbing- will not work properly..&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all bones in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all bones in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So white color will be 0xffffffff; black will be - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3816</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3816"/>
		<updated>2017-10-12T09:13:30Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If you scale a creature, some animations -like climbing- will not work properly..&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all bones in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all bones in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3815</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3815"/>
		<updated>2017-10-12T09:10:23Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. The parameter will trigger different sound effects in the game depending on the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organize characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It is also possible to create a character without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned, by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, because each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3814</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3814"/>
		<updated>2017-10-12T09:04:46Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, which helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3813</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3813"/>
		<updated>2017-10-12T09:04:00Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To improve quality of our in-game normal maps, we swap our red channel into the alpha channel. Instead of outputting RGB, we output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you import your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, that helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3812</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3812"/>
		<updated>2017-10-12T09:02:22Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, that helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3811</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3811"/>
		<updated>2017-10-12T09:01:24Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with the environment, so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, that helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3810</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3810"/>
		<updated>2017-10-12T09:00:34Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Modelling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enough space to straiten the leg.&lt;br /&gt;
The red mesh on the image is too small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the knee-joint.&lt;br /&gt;
There for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model and can dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, that helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3809</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3809"/>
		<updated>2017-10-12T08:54:00Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Materials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character better in different environment and it also has an MSK system, that helps you change colors on certain things like skin and cloths (more on MSK below).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3808</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3808"/>
		<updated>2017-10-12T08:52:40Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Modelling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3807</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3807"/>
		<updated>2017-10-12T08:51:48Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Modelling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen.&lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3806</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3806"/>
		<updated>2017-10-12T08:43:46Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Creature editor set-up */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them below):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3805</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3805"/>
		<updated>2017-10-12T08:42:58Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Armor and Equipment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3804</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3804"/>
		<updated>2017-10-12T08:42:34Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Downloadable files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Male_ABC.zip|Elves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Lizards_Male_ABC.zip|Lizard Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Lizards_Male_ABC.zip&amp;diff=3803</id>
		<title>File:Lizards Male ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Lizards_Male_ABC.zip&amp;diff=3803"/>
		<updated>2017-10-12T08:40:07Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Lizards_Female_ABC.zip&amp;diff=3802</id>
		<title>File:Lizards Female ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Lizards_Female_ABC.zip&amp;diff=3802"/>
		<updated>2017-10-12T08:39:53Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Humans_Male_ABC.zip&amp;diff=3801</id>
		<title>File:Humans Male ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Humans_Male_ABC.zip&amp;diff=3801"/>
		<updated>2017-10-12T08:39:33Z</updated>

		<summary type="html">&lt;p&gt;Alena: Alena uploaded a new version of File:Humans Male ABC.zip&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Humans_Female_ABC.zip&amp;diff=3800</id>
		<title>File:Humans Female ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Humans_Female_ABC.zip&amp;diff=3800"/>
		<updated>2017-10-12T08:39:10Z</updated>

		<summary type="html">&lt;p&gt;Alena: Alena uploaded a new version of File:Humans Female ABC.zip&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Elves_Male_ABC.zip&amp;diff=3799</id>
		<title>File:Elves Male ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Elves_Male_ABC.zip&amp;diff=3799"/>
		<updated>2017-10-12T08:38:30Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Elves_Female_ABC.zip&amp;diff=3798</id>
		<title>File:Elves Female ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Elves_Female_ABC.zip&amp;diff=3798"/>
		<updated>2017-10-12T08:38:00Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Dwarves_Male_ABC.zip&amp;diff=3797</id>
		<title>File:Dwarves Male ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Dwarves_Male_ABC.zip&amp;diff=3797"/>
		<updated>2017-10-12T08:37:49Z</updated>

		<summary type="html">&lt;p&gt;Alena: Alena uploaded a new version of File:Dwarves Male ABC.zip&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Dwarves_Female_ABC.zip&amp;diff=3796</id>
		<title>File:Dwarves Female ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Dwarves_Female_ABC.zip&amp;diff=3796"/>
		<updated>2017-10-12T08:37:30Z</updated>

		<summary type="html">&lt;p&gt;Alena: Alena uploaded a new version of File:Dwarves Female ABC.zip&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3795</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3795"/>
		<updated>2017-10-12T08:36:55Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Downloadable files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Elves_Female_ABC.zip|Elves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[:File:Weapons_REF_A.zip|Weapons REF]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3782</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3782"/>
		<updated>2017-10-11T15:40:29Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Male_ABC.zip|Dwarves Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Dwarves_Male_ABC.zip&amp;diff=3781</id>
		<title>File:Dwarves Male ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Dwarves_Male_ABC.zip&amp;diff=3781"/>
		<updated>2017-10-11T15:39:57Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Dwarves_Female_ABC.zip&amp;diff=3780</id>
		<title>File:Dwarves Female ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Dwarves_Female_ABC.zip&amp;diff=3780"/>
		<updated>2017-10-11T15:34:12Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3779</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3779"/>
		<updated>2017-10-11T15:33:54Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Downloadable files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Dwarves_Female_ABC.zip|Dwarves Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Humans_Male_ABC.zip&amp;diff=3778</id>
		<title>File:Humans Male ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Humans_Male_ABC.zip&amp;diff=3778"/>
		<updated>2017-10-11T15:24:59Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3777</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3777"/>
		<updated>2017-10-11T15:24:50Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Humans_Male_ABC.zip|Human Male files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3776</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3776"/>
		<updated>2017-10-11T15:21:43Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gons. Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Cloth Simulation'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Cloth meshes shouldn't have any thickness.&amp;lt;br /&amp;gt;  &lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3775</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3775"/>
		<updated>2017-10-11T15:13:55Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Downloadable files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, evidently joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gonsю Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
* Meshes that are supposed to be cloth simulated (capes, hanging piece of cloth, flags, etc) should be built as follow: NO thickness. Try to keep their polycount optimal (500 triangles max per mesh). &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Human Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first...&amp;diff=3774</id>
		<title>My first...</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first...&amp;diff=3774"/>
		<updated>2017-10-11T15:11:57Z</updated>

		<summary type="html">&lt;p&gt;Alena: /* Full elements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Mods ==&lt;br /&gt;
&lt;br /&gt;
[[File:Adventure_Icon.png|48px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Adventure| Adventure]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Add-on_Icon.png|48px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Add-on| Add-on]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Base elements ==&lt;br /&gt;
Everything in the divinity engine needs one or more base elements. See these elements as building blocks for the final object.&amp;lt;br /&amp;gt;&lt;br /&gt;
There are generally two big building blocks: resources and root templates.&amp;lt;br /&amp;gt;&lt;br /&gt;
Resources are base elements that represent a specific type of data, such as a texture, or a model.&amp;lt;br /&amp;gt;&lt;br /&gt;
Root templates are built up of resources. They represent a base template of a certain object you can place, such as a character or a chair.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Take for example a chair. A chair needs:&lt;br /&gt;
* A visual model resource&lt;br /&gt;
* Texture resource&lt;br /&gt;
* A physics model resource&lt;br /&gt;
* A root template grouping all the resources into the specific chair you want.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|More info on how resources work can be found here: [[Resources explanation]]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|More info on how templates work can be found here: [[Templates explanation]]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:CreateResource_C.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Resource | Resource]] (Coming Soon)&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:CreateRootTemplate_C.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Root template | Root template]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Full elements ==&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Item | Item]] (Work in Progress) &amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Character | Character]] &amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[Part 1: creating a terrain object|Terrain]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[Part 1: creating a new skill|Skill]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Recipe|Recipe]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Character creation class | Character creation class]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Character creation origin | Character creation origin]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Character creation race | Character creation race]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:LarianLogo_Icon.png|32px]] &amp;lt;big&amp;gt;&amp;lt;b&amp;gt;[[My first: Custom portrait | Custom portrait]]&amp;lt;/b&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:Humans_Female_ABC.zip&amp;diff=3773</id>
		<title>File:Humans Female ABC.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:Humans_Female_ABC.zip&amp;diff=3773"/>
		<updated>2017-10-11T15:11:38Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3772</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3772"/>
		<updated>2017-10-11T15:10:18Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, evidently joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gonsю Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
* Meshes that are supposed to be cloth simulated (capes, hanging piece of cloth, flags, etc) should be built as follow: NO thickness. Try to keep their polycount optimal (500 triangles max per mesh). &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Playable Races Armor: &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[:File:Humans_Female_ABC.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:HelmetHair.jpeg&amp;diff=3770</id>
		<title>File:HelmetHair.jpeg</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:HelmetHair.jpeg&amp;diff=3770"/>
		<updated>2017-10-11T14:57:24Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:EqDataExample.jpeg&amp;diff=3769</id>
		<title>File:EqDataExample.jpeg</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:EqDataExample.jpeg&amp;diff=3769"/>
		<updated>2017-10-11T14:57:12Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3768</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3768"/>
		<updated>2017-10-11T14:56:10Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, evidently joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gonsю Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
* Meshes that are supposed to be cloth simulated (capes, hanging piece of cloth, flags, etc) should be built as follow: NO thickness. Try to keep their polycount optimal (500 triangles max per mesh). &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or wouldn't simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Equipment root templates'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change existing equipment or add new one you'll have to work with eq roots. Each eq root has it's Equipment Data: &lt;br /&gt;
[[File:EqDataExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You need to assign meshes to each race gender and tick the box if you want to deactivate any visual of any body part (usually you should).&amp;lt;br /&amp;gt;&lt;br /&gt;
We have &amp;quot;Deactivate Equipment Slot Visuals&amp;quot; there as well, but it is used in very rare cases when we want to hide certain equipment slot whenever something is equipped. For example we have a very long robe that hides any trousers your character equips.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Skeleton/Undead equipment'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Undeads are using the same rigs as alive characters versions so you can avoid remodeling entire mesh by just duplicating the existing mesh from the alive version and assigning Helper_Invisible_A material to the naked bodyparts in it. If the naked skin was baked in the texture you can use a different character material (replace the source file of the material to Characters_PRB_Skeletons from the CHaracters_PBR folder and reassign the textures)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Hair and Helmets'''&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're are making an equip-able helmet you need to add a separate mesh with hair to it. It needs to be in the same granny but separate mesh with &amp;quot;_Hair_&amp;quot; in its name. In this case if a player is bald and equips your hair mesh from the helmet won't be rendered.&amp;lt;br /&amp;gt;  &lt;br /&gt;
[[File:HelmetHair.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
The hair and helmet is in one layer &amp;quot;Humans_Female_Armor_Mage_B_Helmet_A&amp;quot; hair is called Humans_Female_Armor_Mage_B_Hair_E_Mesh. If the player is bald and equips this helmet he'll only equip the hat. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:LizardFemalePlatemailExample.zip&amp;diff=3764</id>
		<title>File:LizardFemalePlatemailExample.zip</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:LizardFemalePlatemailExample.zip&amp;diff=3764"/>
		<updated>2017-10-11T14:29:46Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:ClothParameters.jpeg&amp;diff=3763</id>
		<title>File:ClothParameters.jpeg</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:ClothParameters.jpeg&amp;diff=3763"/>
		<updated>2017-10-11T14:29:31Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=File:ExampleFileCloth.jpeg&amp;diff=3762</id>
		<title>File:ExampleFileCloth.jpeg</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=File:ExampleFileCloth.jpeg&amp;diff=3762"/>
		<updated>2017-10-11T14:29:22Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3761</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3761"/>
		<updated>2017-10-11T14:29:11Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, evidently joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gonsю Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
* Meshes that are supposed to be cloth simulated (capes, hanging piece of cloth, flags, etc) should be built as follow: NO thickness. Try to keep their polycount optimal (500 triangles max per mesh). &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;''&lt;br /&gt;
'''If not:''' &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
'''If yes''' you will also need:&lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As an example you can check how Lizards female platemail armor is set up :&amp;lt;br /&amp;gt; &lt;br /&gt;
[[:File:LizardFemalePlatemailExample.zip|Lizard Female files]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to work in Lizards_Female_Armor_ABC, use other files as references. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note: if you export armor only include bones that you need, don't include entire skeleton.&amp;lt;br /&amp;gt; &lt;br /&gt;
But! The character root should be always included.&amp;lt;br /&amp;gt; &lt;br /&gt;
If you're making a helmet or any other piece of armor that only skinned to 1 bone, make it rigid. &amp;lt;br /&amp;gt; &lt;br /&gt;
Go to &amp;quot;Extra Attributes&amp;quot; tab in maya and put &amp;quot;Rigid = true&amp;quot;, otherwise it won't work in the editor.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To add cloth simulation you need add &amp;quot;Cloth=1&amp;quot; in &amp;quot;Extra Attributes&amp;quot; tab in maya and add vertex paint on your mesh.&amp;lt;br /&amp;gt;  &lt;br /&gt;
Black for fixed vertices (0, 0, 0) Red for simulated vertices (255, 0 ,0)&amp;lt;br /&amp;gt;&lt;br /&gt;
You can preview how it looks in the example file: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleFileCloth.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
In Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Color -&amp;gt; Paint Vertex Color &amp;lt;br /&amp;gt; &lt;br /&gt;
Make sure there are no elements with only red vertices. With no black vertices to fix the cloth in place it will fall apart to pieces. These pieces will fall through the level without being connected to anything.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure your cloth simulated mesh has only 1 smoothing group. To be sure in Maya, select your mesh -&amp;gt; go to Polygons tab -&amp;gt; Normals -&amp;gt; Soften Edge &amp;lt;br /&amp;gt;&lt;br /&gt;
Try not to go too high poly with your cloth simulated meshes, as it will affect performance. Keep it &amp;lt;400 vertices per cloth mesh. &amp;lt;br /&amp;gt;&lt;br /&gt;
Don't put cloth simulated meshes in the areas where they will bend (elbows, shoulders, knees) it won't look good. &amp;lt;br /&amp;gt;&lt;br /&gt;
If you added cloth to a mesh when you double click on it in content browser you will be able to edit some cloth parameters:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ClothParameters.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Pose matching is one of the most important parameter you'll find there. Don't put it on 0 cause it will fly around too much. If you put it to high your cloth mesh will be too stiff or would not simulate at all. Best results could be achieved when it's between 0.01 - 0.2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3754</id>
		<title>My first: Character</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=My_first:_Character&amp;diff=3754"/>
		<updated>2017-10-11T13:42:17Z</updated>

		<summary type="html">&lt;p&gt;Alena: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Creating a character can be roughly divided into three parts: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Creating a creature (monster or animal)&lt;br /&gt;
* Creating body parts and hairstyles (heads, hairstyles, beards)&lt;br /&gt;
* Creating Armor&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Creating custom characters is a very technical and complicated process. It will require artistic skills and profound knowledge of 3d modelling, texturing, rigging, skinning, animation and Larian editor.&amp;lt;br /&amp;gt;&lt;br /&gt;
''If you do not possess all the skills mentioned above and still want to make custom characters we strongly recommend reusing existing rigs and animations.&amp;lt;br /&amp;gt;'' &lt;br /&gt;
&lt;br /&gt;
To make a creature you can either: &amp;lt;br /&amp;gt;&lt;br /&gt;
* Make your own custom creature, rig, animations&lt;br /&gt;
* Make your own custom creature that will use already existing rig and animations (recommended)&lt;br /&gt;
&lt;br /&gt;
Larian pipeline of creature creation in a nutshell: &lt;br /&gt;
# Concept &lt;br /&gt;
# Creation a high poly asset in zbrush &lt;br /&gt;
# Retopo, unwrap &lt;br /&gt;
# Texturing&lt;br /&gt;
# Testing your mesh in the editor&lt;br /&gt;
# Rigging &lt;br /&gt;
# Skinning &lt;br /&gt;
# Animating&lt;br /&gt;
''Note: if you're reusing existing rig you can skip #6 and #8'' &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== File formats ==&lt;br /&gt;
&lt;br /&gt;
In the editor 3d models are saved as granny files (.GR2).&amp;lt;br /&amp;gt;&lt;br /&gt;
The textures are saved as DirectDraw Surface (.dds).&amp;lt;br /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| More info on Granny 3D can be found [http://www.radgametools.com/granny.html here]&lt;br /&gt;
|-&lt;br /&gt;
| More info on DirectDraw Surface can be found [https://en.wikipedia.org/wiki/DirectDraw_Surface here]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Creature editor set-up ==&lt;br /&gt;
Lets take an example of the troll creature. &amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to implement a troll creature in the game you need: &amp;lt;br /&amp;gt;&lt;br /&gt;
Resources:&amp;lt;br /&amp;gt;&lt;br /&gt;
* 3d model &lt;br /&gt;
* Textures: Base Map(BM) Normal map (NM) and Physical map(PM)&lt;br /&gt;
* Material  &lt;br /&gt;
* Physics mesh &lt;br /&gt;
* Ragdoll mesh  &lt;br /&gt;
* Animation files (won't be covered in this guide)&lt;br /&gt;
Special editor files (more on them later):&amp;lt;br /&amp;gt;&lt;br /&gt;
* Visual Set &lt;br /&gt;
* Root Template &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Example file of the troll creature: [[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Example of all the resource files in content browser:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Troll ContentBrowserResourses.jpeg|none]]&lt;br /&gt;
&lt;br /&gt;
== Modelling ==&lt;br /&gt;
'''General modelling tips: &amp;lt;br /&amp;gt;'''&lt;br /&gt;
* All the joints areas should have the proper cuts (bending cuts- see below), aligned accordingly along with the respective naked model of the race you’re modeling.&lt;br /&gt;
* The armors are using the same rig as the naked model, evidently joints need to be placed correctly, with as similar cuts as possible.&lt;br /&gt;
* No Scaling applied to the meshes: reset X-form.&lt;br /&gt;
* No N-gonsю Only 3 (triangles) and 4-gons (quads) are allowed.&lt;br /&gt;
* Delete any unused vertices and floating triangles.&lt;br /&gt;
* Meshes that are supposed to be cloth simulated (capes, hanging piece of cloth, flags, etc) should be built as follow: NO thickness. Try to keep their polycount optimal (500 triangles max per mesh). &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Joints1.jpeg|none]]&lt;br /&gt;
Reasons for the Cuts:&amp;lt;br /&amp;gt;&lt;br /&gt;
The cuts that are made will be used to squash and stretch at joint areas.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints2.jpeg|none]]&lt;br /&gt;
The green and red meshes are skinned to the same rig and posed in the same way. &amp;lt;br /&amp;gt;&lt;br /&gt;
The green mesh has the correct shapes to create a nice rolling bend of the knee.&lt;br /&gt;
whilst the red mesh is missing the shapes and cannot be bend in the same way.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints3.jpeg|none]]&lt;br /&gt;
When creating the shapes there must be enhough space to straigten the leg&lt;br /&gt;
the red mesh has a shape to small to straighten the leg without it collapsing on itself&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Joints4.jpeg|none]]&lt;br /&gt;
In this example the shapes do not match the location of the kneejoint&lt;br /&gt;
and there for are not used in the skinning.&amp;lt;br /&amp;gt;&lt;br /&gt;
Make sure when creating the mesh to look at the '''size''' of the shape and '''location''' of the joints.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Fingers.jpeg|none]]&lt;br /&gt;
When making the Fingers make sure they all rotate the same way in their base position&amp;lt;br /&amp;gt;&lt;br /&gt;
* Bottom of feet should be as flat as possible.&lt;br /&gt;
* Use smoothing groups sparingly AND intelligently: don’t use 32 smoothing groups when 4 is enough.&lt;br /&gt;
* Make sure the armor/clothing pieces are not clipping through one another.&lt;br /&gt;
* The vertices along the center world line (symmetry line) should be obviously aligned correctly in the center.&lt;br /&gt;
* Close your armor pieces: the player starts with a naked model then can individually dress up his character with any armor piece you’re going to make. It is therefore important there are no holes. Also, make sure your Lowerbody and Upperbody pieces hide the cut at the waistline level.&lt;br /&gt;
* About objects that can bend (e.g. tails), don't put concave (=bending inwards) curves in it. They should be as straight as possible in neutral pose.&lt;br /&gt;
* Final character should be centered on origin (x0,y0,z0) and fit the naked model provided.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Don't forget to make a physics mesh for your character, it needs it to collide with environment and so the player can click and select your character on the screen. &lt;br /&gt;
&lt;br /&gt;
== Textures ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In DOS2 we use f Physically-Based Rendering (PBR). &amp;lt;br /&amp;gt;&lt;br /&gt;
To learn more about PBR you can read [https://www.allegorithmic.com/pbr-guide PBR Guide by Allegorithmic here]. &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A creature, like troll, usually needs basemap (BM), normal map(NM) and physical map(PM) textures.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian editor uses .dds textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
Texture examples:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:TextureExamplesTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
We pack Metallness in the Red channel, Roughness in the Green channel and Ambient Occlusion in the Blue channel of Physical map.&amp;lt;br /&amp;gt;&lt;br /&gt;
''Why our NM and PM textures look different from the ones used in other game engines ?'' &amp;lt;br /&amp;gt;&lt;br /&gt;
-In image files (including dds) the red channel gets the least bytes assigned to it this causes some detail loss which you don't want.&amp;lt;br /&amp;gt;&lt;br /&gt;
To circumvent it/improve quality, we swivel our red channel into the alpha channel to instead of outputting RGB with output xGBR maps.&amp;lt;br /&amp;gt;&lt;br /&gt;
Larian primarily uses Substance Painter for texturing our characters and assets. [https://www.allegorithmic.com/buy You can get/try it here].&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
== Materials ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
After you imported your mesh and textures in the editor you need to create a material. &amp;lt;br /&amp;gt;&lt;br /&gt;
We have a couple of Larian materials(shaders) you can use:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Materials.jpeg|none]] character folder: [[File:CharacterMaterials.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Character materials have fresnel effect on them so you can see your character in various environment and it also has MSK system, that helps you change colors on certan things like skin and cloths (more on MSK later).  &amp;lt;br /&amp;gt;&lt;br /&gt;
If you don't need this functionality you can use any material from the &amp;quot;Base_PBR&amp;quot; folder.&amp;lt;br /&amp;gt;&lt;br /&gt;
After you created your material assign your textures in it and assign material to your mesh. (double click on material in content browser; double click on the mesh in content browser)&amp;lt;br /&amp;gt;&lt;br /&gt;
If your are not using MSK but still want to use character material, just leave it empty (don't enable it in the box) or assign a black texture to it.&amp;lt;br /&amp;gt;&lt;br /&gt;
You can edit the functionality of the material by right clicking it in content browser and selecting &amp;quot;Open in editor&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialEditor2.jpeg|none]] &amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make changes and save the material all the assets that are using the material will change accordingly. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can always make edits and &amp;quot;save as&amp;quot; a separate copy for testing purposes.&amp;lt;br /&amp;gt;&lt;br /&gt;
Material source file can be easily changed if you select your material in the content browser and go to the side bar.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:MaterialSourceFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you change the sourcefile of the material you need to reassign textures. &amp;lt;br /&amp;gt;&lt;br /&gt;
You can also see a &amp;quot;Material Type&amp;quot; parameter in the side bar of the material. the parameter will trigger different sound effects in the game depending in the type of your material, so don't leave it unassigned. &amp;lt;br /&amp;gt;&lt;br /&gt;
== Visual Sets ==&lt;br /&gt;
Visual sets are special editor files, which help us organizing characters, their armor, body parts and colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
It also possible to a create without the visual set, in case you don't need any functionality mentioned above. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual Set consists of 9 visual lists, where you can put meshes and 3 color lists where you can store colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Visual set example:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetExample.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you're working on a unique creature that doesn't need as many equipment pieces as our regular characters, you can put armor meshes in any visual list. (the names in brackets are for your convenience and consistency).&amp;lt;br /&amp;gt;&lt;br /&gt;
Although it is recommended to keep something in either list #3(Torso) or #2(Head) because of material sounds functionality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Our troll example visual set:&lt;br /&gt;
[[File:TrollVisualSetExample2.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Troll creature doesn't need to equip armor so it has some unique meshes in visual 3 (torso) list. &amp;lt;br /&amp;gt;&lt;br /&gt;
!Important! You can also leave the meshes unassigned meshes by pressing &amp;quot;X&amp;quot; button.  &amp;lt;br /&amp;gt;&lt;br /&gt;
Space in the visual set is very limited, cause each visual set is stored in unit64. So you might have to create multiple visual sets for different armors.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Colors in the visual set'''&amp;lt;br /&amp;gt;&lt;br /&gt;
There are 3 color tabs in the Visual lists: Skin, Hair and Cloth colors. And 5 color rows you can change on the bottom. &amp;lt;br /&amp;gt;&lt;br /&gt;
In the lists you can select and store colors. And in the rows on the bottom you can select colors from the list.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:VisualSetColors.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To be able to edit colors from the visual set you need your mesh to use character pbr material and have MSKskin and/or MSKcloth. &amp;lt;br /&amp;gt;&lt;br /&gt;
''Our MSK pipeline will be described below. &amp;lt;br /&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
== Root Template ==&lt;br /&gt;
To be able to spawn a character in the editor you will need to create a root template for it.&amp;lt;br /&amp;gt;&lt;br /&gt;
More advanced [[My_first:_Root_template|guide about root templates here]]&lt;br /&gt;
[[File:RootTemplateTroll.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
You will need to edit following parameters for your creature:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Ai Bounds - preferably a cylinder for the creature.&lt;br /&gt;
* DisplayName&lt;br /&gt;
* Physical Resource (physical mesh of your character)&lt;br /&gt;
* VisualResourseID - your actual mesh with the rig (could also be just a file with the rig)&lt;br /&gt;
* VisualSetResourseID (if any)&lt;br /&gt;
Make sure it has: &amp;lt;br /&amp;gt;&lt;br /&gt;
* ExplodedResourseID&lt;br /&gt;
* ExplosionFX&lt;br /&gt;
* HitFX&lt;br /&gt;
* Icon&lt;br /&gt;
* RagdollResourseID&lt;br /&gt;
* Stats&lt;br /&gt;
Do not scale creatures unless you really need to. If scale a creature some animations, like climbing will not work properly.&amp;lt;br /&amp;gt;&lt;br /&gt;
Small scale like 1.1 -1.3 is generally ok. &amp;lt;br /&amp;gt;&lt;br /&gt;
Only use &amp;quot;IsPlayer&amp;quot; property for testing.&amp;lt;br /&amp;gt;&lt;br /&gt;
Beware if you make your character &amp;quot;IsPlayer&amp;quot; the equipment system will not work properly. (More about equipment below) &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Root templates and Visual sets.''' &lt;br /&gt;
There are 3 ways of using visual sets for creatures in root templates:&amp;lt;br /&amp;gt;&lt;br /&gt;
# Not using visual set for creatures - you put character mesh with all boned in VisualResourseID&lt;br /&gt;
# Using visual set only for armor/equipment for your character - character mesh with all boned in VisualResourseID + visual set with armor meshes, skinned to the character.&lt;br /&gt;
# Using visual set for both body parts and armor - just the rig with all bones in VisualResourseID +visual set with naked body parts and armor.&lt;br /&gt;
Most of the animals use #1, most of the creatures with equipment use #2 and ALL of NPC of our playable races use #3 approach. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Character creation visuals==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to change Character Creation(CC) visuals you need to change &amp;quot;hero&amp;quot; root templates of our playable races:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroRootTemplates.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Hero root templates also have their own &amp;quot;hero&amp;quot; visual sets:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:HeroVisualSets.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
If you add/delete meshes from hero visual sets it will appear/disappear in Character Creation(CC). So to add/modify meshes in CC you just need to add them in those visual sets. &amp;lt;br /&amp;gt;&lt;br /&gt;
Hair, Heads and Facial Features come from hero visual sets. while colors and armors in CC come from stats. &amp;lt;br /&amp;gt;&lt;br /&gt;
To change the color selection available in character creation you need to change Race Presets files: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:racepresetsFile.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To change or add color of the hair/skin you will need to change the value of the colors. &amp;lt;br /&amp;gt;&lt;br /&gt;
Example of the value of the color: &amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:ExampleColorValue.jpeg|none]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Color value is &amp;quot;0xff&amp;quot; + it's Hex Color Code. So completely while color will be 0xffffffff; completely black - 0xff000000&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
To change armor equipment and colors you will need to modify &amp;quot;ItemProgression&amp;quot;, &amp;quot;Equipmet&amp;quot; and &amp;quot;Item Colors&amp;quot; stat files. Those will require more advanced knowledge. Guide on stats is still WIP here. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Armor and Equipment ==&lt;br /&gt;
There is a difference in code between playable and NPC characters. NPC characters, as mentioned above, use visual sets for armor, while player characters use equipment. NPC visuals is just a rig in it's root template with all the armor and body parts stored in visual sets, while player characters have their naked body parts in them, which can't be unequiped, and are hidden when player equips armor from eq root templates. &amp;lt;br /&amp;gt;&lt;br /&gt;
So when you make armor you need to ask yourself a question: &amp;lt;br /&amp;gt;&lt;br /&gt;
Do you want players to be able to equip your armor piece or is it going to be just a unique npc/creature armor?&amp;lt;br /&amp;gt;&lt;br /&gt;
If not: &amp;lt;br /&amp;gt;&lt;br /&gt;
You just need to create a mesh, import it to editor and add it it your NPC visual set. &amp;lt;br /&amp;gt;&lt;br /&gt;
* If yes you need to make sure you do the following: &amp;lt;br /&amp;gt; &lt;br /&gt;
* Create meshes for each race and gender. So you need to have 8 meshes + 8 skeleton version variation.  &lt;br /&gt;
* Your armor pieces needs to be made and cut the same way as already existing equipment, so they could fit with each other.  &lt;br /&gt;
* Meshes need to be textured and masked the same way (read about MSK system below) &lt;br /&gt;
* Create separate eq root template and add your meshes to eq data.  &lt;br /&gt;
* Create foldable mesh of your armor piece (Mesh that you see when you drop an armor piece on the ground)  &lt;br /&gt;
* Crete an icon for your eq root template&lt;br /&gt;
* Give stats to your new equipment and make sure it can be generated for loot. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== Downloadable files ==&lt;br /&gt;
Example files of the creatures Animals:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Bear_ABC.zip|Bear example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Boar_ABC.zip|Boar example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Cattle_ABC.zip|Cattle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Crocodile_ABC.zip|Crocodile example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Deer_ABC.zip|Deer example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Dog_ABC.zip|Dog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Frog_ABC.zip|Frog example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Pig_ABC.zip|Pig example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Rat_ABC.zip|Rat example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Salamander_ABC.zip|Salamander example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Squirrel_ABC.zip|Squirrel example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Tiger_ABC.zip|Tiger example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Turtle_ABC.zip|Turtle example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Animals_Wolf_ABC.zip|Wolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example files of the creatures Creatures:&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_ElementalDevil_ABC.zip|ElementalDevil example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Gheist_A.zip|Gheist example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Giant_Insect_ABC.zip|Insect example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Merman_ABC.zip|Merman example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Nightmare_Werewolf_ABC.zip|Werewolf example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Raanaar_Automaton_ABC.zip|Automaton example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_SourcePuppet_ABC.zip|SourcePuppet example]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[:File:Creatures_Troll_ABC.zip|Troll example]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alena</name></author>
	</entry>
</feed>