Skip to main content
Arun_Viiswanathan
Inspiring
Dec 13, 2011 12:10 PM UTC
Answered

Getting RenderMode property in new Window

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 is closed to new replies. Start a new post to keep the conversation going.
Arun_Viiswanathan
Arun_ViiswanathanCorrect answer
Inspiring
Feb 14, 2012 11:36 AM UTC

Hi,

    This issue is solved in the latest Flex SDK 4.6

special Thanks to Chris

5 replies

Arun_Viiswanathan
Arun_ViiswanathanAuthorCorrect answer
Inspiring
Feb 14, 2012 11:36 AM UTC

Hi,

    This issue is solved in the latest Flex SDK 4.6

special Thanks to Chris

Translate
Participant
Jan 27, 2012 4:01 PM UTC

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

Translate
Arun_Viiswanathan
Inspiring
Dec 14, 2011 12:25 PM UTC

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'

Translate
chris.campbell
Legend
Jan 4, 2012 1:36 AM UTC

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

Translate
Arun_Viiswanathan
Inspiring
Jan 5, 2012 9:25 AM UTC

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

Translate