Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Texture basics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Texture basics



On Mar 27, 2008, at 11:59 AM, Richard Schreyer wrote:
Are you calling TexImage2D between GenTextures and CopyTexSubImage2D?

Yep.. I snagged that code from QuartzComposer_WWDC_QCTV

Possibilities solutions are:
Adding glTexImage2D(pixels=NULL) between Gen and Sub
Replacing CopyTexSubImage2D with CopyTexImage2D

Tried both and still nothing. I feel like I'm missing something fundamental here.


One possible area of confusion is with the NSOpenGLPixelBuffer. It gets a texture target but I don't ever create or bind a texture for it. That code I snagged from another sample (which I can't recall now) and it's been working great in a slightly different application so I never questioned it.

You should also investigate using Framebuffer Objects to render into the texture directly, rather than copying data into the texture.

I read about those briefly but I felt that I had a better chance of making it work the other way given all of the sample code laying around. I'll give Framebuffer objects a try too.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Texture basics (From: Steve Green <email@hidden>)
 >Re: Texture basics (From: Richard Schreyer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.