Skip to main content
Arun_Viiswanathan
Inspiring
December 13, 2011
Answered

Getting RenderMode property in new Window

  • December 13, 2011
  • 5 replies
  • 1546 views

Hi,

     I am using AIR 3.1 SDK. I am creating a new window in the main application

var window3DInstance:Window3D=new Window3D();

window3DInstance.open(true);


In the newly created window I am trying to load some 3D contents. Then It generates the Following Error

Error #2044: Unhandled ErrorEvent:. text=Error #3702: Context3D not available.


I can able to load the 3D contents in the main application window.Then from my research I found that to use the stage3D support we need to have the rendermode to 'gpu' or 'direct'. I am setting the rendermode in the application descripter file.

<renderMode>direct</renderMode>


But the issue is that this renderMode property is not getting in the newly created window. I

Is there any solution for this?

Thanks in advance

This topic has been closed for replies.
Correct answer Arun_Viiswanathan

Hi,

    This issue is solved in the latest Flex SDK 4.6

special Thanks to Chris

5 replies

Arun_Viiswanathan
Arun_ViiswanathanAuthorCorrect answer
Inspiring
February 14, 2012

Hi,

    This issue is solved in the latest Flex SDK 4.6

special Thanks to Chris

Participant
January 27, 2012

Hi,

Has this been resolved? This would be a far easier solution than writing a second air application and object replicating between the two of them.

Thanks

Arun_Viiswanathan
Inspiring
December 14, 2011

Even if am setting the following code inside the newly creating window

var options:NativeWindowInitOptions = new NativeWindowInitOptions();
options.renderMode =NativeWindowRenderMode.DIRECT;

trace("Render Mode"+this.stage.nativeWindow.renderMode);


trace returns 'Render Mode auto'. It wont set to 'direct'

chris.campbell
Legend
January 4, 2012

Arun,

Sorry for the delay, I've been out of the office.  Here's what I heard back from some of our Stage 3d engineers:

">> trace returns 'Render Mode auto'. It wont set to 'direct'"

Since the 2nd window is with renderMode=auto, then context3D definitely will be unavailable if the content is trying to use hardware acceleration.

So the question is why the 2nd window doesn't go with renderMode=direct.

It would be really helpful if we could have the source code."

If you can provide the source code, please email it to ccampbel@adobe.com and I'll make sure it gets into the right hands.

Thanks,
Chris

Arun_Viiswanathan
Inspiring
January 5, 2012

Hi Chris,

             I Already send a sample project to the e-mail id that you mentioned. Hope this issue will be solved soon

Thanks

Arun Viswam