Quick camo selection definition guide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (more text)
m (more text)
Line 15: Line 15:
Camo selections are term to describe [[Named_Selection|named selections]] to be used to apply different textures to a model.
Camo selections are term to describe [[Named_Selection|named selections]] to be used to apply different textures to a model.
This can be done by either means of [http://pmc.editing.wiki/doku.php?id=arma2:texturing:hiddenselectionstextures config] or [[setObjectTexture|scripting].
This can be done by either means of [http://pmc.editing.wiki/doku.php?id=arma2:texturing:hiddenselectionstextures config] or [[setObjectTexture|scripting].
==Requirements==
You need the paid subscriber versions of mikero's tools:
https://forums.bistudio.com/topic/113852-mikeros-dos-tools/
Namely '''dep3d'''.


==Process==
==Process==


===Get texture list===
===Get texture list===
Requirement:
You need the paid subscriber versions of [https://forums.bistudio.com/topic/113852-mikeros-dos-tools/ mikero's tools]. Namely '''dep3d'''.


  DeP3d [-options..] AnyFolder | Anyfile[.p3d] | any list | "comma,separated,list"
  DeP3d [-options..] AnyFolder | Anyfile[.p3d] | any list | "comma,separated,list"
Line 36: Line 32:
  DeP3d.exe -P -FL p:\namespace\path\modelName.p3d
  DeP3d.exe -P -FL p:\namespace\path\modelName.p3d
  DeP3d.exe -P -FL p:\namespace\path\ >> TextureListForPath.txt
  DeP3d.exe -P -FL p:\namespace\path\ >> TextureListForPath.txt
Alternatives:
* Get the textures assigned to the model via ObjectBuilder or some other tool.
* Use a hex/text editor and search for paa.


===Update model===
===Update model===

Revision as of 13:02, 18 October 2016

Intention

This guide describes a process to easily create camo selections for models to allow reskinning even for a large amount of assets.

Scope

1. This is not a beginners guide. Please refer to related information section at the end to learn the basics. 2. This is not about creating textures. 3. This is not about explaining tools usage. 4. This is not explaining config basics. 5. This does not (yet) include the definition of selections for materials.

What are camo selections

Camo selections are term to describe named selections to be used to apply different textures to a model. This can be done by either means of config or [[setObjectTexture|scripting].

Process

Get texture list

Requirement: You need the paid subscriber versions of mikero's tools. Namely dep3d.

DeP3d [-options..] AnyFolder | Anyfile[.p3d] | any list | "comma,separated,list"
Options
...
-FL[nn] list files (see readme)

Sample calls:

DeP3d.exe -P -FL p:\namespace\path\modelName.p3d
DeP3d.exe -P -FL p:\namespace\path\ >> TextureListForPath.txt

Alternatives:

  • Get the textures assigned to the model via ObjectBuilder or some other tool.
  • Use a hex/text editor and search for paa.

Update model

Model.cfg

See also: ArmA: Howto Model Config - CfgModels explanations - sections

Config

See also: CfgVehicles_Config_Reference#hiddenSelections

IMPORTANT: Define the correct loading order via requiredAddons in the cfgPatches header to make sure your definition overwrites potential other definitions.

Create named selections overview

If a model already has named selections defined, you can use this batch script to list them/log them to file.

ListNamedSelectionsMapping.bat

// Adjust path
cd /D "c:\Steam\SteamApps\common\Arma 3 Tools\ObjectBuilder\"

O2Script.exe -a O2Scripts\NamedSelectionsOverview.bio2s p:\namespace\path\modelName.p3d >> NamedSelectionsOverview.txt

exit

Sample output:

p:\namespace\path\modelName.p3d	badge	namespace\path\textureName.paa
p:\namespace\path\modelName.p3d	camo	namespace\path\textureName.paa
p:\namespace\path\modelName.p3d	ranks_shoulder	namespace\path\textureName.paa

Related information

Videos

Text