CARenderer difficulties with rendering 3D transformed layers
CARenderer difficulties with rendering 3D transformed layers
- Subject: CARenderer difficulties with rendering 3D transformed layers
- From: Colin Cornaby <email@hidden>
- Date: Thu, 7 Feb 2008 22:33:31 -0800
I apologize in advance, this deals with CoreAnimation, but likely
veers into OpenGL territory. Given that this list is where most people
familiar with CoreAnimation post, I thought this was the best place
for my question...
I'm rendering a layer tree with CARenderer. So far, so good, I can
render a series of layers with orthogonal transforms, and spit out a
bitmap. My test case looks like this:
http://homepage.mac.com/gomac/testCorrect.png
Now, I've started to render my layers with a sublayerTransform type of
CATransform3DIdentity. All I have to do is set up a
CATransform3DIdentity, set a layers sublayerTransform property to it,
and my output looks like this:
http://homepage.mac.com/gomac/test.png
Everything else is the same as the first test case, only the
sublayerTransform has changed.
I'm pretty sure I'm just doing something stupid like not setting up an
OpenGL flag or not enabling some sort of OpenGL depth feature, but my
OpenGL is pretty rusty and I'm not sure what exactly I'm missing. If
someone could give me a pointer as to what I'm probably doing wrong
based on the output, that would be great.
Thanks,
Colin
_______________________________________________
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