On Saturday, April 20, 2013 12:09:52 PM UTC-4, swiftcoder wrote: > > On Sat, Apr 20, 2013 at 11:51 AM, greenmoss <[email protected]<javascript:> > > wrote: > >> I think I'm having the same problem, though I'm using a triangle instead >> of a quad. The following should be a complete triangle, but is instead >> missing its top and left corners: >> >> <https://lh6.googleusercontent.com/-Bivj4DPVIjc/UXE7c961mhI/AAAAAAAAAB0/4Ku3zGeWiEg/s1600/flawed_plane.png> >> In the above image, I'm using glInterleavedArrays via a modified >> "obj_test.py" (https://github.com/greenmoss/pyglet_obj_test; it's a >> slightly-modified copy from the pyglet examples directory). >> >> I haven't found the answer to this problem yet. I was going to try >> building "up" from basic documentation, but that's not working either (I >> posted >> to >> pyglet-users<https://groups.google.com/forum/?hl=en&fromgroups=#!topic/pyglet-users/KkKcD-FWiag> >> about >> this problem a week ago). >> > > I don't know about the original issue, but that looks an awful lot like > your quad is intersecting the near or far plane, and thus being clipped. > > Have you tried moving the near plane closer to the camera, and/or the far > plane further away? > > -- > Tristam MacDonald > Software Development Engineer, Amazon.com > http://swiftcoder.wordpress.com/ >
This problem ended up being caused by my texture image having non-power-of-two dimensions. I stretched my image to 1024 width by 512 height, and it properly occupied its material. -- 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.
