Re: Texture colour wrapping
Brice Thurin <[email protected]>
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CAMww5+bWj9Z9NFzgOGStPk3TRV__M2Ao3PXLGbZy6-w-xBUfqQ@mail.gmail.com> |
Good evening, Thank you for your reply.I do not mean wrapping geometry. Basically I have some phase data expressed in radians, which could be anything between -15ð and +15ð. I want to display this phase wrapped with min and max value between 2ð. I am getting the phase map as 2D numpy array in polar coordinates. And i need to display this phase map not as a square but as a disk, which i can do with texture mapping. The phase map has type float and i want the grayscale to be ranging between 0 and 2ð and not between -15ð and 15ð. I have tried to apply the grayscale "wrapping" before the mapping but it does not lead to satisfactory result, I believe applying it after the polar to cartesian is better. It is how it is currently done with the CPU but I am interested to implement it on GPU. I hope it is a bit clearer. Please do not hesitate to ask me to clarify things. Best On 4 November 2011 16:51, Ian Mallett <[email protected]> wrote: > What do you mean by wrapping? Is this like wrapping geometry? Or > implicitly wrapping in texture space? Or doing filtering across texel > boundaries? > > Can you describe basically what you're trying to do? > > Ian > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net _______________________________________________ PyOpenGL-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyopengl-users