On Thu, May 27, 2010 at 4:44 PM, Christopher Wright
<[email protected]> wrote:
>
> What happens if you specify 32 bits for the color component (and
> possibly omit the alpha attribute)?
> What happens if you use the software renderer?
> What happens if you remove Remote? (just to see what happens -- I
> don't think remote would cause problems, but I could be totally
> mistaken)
I tried 32 bit color, no alpha component and no remote but no change
in the output. I then forced the software renderer (by specifying
NSOpenGLPFARendererID kCGLRendererGenericID) and that also did not
help.
Tracing using OpenGL Profiler, I notice an interesting difference
inside the QC rendering code - when using my fbo/pb context there are
3 additional glMaterialfv calls that aren't there using the QC
internal GL context.
My fbo/pb context ("extra" calls marked with *):
glColor4f(0, 0.43152, 0.195342, 1);
glEnable(GL_COLOR_MATERIAL);
glMaterialfv(GL_FRONT, GL_AMBIENT, {0, 0, 0, 1});
* glMaterialfv(GL_FRONT, GL_SPECULAR, {0, 0, 0, 1});
* glMaterialfv(GL_FRONT, GL_EMISSION, {0, 0, 0, 1});
* glMaterialf(GL_FRONT, GL_SHININESS, 20);
glGenBuffers(1, 0x7fff5fbfdc7c);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 3);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, 0x0001d010, 0x101350600, GL_STATIC_DRAW);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 3);
glDrawElements(GL_TRIANGLES, 59400, GL_UNSIGNED_SHORT, 0x00000000);
Using QCs internal "offline renderer" context:
glColor4f(0, 0.43152, 0.195342, 1);
glEnable(GL_COLOR_MATERIAL);
glMaterialfv(GL_FRONT, GL_AMBIENT, {0, 0, 0, 1});
glGenBuffers(1, 0x7fff5fbfdcec);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 3);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, 0x0001d010, 0x100bd4800, GL_STATIC_DRAW);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 3);
glDrawElements(GL_TRIANGLES, 59400, GL_UNSIGNED_SHORT, 0x00000000);
So the QC mesh rendering logic must be deciding to render differently
based on some attribute of my GL context, but I can't figure out what
that could be.
Andrew
_______________________________________________
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]