Thanks that does help :) Would you know how I can get a python matrix usable in opengl? :/ It just says "expected LP_c_float instance instead of matrix" when I try use a numpy one :(
On Thu, Oct 11, 2012 at 6:34 AM, Anonymouse <[email protected]>wrote: > You'll want to do the projection in the on_resize handler. As for > drawing the sprites, I think you'll have to do it manually if you set > your own projection. I can't really say much more on the topic because > I don't know much more. Hope it still helps! > > On 8 October 2012 04:09, Wallace Davidson <[email protected]> wrote: > > I meant to say "I have used pyglet sprites and textures solely in the > past" > > > > cheers > > > > On Monday, October 8, 2012 3:08:18 PM UTC+13, Wallace Davidson wrote: > >> > >> I am trying to make an rpg from a first person perspective with 2d > sprites > >> (similar to doom or wolfenstein 3d) and I understand I probably need to > read > >> into the pyglet opengl section of the programming guide. I've read > through > >> all I could find that is related and can draw quads and triangles on the > >> screen and move the vertices about, but the thing I don't understand and > >> that has stopped my progress is how to use matrices to do > transformations to > >> make the screen first person. > >> > >> Am I meant to use a camera class (I don't really understand what this > does > >> :/ ) or something similar? I am pretty new to the opengl side of things > >> haven't used solely pyglet sprites and textures in the past. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "pyglet-users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/pyglet-users/-/Q5kAqdewGPgJ. > > > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/pyglet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pyglet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
