On Sunday, June 16, 2013 4:56:14 PM UTC-4, swiftcoder wrote: > > > On Sun, Jun 16, 2013 at 1:18 PM, greenmoss <[email protected] <javascript:> > > wrote: > >> All, >> >> I've created a 3D object with an image mapped onto its surface. However I >> am seeing a black seam where the edges of the image meet on the surface of >> the 3D object. I have attached an image showing an example. I'm guessing >> this is from "bilinear filtering" as described in this pyglet-users >> post<https://groups.google.com/d/msg/pyglet-users/7wpyh7YcOOM/qGjqc4vVNzcJ>. >> Can someone confirm this? >> >> Thanks, >> >> -Kurrt >> >> > > Set the texture wrap mode to GL_CLAMP_TO_EDGE (as distinct from GL_CLAMP). > > -- > Tristam MacDonald > Software Development Engineer, Amazon.com > http://swiftcoder.wordpress.com/ >
Thanks for your response. I used the following code: glEnable(self.image.target) glBindTexture(self.image.target, self.image.id) gl.glTexParameteri(self.image.target, gl.GL_TEXTURE_WRAP_S, gl.GL_CLAMP_TO_EDGE) gl.glTexParameteri(self.image.target, gl.GL_TEXTURE_WRAP_T, gl.GL_CLAMP_TO_EDGE) However I'm still seeing the seam. I also tried specifing GL_CLAMP and GL_REPEAT in place of GL_CLAMP_TO_EDGE, but the seam was still visible. So I'm guessing at this point I should be showing more code. I'll make this presentable, push it up to github, and then come back and post to this thread. -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/groups/opt_out.
