Re: [PyOpenGL-Users] Problems with glReadPixels
Brought to you by:
mcfletch
From: Dirk R. <di...@li...> - 2007-07-01 15:53:30
|
Hi Mike, Mike C. Fletcher wrote: > > It's a bug, I didn't realise that numpy had added unsigned versions of > the int types so the code was doing the same as it did for Numeric. > I've added support for them on my local machine, will push it out on the > next alpha release. OK, great. > You're getting all three colours in a single integer IIUC, that is, > you're seeing an integer with bits 0-8 with colour 1, 1-16 with colour > two etceteras. I understand that, and I'm not saying it's a bad thing (actually, that's EXACTLY what we need right now ;), but it's not quite consistent with the regular OpenGL behavior and therefore somewhat unexpected. Would it make sense to have a different entry point for this behavior? Nonetheless, for the float I'm not sure how to use it. How would I split a single float into 4 pieces? Thanks for your help! Dirk |