It seems that I need to set the depth to something other than "none" in IB. 
Setting it to 32 resulted in something being drawn (although there was leftover 
stuff from another drawing operation, partly because the composition I loaded 
doesn't clear the frame).

-- 
Rick

On May 29, 2010, at 22:46:16, Rick Mann wrote:

> 
> On May 29, 2010, at 17:17:26, vade wrote:
> 
>> Is that code in your NSopenGLView, and are you rendering in drawRect? when 
>> is that actually happening? In init? In awake from nib? You probably want to 
>> move the rendering to drawRect in your NSOpenGLView, but without more 
>> details its hard to know.
> 
> No, I do this call once, when I create the renderer (which is after the user 
> chooses a couple of files for processing).
> 
> This is straight from the QCRenderer reference doc overview. Nothing tells me 
> I have to subclass the view and do this in the drawRect method, and I don't 
> think that is necessarily the right way to do this (is it?).
> 
>> 
>> On May 29, 2010, at 8:07 PM, Rick Mann wrote:
>> 
>>> I tried my first stab at rendering a simple composition with QCRenderer:
>>> 
>>>     NSOpenGLContext* glCTX = self.outputFrameView.openGLContext;
>>>     if (mQCRenderer == nil)
>>>     {
>>>             NSOpenGLPixelFormat* pixelFormat = 
>>> self.outputFrameView.pixelFormat;
>>>             mQCRenderer = [[QCRenderer alloc] initWithOpenGLContext: glCTX
>>>                                             pixelFormat: pixelFormat
>>>                                             file: mCompositionPath];
>>>     }
>>>     
>>>     bool success = [mQCRenderer renderAtTime: 0.0 arguments: nil];
>>>     [glCTX flushBuffer];
>>> 
>>> But nothing appeared in my GL view. success was true.
>>> 
>>> Any suggestions? Thanks!
>>> 
>>> -- 
>>> Rick
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Quartzcomposer-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/quartzcomposer-dev/doktorp%40mac.com
>>> 
>>> This email sent to [email protected]
>> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartzcomposer-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/quartzcomposer-dev/rmann%40latencyzero.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to