HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: NPOT textures  (Read 1379 times)

creativityheaven

  • World Owners
  • ****
  • Posts: 156
    • View Profile
NPOT textures
« on: Jul 28, 14, 01:32:59 PM »

NPOT (non power of two) textures. These are often automatically converted on load. How is this done? How do we do this manually so that we aren't plagued by this warning at load?

!WARNING!graphics:PERFORMANCE WARNING: Texture [/engine/cleangame/resources/skydomes/textures/sky_heroengine.dds] size 5988x1700 is not a power of 2, and must be converted on load
Logged

HE-Cooper

  • *****
  • Posts: 2221
    • View Profile
Re: NPOT textures
« Reply #1 on: Jul 28, 14, 01:51:52 PM »

You would take the texture in the repository, open it in a 2d art program, then change it's dimensions to be a power of two. Here's the wiki link to understanding what a power of two is. It's a relatively simple concept, but frequently confuses developers new to texturing, as they confuse it with "divisible by 2".

http://en.wikipedia.org/wiki/Power_of_two
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1155
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: NPOT textures
« Reply #2 on: Jul 28, 14, 08:22:12 PM »

The section The first 96 powers of two shows the values you are looking for. Try to stay under 2 to the 12th power, as those can also take extra time (not to convert, but to load and display).

A picture that is 256x256 if average for something small, where Icons are usually 32x32 or 64x64 in size. Putting together a sheet of different textures is good around 1024x1024. The numbers don't have to be the same size, for example you could have a sheet of 2048x512. These are sometimes useful as they can fit longer thin textures on them.
Logged