|
From: James W. <ja...@fr...> - 2010-03-15 20:28:21
|
On 3/15/2010 11:03 AM, Edward K. Chew wrote: > Just wondering if there is any sample code for creating texture maps > using CGBitmapContext and the like? I think I see what I need to do, > but there may be some potential gotchas and most of the examples I've > come across seem to deal with Quickdraw-era stuff like gworlds. > Basically, what it comes down to is I have a client who wants to be > able to import PDFs into rectangular sheets floating around in the 3D > model, and Quickdraw is not so great with PDFs. I don't think I have any good sample code I could post... I'm using a somewhat convoluted scheme where a framework calls an application callback to get pixel data, which might be from a CGBitmapContext, and then passes it to Quesa. But I could discuss any issues you're worried about. -- James W. Walker, Innoventive Software LLC <http://www.frameforge3d.com/> |