Log in or register to post comments

Scaleform + Vuforia

March 14, 2013 - 4:14am #1

Hello!

Well, I am developing an application which uses the Autodesk Scaleform solutions. We build a SWF (Flash) file and put it int Unity, then Scaleform load it and "plays" the SWF file. This is a GUI solution that is very good because we can create vectorials graphics and so on...

Well, the problem is, I think that Vuforia and Scaleform are imcompatible!? When running they together, in my Mac ther work fine, playing the GUI on top of the main camera (ARCamera) and the background is just the WebCamBackground. But when I build it for iPad, OMG! When an image target is not tracked yet, it works fine,  the SWF interface is draw on top of the Camera Background image! But when some image target is found and an object 3D appears on the screen, the backgrond camera turns completly black and sometimes the background is a old camera frame buffer, as the camera is not clearing the buffer!

Does anybody know something about that? That is very wear. I t hink that the Scaleform is messing up Vuforia's Render Buffer or something like that!

Some tip?

Thanks!

Scaleform + Vuforia

August 16, 2013 - 9:41am #11

Thanks. We'll take a look at the sample you develop.

Scaleform + Vuforia

August 16, 2013 - 9:38am #10

Guess this is a bunmp to a slightly older thread.

We recently swapped over to doing the background texture access approach to fix an issue with a third party shadow casting script. Worked a charm.

However on updating another project (one using scaleform for the GUI) and trying the same approach, I noticed the same errors that when googled brought me here. The background texture does not seem to update properly, sometimes only rendering and updating when the target is found, othert times just remaining black constantly, with only the scaleform and target content rendering correctly to the scene.

 

I realize that simply confirming this issue is not a particularly usefull post, Just wanted to inform anyone that found it that its still an issue.

 

As for any Vuforia folks who might read this. I will do my best to throw together a small example project this weekend to demonstrate the beahviour. Hopefully that will be usefull for working out what the issue is, and if the resolution of the issue will need to come from vuforia, or from scaleform.

 

I'll be making a similar post on the scaleform forums, where i will also post the test project once I've had time to throw it together.

Scaleform + Vuforia

July 1, 2013 - 2:47am #9

Sorry, I  am not in a position to say whether this worked or not.

However you could contact the developer directly.

regards

N

Scaleform + Vuforia

June 30, 2013 - 9:00am #8

Hi,

Have you been to make all this work?  

I'm asking because I'm thinking to buy Scaleform for Unity (iOS and Android) for an upcoming project using Vuforia, and of course I want to make sure that it will work completely. Therefore any new information would be appreciated.

Best,

Hugues.

Scaleform + Vuforia

March 25, 2013 - 8:45pm #7

NalinS wrote:

Hi dbappz,

Could you try one thing to confirm where the issue is please?

Firstly could you see if the same problem exists in the Background Texture Sample Application?

If not then this can offer a clue, because in this case the sample draws the video feed through Unity, rather than using the Vuforia Library.

In this case you may be able to re-use the same mechanism to draw the video feed in your application.  

In order to achieve this you would need to modify the Background Camera object in the hierarchy as follows (make a copy first):

  • Click on the NegativeGrayScaleVideo child of the Background Camera object
  • Remove the Negative GrayScale Effect script
  • Change the shader for the NegativeGrayScale material to Custom/RenderVideoBackground

Then save and export this as a prefab and import into your own scene / project.

...and hopefully this might work...

 

N

I have tested it here, and the background is still black.

Scaleform + Vuforia

March 25, 2013 - 6:01pm #6

Another question.

Using Scaleform, the position of the UI element is calculated by device screen received by System information. When the application runs in iPad2 and iPad4, everything is OK, but when it runs on iPhone5 and iPhone4S the positions are wrong. Is it very wear, because the Scaleform prints on console the screen size, when ARCamera is activated, the screen size of iPhone4S is 960x720 and when ARCamera is disabled it returns 960 x 640. If I run the application with ARCamera diabled, it is OK and touching on a button to Enable the ARCamera, it resizes the screen messing up the UI (just when ARCamera is enabled).

Is Vuforia changing the Camera size?

Scaleform + Vuforia

March 25, 2013 - 5:21pm #5

Ok,

For our purposes, this will be very slow.

Is there another way? It only mess up when the target is found.

Scaleform + Vuforia

March 18, 2013 - 11:59am #4

Hi dbappz,

Could you try one thing to confirm where the issue is please?

Firstly could you see if the same problem exists in the Background Texture Sample Application?

If not then this can offer a clue, because in this case the sample draws the video feed through Unity, rather than using the Vuforia Library.

In this case you may be able to re-use the same mechanism to draw the video feed in your application.  

In order to achieve this you would need to modify the Background Camera object in the hierarchy as follows (make a copy first):

  • Click on the NegativeGrayScaleVideo child of the Background Camera object
  • Remove the Negative GrayScale Effect script
  • Change the shader for the NegativeGrayScale material to Custom/RenderVideoBackground

Then save and export this as a prefab and import into your own scene / project.

...and hopefully this might work...

 

N

Scaleform + Vuforia

March 18, 2013 - 8:30am #3

Hi dbappz,

I have been in touch with some of the gurus in OpenGL ES and Unity.

The current thinking is that this could be as a result of either Vuforia or the SWF leaving the GL state dirty or perhaps it could be a multithreading issue where there might be contention between the two for GL resources.

I am wondering whether this will be reproducible using the trial version of scaleform in the case that you could point me towards a download link for your project?

 

cheers,

N

Scaleform + Vuforia

March 14, 2013 - 11:34am #2

Just to be sure: does this happen on the iPad only ?

 

Log in or register to post comments