Skip to main content
Participating Frequently
February 28, 2014
Question

Issues with AIR Application on 8000x2500 Interactive Wall

  • February 28, 2014
  • 3 replies
  • 1518 views

Hello,

I am trying to develop apps for a large interactive wall and I seem to be running into the 4096x4096 bitmapData limit. This post: http://stackoverflow.com/questions/8277639/no-more-constrain-on-bitmap-resolution-in-flash-player-11?rq=1 says that the limit has been removed since Flash version 11 (I'm running Flash 12 and AIR 4.0) however I am seeing display object being cut off at exactly x=4096.

My app is basically this...

I have 30 sprites (each 600x428 and each with an image on front and back) spread evenly across the wall (10 colums and 3 rows). I use Papersprite and Tweener to flip (rotationY) each sprite over once they are touched. Before being touched, they all display perfectly across the wall. When I touch a sprite past x=4096, they dissapear completely, or they are literally cut off/in-half at x=4096. Before x=4096, they flip perfectly. Also, another application I made has many images that are 8000x2500 and they each fade in/out, also using Tweener, to the next with zero issues like this at all.

According to the link above the bitmapData size is dependent on the OS and RAM. The wall is run by very high end computers with the latest graphics cards and stacked RAM.

Can anyone explain what is happening and how I can overcome this issue?

This topic has been closed for replies.

3 replies

Inspiring
March 2, 2014

You might need to manually set the swf version in the compiler options. I

think you would need 14 or 15 but I can't keep up with which number

corresponds with what release version.

On Fri, Feb 28, 2014 at 2:55 PM, IndiansDeveloper

Participating Frequently
March 3, 2014

I do have it set already to use the latest version of Flash Player: -swf-version=23 is Flash Player 12.

Inspiring
March 1, 2014

Hard to say where to look from the info you are giving us.

A couple questions:

  • Which render mode are you using ( CPU, GPU, or Direct ) ?

  • Are you using cacheAsBitmap on the container that has the 30 sprites within?  ( If so, that would be bad ).  Are you using CAB on the sprites themselves?
Participating Frequently
March 1, 2014

I'm running it in GPU and currently I am not using cacheAsBitmap on either. Should I use it on the sprites themselves? If so, does it matter if the back of the sprites contain more, soon to be, interactive sprites?

Basically each of the 30 sprites contains more information about itself on the "back" after flipping them over on touch.

Inspiring
March 1, 2014

CAB would be detrimental to performance on the top container for sure.  CAB just creates bitmaps of your sprites and therefore uses up a lot of memory -- that's why I was enquiring if you were using it.

I you are using CAB, I would disable it and see what happens.

My guess is that your GPU memory gets filled-up / corrupted during the compositing step of the second frame.   Rendering the first, full frame is fine.  Compositing the portions that have changed in the following frames, isn't.

Things to try:

  • Using stage.invalidate() to force a redraw of the entire stage, not just the portions that have changed since the last time the frame was drawn.

  • If you have a mouse move handler, you might also want to try evt.updateAfterEvent() and see what happens.

  • Try CPU and Direct render modes.

  • PaperSprite isn't a standard AS3 class, and a cursory look at http://blog.soulwire.co.uk/code/open-source/two-sided-planes-in-flash-player-10 seems to point to it doing some funky things with stage.invalidate() -- surprise, surprise ! -- and the Event.RENDER, etc.  It may all be fine, but it could also be that your problem comes from the PaperSprite class.  What I would try is to use a regular, single-sided Sprite, instead, as a test, and see if the same problem occurs when you try to flip it.  If the problem doesn't happen, then I would dive into the source code for PaperSprite, or come up with a different approach, like flipping quads in Stage3D.

In case you are new to molehill, the best source to get started with Stage3D, imo, besides the AS3 documentation code examples, is this book:

http://www.amazon.com/Adobe-Stage3D-Molehill-Programming-Beginners-ebook/dp/B006EEJSHM/ref=sr_1_1?ie=UTF8&qid=1393740087&sr=8-1&keywords=molehill+stage3d

Adobe Employee
March 1, 2014

Could you please share few more details about "Interactive Wall" - OS, hardware, etc?

Participating Frequently
March 1, 2014

It is running windows 7 with, I believe, 16GB of ram. I can't remember the graphics card off the top of my head and I am not at work to check. I do know it is the "latest and greatest"

I can get more details on Monday if it helps.