Information: This forum has been closed. Details

Non-power-of-two texture sizes no longer allowed

In this section, we'll post announcements for Editor features to be deprecated, prior to our regular releases.

Moderator: Blue Mars Staff

Non-power-of-two texture sizes no longer allowed

Postby rosh ID:rosh » Thu Aug 19, 2010 4:14 pm

Use of non-power-of-two textures will now be prohibited for performance reasons. In the editors, textures that have incorrect size will be replaced with badsize.dds to indicate that they are the wrong size. In the Client, non-power-of-two textures will still be supported to maintain compatibility with existing data.

BadSize.jpg
BadSize.jpg (15.47 KiB) Viewed 1383 times
User avatar
rosh ID:rosh
 
Posts: 233
Joined: Thu Jun 03, 2010 7:34 pm
Full Name: rosh ID:rosh

Re: Non-power-of-two texture sizes no longer allowed

Postby DanielRavenNest ID:DanielRa » Thu Aug 19, 2010 5:33 pm

They were ever allowed? I thought dds textures had to be power of two to support MIPs?
User avatar
DanielRavenNest ID:DanielRa
 
Posts: 1272
Joined: Sat Sep 12, 2009 2:31 pm
Full Name: DanielRavenNest ID:DanielRa

Re: Non-power-of-two texture sizes no longer allowed

Postby baknight ID:baknight » Thu Aug 19, 2010 5:41 pm

That was news to me, too! I always thought the engine would not show the texture if they weren't power of two. :lol:
User avatar
baknight ID:baknight
 
Posts: 954
Joined: Tue Dec 01, 2009 5:38 pm
Full Name: baknight ID:baknight

Re: Non-power-of-two texture sizes no longer allowed

Postby Magellan ID:Magellan » Thu Aug 19, 2010 6:26 pm

News to me too.

Also, to be pedantic, all numbers except 0 are powers of 2; what we mean is INTEGER powers of two. We probably mean non-zero positive integer powers of 2, too :)
User avatar
Magellan ID:Magellan
 
Posts: 802
Joined: Fri Jun 05, 2009 1:42 am
Full Name: Magellan ID:Magellan

Re: Non-power-of-two texture sizes no longer allowed

Postby jkimura ID:jkimura » Fri Aug 20, 2010 12:29 pm

DanielRavenNest ID:DanielRa wrote:They were ever allowed? I thought dds textures had to be power of two to support MIPs?

The editor and client always flagged them as errors but displayed the texture anyway. MIPs are definitely one of the reasons why we are now making them officially unsupported.
jkimura ID:jkimura
Blue Mars Online Staff
 
Posts: 47
Joined: Tue Jun 02, 2009 7:14 pm
Full Name: jkimura ID:jkimura

Re: Non-power-of-two texture sizes no longer allowed

Postby tim ID:tim » Fri Aug 20, 2010 1:32 pm

Thanks captain literal. :twisted:
To answer the powers of two question though, there were some cases that allowed non power of 2 textures which of course did not allow mipping and also did not convert to dds. Obviously this was bad and also caused the texture to be resized into a square with cause weird distortion.
tim ID:tim
 
Posts: 751
Joined: Mon Nov 23, 2009 6:47 pm
Full Name: tim ID:tim


Return to Editor Feature Deprecation

cron