sphimau Posted March 2, 2014 Share Posted March 2, 2014 Hi everybody,I am a newbie to phaser and I am trying to build a world for a game project. I would like to make a parallax background and to make that I'm using tileSprite. The problem is that when I create a tile of 256x256 its renders but when the size changes I'm getting black square and in the console log I'm getting this message WebGL: drawElements: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete'. Or the texture is Float or Half Float type with linear filtering while OES_float_linear or OES_half_float_linear extension is not enabled. I'm using phaser v1.1.5 from the CDN http://cdnjs.cloudflare.com/ajax/libs/phaser/1.1.5/phaser.min.js. Also I would like to know if it's possible to add some movement on the z-axis. Thank you very much for your help Link to comment Share on other sites More sharing options...
rich Posted March 2, 2014 Share Posted March 2, 2014 The clue is in the error I'm afraid - size needs to be ^2 for a tiling sprite. Link to comment Share on other sites More sharing options...
sphimau Posted March 2, 2014 Author Share Posted March 2, 2014 Hi thank you for your answer but I've tried to create a tile 2000x2000, 257x257 but I'm still getting a black screen. :s Link to comment Share on other sites More sharing options...
rich Posted March 2, 2014 Share Posted March 2, 2014 Because those sizes aren't powers of two. 64, 128, 256, 512, 1024 etc Link to comment Share on other sites More sharing options...
sphimau Posted March 2, 2014 Author Share Posted March 2, 2014 Hi, ok thank you. it's working Link to comment Share on other sites More sharing options...
sphimau Posted March 2, 2014 Author Share Posted March 2, 2014 Is it possible to run phaser without a server? Link to comment Share on other sites More sharing options...
Recommended Posts