Possible to use texture sizes not 2^n ??

Forums Programming cocos3d Possible to use texture sizes not 2^n ??

This topic contains 3 replies, has 3 voices, and was last updated by  Tenorm 1 year, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
November 10, 2012 at 1:50 am #243638

Tenorm
@tenorm

Hi,

is it possible to us textures with sizes, that are not 2^n ? (e.g. 300 x 300)

And furthermore is it possible to use non quadratic textures? (e.g. 300 x 400)

I know that this is not supported by all 3D-Engines.

Because I load a model with texture size 300 x 300 and want to know if I did sth wrong during export..

Thanks!

November 10, 2012 at 11:21 am #385976

riq
Keymaster
@admin

It is possible… but take a look at this first:

http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:textures

November 10, 2012 at 12:21 pm #385977

abitofcode
Moderator
@abitofcode

Summed up nicely in this video http://www.codeandweb.com/what-is-a-sprite-sheet

*in the spirit of fairness, other texture packers are available* ;)

November 11, 2012 at 8:31 am #385978

Tenorm
@tenorm

Actually I HAD a failure during export :)

The link to the different texture types is really useful, thank you!

So if someone looking for an answer here: It is possible to use any texture size, but be sure to use the right texture format (riq’s link)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.