Sprite sheet error

What might be the reason for the following problem?

 

Problem is occur in imagesheet  {width=4000,height=4800,no. of frames=29} 

 

See attached file.

It would probably help to see your code, particularly where you define the parameters for your image sheet.

local sheetData3 = { width=800, height=800, numFrames=29, sheetContentWidth=4000, sheetContentHeight=4800 }

local sheet3 = graphics.newImageSheet( “images/redPlanet.png”, sheetData3 )

local sequenceData3 = { name=“blow”, sheet=sheet3, start=8, count=29, time=1000, loopCount=1 }}

Try looking at this:

http://docs.coronalabs.com/api/library/graphics/newImageSheet.html

Your sheetData doesn’t make any sense to me.  You suggest that you have 29 frames at 800 wide by 800 high.  That cannot possibly fit into a graphic that is 4000 wide by 4800 high.

Let’s say that you only had 5 frames and each frame was 100 pixels wide by 120 high.  If those frames were arranged in a 2 col by 3 row grid then your data would look something like this:

local sheetData3 = { width=100, height=120, numFrames=5, sheetContentWidth=200, sheetContentHeight=360 }

So, the width and height define the size of each individual frame and sheetContentWidth and sheetContentHeight define the dimensions of the entire image.  

I hope this helps.
 

At least on Android, I think there is a limit on a spritesheet’s size (2k x 2k) … I would hope that it would throw a more helpful error than what you’re seeing, but have you tried a smaller spritesheet?  (e.g. downsample by 1/4?)

It would probably help to see your code, particularly where you define the parameters for your image sheet.

local sheetData3 = { width=800, height=800, numFrames=29, sheetContentWidth=4000, sheetContentHeight=4800 }

local sheet3 = graphics.newImageSheet( “images/redPlanet.png”, sheetData3 )

local sequenceData3 = { name=“blow”, sheet=sheet3, start=8, count=29, time=1000, loopCount=1 }}

Try looking at this:

http://docs.coronalabs.com/api/library/graphics/newImageSheet.html

Your sheetData doesn’t make any sense to me.  You suggest that you have 29 frames at 800 wide by 800 high.  That cannot possibly fit into a graphic that is 4000 wide by 4800 high.

Let’s say that you only had 5 frames and each frame was 100 pixels wide by 120 high.  If those frames were arranged in a 2 col by 3 row grid then your data would look something like this:

local sheetData3 = { width=100, height=120, numFrames=5, sheetContentWidth=200, sheetContentHeight=360 }

So, the width and height define the size of each individual frame and sheetContentWidth and sheetContentHeight define the dimensions of the entire image.  

I hope this helps.
 

At least on Android, I think there is a limit on a spritesheet’s size (2k x 2k) … I would hope that it would throw a more helpful error than what you’re seeing, but have you tried a smaller spritesheet?  (e.g. downsample by 1/4?)