On Friday, 16 June 2017 14:25:00 UTC+2, Benjamin Moran wrote: > > Yes, I can answer this one. The Window.on_resize() method is calling some > legacy OpenGL functions, which won't work on GL contexts above 3.0. > > You can avoid the error by just overriding this event like this: > > > @window.event > def on_resize(w, h): > return pyglet.event.EVENT_HANDLED > Cool, it works, thanks a lot for your help! I apparently had a few other "old style" things going on that I had to update, but now the important calls aren't raising errors any more. I still have to figure out how to get it all into the shader, but hopefully that's just bookkeeping :)
Might I ask, what type of application/game are you building? > Sure! it's nothing very serious, more like one of these vaguely game-like projects that keeps morphing into something else whenever it starts to look like anything. Right now I'm playing around with raymarching and signed distance fields, trying to figure out a way to efficiently use that to draw a game world. There are amazing examples out there of what can be done with very little code, but it's all procedural and repeated in clever ways, not so useful for showing a predefined map for example. I'm taking some ideas from the VoxelQuest project - although waaay less ambitious... Among other things, that means putting all objects into a hash table, which has to be sent to the shader. I have got something working with array uniforms, but those won't scale very far. As far as I can tell, texture buffers (or is is buffer textures?) should be a perfect fit. Most of the work is in the shaders, so far I'm essentially only using pyglet as a gl wrapper and event loop. But I really like it! -- 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 https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
