I'm willing to give it a shot, despite the fact that most things OpenGL are still a mystery to me.
The demo shows the black seam on my setup as well. I googled around, and the first things that I ran into seemed to indicate that mapping to a sphere should be done with cube maps [1]. I don't know if that's relevant in this case or not. I noticed that the value of self.image.target in texture.Texture.draw() is GL_TEXTURE_2D, for what it's worth. Next, some posts indicated that GL_CLAMP_TO_EDGE should be used instead of GL_CLAMP [2]. I noticed you are using GL_CLAMP in texture.py, but changing it didn't have any affect. So either that's just not the fix, or the call is in the wrong place to begin with. I tried deleting the call altogether and couldn't see any visible difference to the demo, so...? Does that give you any ideas? [1] http://stackoverflow.com/questions/9511499/seam-issue-when-mapping-a-texture-to-a-sphere-in-opengl [2] http://stackoverflow.com/questions/6017593/pyglet-edge-pixels-of-images-being-wrapped On Wed, Jul 10, 2013 at 7:49 PM, greenmoss <[email protected]> wrote: > Anybody able to help with this? It should be really easy to run the demo > even using just a plain download, and then running the example: > > * Download/unzip from > https://github.com/greenmoss/PyWavefront/archive/master.zip > * cd to directory > * Run "./example/pyglet_demo.py" > > > On Sunday, June 30, 2013 11:45:52 PM UTC-4, greenmoss wrote: >> >> On Wednesday, June 26, 2013 4:27:17 PM UTC-4, Nathan wrote: >> >>> On Mon, Jun 17, 2013 at 2:17 PM, greenmoss <[email protected]> wrote: >>> >>>> 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. >>>> >>>> Sounds like a good approach. Have you managed to fix the problem in >>> the meanntime? >>> >>> ~ Nathan >>> >> >> Nope, I haven't been able to track down how to get rid of the seam. The >> good news is that I was able to push up my new module "PyWavefront": >> >> https://github.com/greenmoss/**PyWavefront<https://github.com/greenmoss/PyWavefront> >> >> If you download it, you can see it happening. It is installable via >> "python setup.py install", but that is optional. Change to the "example" >> directory, and run "./pyglet_demo.py". The sphere and its texture are >> magnified and the seam is very obvious. >> > -- > 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. > > > -- 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.
