Re: [PyOpenGL-Users] Texture colour wrapping
Brought to you by:
mcfletch
From: Brice T. <bps...@gm...> - 2011-11-05 12:14:32
|
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 <geo...@gm...> 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 > |