Difference between revisions of "Skinning How To/Skin the viewer"

From Second Life Wiki
Jump to navigation Jump to search
m (→‎Texture files: added a missing Wikipedia template)
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
= Recoloring =
= Recoloring =
== Texture files ==
== Texture files ==
* The viewer's texture files are located in '''\SecondLifeReleaseCandidate\skins\[SKIN]\textures''' in Release Candidates (where [SKIN] is the particular viewer skin) and '''\SecondLife\skins\textures''' in the current release viewer.
* The viewer's texture files are located in '''\SecondLife\skins\[SKIN]\textures''' (where {{code|[SKIN]}} is the particular viewer skin).


Almost all the files you need to edit are in the [http://en.wikipedia.org/wiki/Truevision_TGA Targa] (.tga) format and must be opened with an [http://en.wikipedia.org/wiki/Graphics_software image editor] to be changed. These are named after their functions:
Almost all the files you need to edit are in the {{Wikipedia|Truevision_TGA|Targa}} (.tga) format and must be opened with an {{Wikipedia|Graphics_software|image editor}} to be changed. These are named after their functions:


* '''icn_*''' files are icons.
* '''icn_*''' files are icons.
Line 18: Line 18:
Etc.  
Etc.  


*NOTE: This folder also contains files in the [http://en.wikipedia.org/wiki/JPEG_2000 Jpeg2000] (.j2c) format. These are the OI HUD and miscellaneous viewer files. You will never need to edit them, except if you want to change the login screen ('''startup_logo.j2c'''). To do so, you need to have a program that can save Jpeg2000 Codestream files (any program that can write .j2c or .j2k files; the two extensions are interchangeable).  
*NOTE: This folder also contains files in the {{Wikipedia|JPEG_2000|Jpeg2000}} (.j2c) format. These are the OI HUD and miscellaneous viewer files. You will never need to edit them, except if you want to change the login screen ({{code|startup_logo.j2c}}). To do so, you need to have a program that can save Jpeg2000 Codestream files (any program that can write {{code|.j2c}} or {{code|.j2k}} files; the two extensions are interchangeable).  


To recolor an image:
To recolor an image:
Line 25: Line 25:
# Save it, overwriting the original image.  
# Save it, overwriting the original image.  


This process is unique to the program you're using, but Yukiko Omegamu has provided a [http://yukikoomegamu.blip.tv/file/810017 video tutorial] for Photoshop.  
This process is unique to the program you're using, but Yukiko Omegamu has provided a [http://yukikoomegamu.blip.tv/file/810017 video tutorial] for Photoshop.
 
* NOTE: Not every file in the \textures folder is used, like '''icn_media-stop_enabled.tga'''. For a full list, see [[Skinning_How_To/Legacy_files|Legacy files]].
 


== Viewer colors ==
== Viewer colors ==


All non-texture colors in the viewer are set in the xml file '''colors_base.xml'''. This file is located in '''\SecondLifeReleaseCandidate\skins\[SKIN]\''' in Release Candidates and '''\SecondLife\app_settings''' in the current release viewer.  
All non-texture colors in the viewer are set in the xml file '''colors_base.xml'''. This file is located in '''\SecondLife\skins\[SKIN]\'''.  


Colors are set using the following format:
Colors are set using the following format:

Latest revision as of 18:59, 31 July 2024

Introduction

This is a basic guide to skinning the Second Life viewer. Generally, creating a new skin for the viewer typically involves two steps:

  1. Recoloring the texture files (buttons, icons, toolbar, etc).
  2. Recoloring the viewer elements set in colors.xml (text color, window color, etc).

Recoloring

Texture files

  • The viewer's texture files are located in \SecondLife\skins\[SKIN]\textures (where [SKIN] is the particular viewer skin).

Almost all the files you need to edit are in the "Wikipedia logo"Targa (.tga) format and must be opened with an "Wikipedia logo"image editor to be changed. These are named after their functions:

  • icn_* files are icons.
  • ff_* files related to the friends list.
  • inv_folder* files are inventory folders.
  • inv_item* files are inventory items.

Etc.

  • NOTE: This folder also contains files in the "Wikipedia logo"Jpeg2000 (.j2c) format. These are the OI HUD and miscellaneous viewer files. You will never need to edit them, except if you want to change the login screen (startup_logo.j2c). To do so, you need to have a program that can save Jpeg2000 Codestream files (any program that can write .j2c or .j2k files; the two extensions are interchangeable).

To recolor an image:

  1. Open it in your image editor.
  2. Apply a color mask.
  3. Save it, overwriting the original image.

This process is unique to the program you're using, but Yukiko Omegamu has provided a video tutorial for Photoshop.

Viewer colors

All non-texture colors in the viewer are set in the xml file colors_base.xml. This file is located in \SecondLife\skins\[SKIN]\.

Colors are set using the following format:

value="[RED],[GREEN],[BUE],[OPACITY]"

...where R,G,B,Opacity are each in the range 0-255. For opacity, 128 is half opacity (ergo, half transparent).

(Note: Opacity is also sometimes called the Alpha value. See this tutorial for a more detailed explanation of RGB).

Editing colors.xml

Editing colors_base.xml is not recommended, as any typo will cause the viewer to crash on startup. Instead, edits should be made in colors.xml, which can be found in the same folder. There are two ways to do so:

  1. Copy the entries you want to edit from colors_base.xml into colors.xml, then change them there.
  2. Use the fully commented colors.xml file on the wiki.


Editing other stuff