I'm surprised using GL_NEAREST still isn't 100%. Any chance we could get another screenshot, or does it just look the same? Also, are the image dimensions a power of two? Maybe images of most sizes are padded with black? I'm just throwing guesses at the wall here; I'm not sure what it is.
On Friday, July 10, 2015 at 3:14:12 AM UTC-4, NiBE wrote: > > Thanks a lot for your reply I really appreciate it. > Well the trick works, even if the bottom thin line sometimes appears > again, very rare and barely visible for my purpose it's fine. > Do you have an idea how to implement the other apparent solution adding a > blank 1 pixel at the bottom? But don't want to bother you too much you've > been already too kind to answer my initial question :) > > On Thursday, July 9, 2015 at 11:00:49 PM UTC+2, magu...@gmail.com wrote: >> >> They seem to cover a number of approaches, the one suggested by >> SwiftCoder for example I think would be like this: >> >> test_img = pyglet.resource.image('img.png').get_texture() >> glTexParameteri(text_img.target, GL_TEXTURE_MAG_FILTER, GL_NEAREST) >> glTexParameteri(text_img.target, GL_TEXTURE_MIN_FILTER, GL_NEAREST) >> >> self.test_sprite = pyglet.sprite.Sprite(img=test_img,x=300,y=400, >> batch=self.main_batch) >> >> def update(self, dt): >> self.test_sprite.rotation -= float(100 * dt) >> >> >> >> -- 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 pyglet-users+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.