3 Replies Latest reply on Apr 27, 2008 10:49 PM by anirudhs

    OpenGL in AIR

    aaronbot
      I would like to run an OpenGL application in AIR as a widget on the UI. Is it possible? If so how can it be done?

      Thanks,

      Aaron
        • 1. Re: OpenGL in AIR
          duncanhall Level 1
          The only way I can see this being possible is if you can get your OpenGL app running in a browser. If you can, then you could simply embed the OpenGL app into a webpage, and then load that page into AIR via an HTMLLoader. However, even if the OpenGL does run in a browser, it doesn't necessarily guarantee that the webKit engine in AIR will support it. I have a similar problem with shockwave content - webKit does support shockwave content, but for some reason its not supported in the AIR environment.

          Basically I think it's pretty unlikely you'll be able to encorporate your OpenGL app into AIR.
          • 2. Re: OpenGL in AIR
            Ansury Level 3
            If you're after 3D in AIR/Flex, take a look at the open source Papervision3D project. It's more centered around Flash but they have an example of how to use it in Flex and I've gotten it working in AIR/Flex. Couldn't tell you much more about it though, I just discovered it today!
            • 3. Re: OpenGL in AIR
              anirudhs Level 2
              Hi Aaron,

              Running an OpenGL application in AIR as a widget is not possible in 1.0.

              Check out papervision if you want to do 3d in flash and shockwave if you need hardware accelerated 3d.