[HowTo] Creating RoomTextures - cyberjunk/meridian59-dotnet GitHub Wiki

Introduction

The new 3D client is able to load high-quality 32-Bit room-textures (stored in PNG) instead of the legacy 256 color textures (stored in BGF).

Rules

  • Name your PNG correctly (see output files of tool below)
  • Must keep the aspect ratio and rotatation of the original BGF image
  • Use Power-Of-Two scaled widths and heights whenever possible
  • Put your PNG in the /resources/roomtextures folder

Tool: Texture Extracter

You can use this Tool to easily extract all textures referenced in a specific ROO file into a bunch of transparent 32-bit PNG images. The tool requires you to specify 3 paths:

  • Path of ROO file to work with
  • Path to a directory containing all "grdXXXXX.bgf" files
  • Path where to store extracted PNGs

Steps for replacing a texture

  • Chose a ROO file to create textures for.
  • Use the tool above to extract the textures.
  • Chose a texture which is not yet replaced.
  • Find a better, high quality variant from a free source (Link1 Link2 Link3) that matches the style of the original image as much as possible.
  • Rotate the new image correctly (90°)
  • Cut or scale it to the aspect ratio of the original image.
  • Scale it to an appropriate size (~ <= 1024x1024)
  • Possibly turn it into a seamless texture (if repeated/tiled).

Example

Old BGF texture (grd09575-0.png) Size: 64x64 Ratio: 1:1

Example replacement (untouched) Size: 3888x2592 Ratio: 1.5:1

Example replacement (cutted, rotated, scaled) Size:1024x1024 Ratio: 1:1