Sheet Animation going strange

Hello, I am having errors on doing animation by sprite table, does anyone have clues on resolving this problem?
 

local sheetRunnerData = { width=512, height=512, numFrames=34, sheetContentWidth=3072, sheetContentHeight=3072 } local sheetRunner = graphics.newImageSheet( "8bitrunneranimx512.png", sheetRunnerData ) local sheetRunnerSequence = { { name = "run", frames={ 1,2 }, time=250 }, { name = "death", start=3, count=32, time=250 } } local sheetRunnerAnim = display.newSprite( sheetRunner, sheetRunnerSequence ) sheetRunnerAnim.x = display.contentWidth/2 sheetRunnerAnim.y = display.contentHeight/2 sheetRunnerAnim:play("death")

 
It becomes:

Screen_Shot_2013_12_28_at_4_46_19_PM.png

And I’m using the sprite table that is 3072x3072 big.

Can you print out the value of system.getInfo(“maxTextureSize”) on the device (it will be in the device’s console log)?

Many devices have a max texture size of 2048 and your imageSheet may be too large.

Rob

Thank you for your reply.

Quite interesting: the Terminal is printing “8192”, but I am still seeing the resize in the simulator. I am also using an iPhone 4 as the simulator.

EDIT: Never mind! I realized the problem, I had made multiple files, and was using the wrong file. Everything works as intended now!

The value returned is for the device you are on.  On my Mac, I get 16384.  But my mac isn’t my iPhone.

Rob

Can you print out the value of system.getInfo(“maxTextureSize”) on the device (it will be in the device’s console log)?

Many devices have a max texture size of 2048 and your imageSheet may be too large.

Rob

Thank you for your reply.

Quite interesting: the Terminal is printing “8192”, but I am still seeing the resize in the simulator. I am also using an iPhone 4 as the simulator.

EDIT: Never mind! I realized the problem, I had made multiple files, and was using the wrong file. Everything works as intended now!

The value returned is for the device you are on.  On my Mac, I get 16384.  But my mac isn’t my iPhone.

Rob