• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AVFoundation and OpenGL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AVFoundation and OpenGL?


  • Subject: Re: AVFoundation and OpenGL?
  • From: David Duncan <email@hidden>
  • Date: Mon, 11 Apr 2011 13:11:44 -0700

On Apr 11, 2011, at 11:44 AM, John Michael Zorko wrote:

> I'm currently using Core Animation to show a 3D rotatable cube with videos (or other content) on each side, so each side of the cube is an AVPlayerLayer. What i've read so far seems to say that a special subclass of CALayer (CAEGLayer) is required for OpenGL to interface with it i.e. if I wanted to use OpenGL to make a 3D rotating sphere of many AVPlayerLayers (or as many as an iPad 2 can handle, anyway), is this possible since AVPlayerLayer doesn't derive from CAEGLayer?


CAEAGLLayers are required to render OpenGL content to a CALayer yes. In order to render to a sphere, you would likely require the ability to render movie frames to a texture, then apply that texture to your sphere. I don't recall if AVFoundation provides support for getting texture data (I think it does, but I haven't used it well enough to know for certain)

Basically a CAEAGLLayer is a cross-over point from Core Animation to OpenGL. Other Core Animation content doesn't interact with the content of a CAEAGLLayer anymore than the content of any single CALayer interacts with the content of any other.
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AVFoundation and OpenGL? (From: John Michael Zorko <email@hidden>)
 >Re: AVFoundation and OpenGL? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: PDF Inverted colors
  • Next by Date: Not sure about autorelease pools in NSOperations
  • Previous by thread: Re: AVFoundation and OpenGL?
  • Next by thread: AVAssetImageGenerator and HTTP-Live streams
  • Index(es):
    • Date
    • Thread