logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Import commandlet (Read 93 times)
Smirftsch
Forum Administrator
*****
Offline



Posts: 7458
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Import commandlet
Aug 9th, 2017 at 12:37pm
Print Post  
yesterday evening I had the idea (inspired by a texturemerger made by Casey) to implement the texture merger as an internal editor commandlet and so I did:

"ucc texturemerger"

Merges .dds textures from ..\TextureMerge\PackageName\Group\ folder into an existing texturepackage, replacing all textures found, while keeping the package (net) conform.
While at it, I enhanced it a bit:
* An into ..\TextureMerge\PackageName\ folder added .upkg file is read out for eventually existing information about footstepsounds to be added. The sound package must exist to be imported (f.e. Footsteps.uax).

* If there is additionally a normal map file TextureName_NORM.dds it will be loaded as BumpMap Texture into the package as well.

* SurfaceType can be set via .upkg as well.

An upkg file may look like this:

Code
Select All
[TextureFormat]
pblood4= 7

[FootstepSounds]
pblood4[0]=Footsteps.metal.metal1_01
pblood4[1]=Footsteps.metal.metal1_02
pblood4[2]=Footsteps.metal.metal1_03
pblood4[3]=Footsteps.metal.metal1_04
pblood4[4]=Footsteps.metal.metal1_05
pblood4[5]=Footsteps.metal.metal1_06

[SurfaceType]
pblood4=3

[DetailTextures]
pblood4=Detail.Dirty

[MacroTextures]
pblood4=Detail.Rockde2

[UClampMode]

[VClampMode]






// ClampMode.
Wrap = 0;
Clamp = 1;

// TextureFormats, being used when the format of the to be imported texture is bmp. DXT formats will compress the texture into the desired mode.
TEXF_P8			= 0
TEXF_RGBA7		= 1
TEXF_RGB16		= 2
TEXF_DXT1       = 3
TEXF_RGB8       = 4
TEXF_RGBA8      = 5
TEXF_DXT3		= 6
TEXF_DXT5		= 7

// Surface type:
EST_Default = 0
EST_Rock 	= 1
EST_Dirt 	= 2 // Footprints
EST_Metal 	= 3
EST_Wood 	= 4
EST_Plant	= 5
EST_Flesh	= 6
EST_Ice		= 7
EST_Snow	= 8 // Footprints
EST_Water	= 9
EST_Glass	= 10
EST_Carpet	= 11
EST_Custom00= 12
EST_Custom01= 13
EST_Custom02= 14
EST_Custom03= 15
EST_Custom04= 16
EST_Custom05= 17
EST_Custom06= 18 // Footprints
EST_Custom07= 19 // Footprints
EST_Custom08= 20 // Footprints
EST_Custom09= 21 // Footprints
EST_Custom10= 22 // Footprints
 



The .upkg needs to be in the root folder for the texture replacement and named like the package (f.e. TextureMerge\PlayrShp\PlayrShp.upkg)

Either of this information can be set or changed but it doesn't require all to be used in order to work.

This way it is hopefully easier to create new high res texture packages and even add missing footstepsound information, surface type and normal maps for bumpmapping effect (XOpenGL only) out of existing .utx files.

Edited:
Added detail and macro texture support yet.

Edited:
Added support for .bmp as source format

Edited:
Added support for texture format (when using .bmp as source texture)

Edited:
Added support for UClampMode and VClampMode (Clamp/Wrap f.e. for skybox textures)

Edited:
Added support for .bmp and .pcx as normal map format
« Last Edit: Aug 13th, 2017 at 9:07am by Smirftsch »  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo