Hey Pygleters )))

2015-10-21 Thread Benjamin Moran
Sounds interesting. Please update how you're getting on. -- 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

Re: Hey Pygleters )))

2015-10-22 Thread Benjamin Moran
Ah, I see. Still, interesting project. -- 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

Re: Minimum Python version support for contributions

2015-10-22 Thread Benjamin Moran
t me know if you want a tester... I've got lost of > controllers to play with. > > On Wednesday, October 21, 2015 at 8:01:45 PM UTC-5, Benjamin Moran wrote: >> >> Thanks for the reply, Leif. >> >> What I'm thinking is much simpler than that. I plan on leavi

Re: Usage without pyglet.app.run

2015-10-22 Thread Benjamin Moran
I'm on board for testing on Linux. I only use Python 3 these days, but I can test on 2.7 as well. On Thursday, October 22, 2015 at 10:37:02 PM UTC+9, Leif Theden wrote: > > I didn't expect it to work without a few changes. I simplified the entire > implementation and likely broke a few

Re: Experimental changes to the pyglet clock

2015-10-25 Thread Benjamin Moran
Tested on a Linux box with Python 3.5. No issues. I'll give it another try with your recent update. It may be a relatively small improvement, but many small improvements add up! 2015年10月26日月曜日 11時51分43秒 UTC+9 Leif Theden: > > Great suggestion, Petr. I made the changes that you suggested,

Re: Pyglet and pyopengl?

2015-10-25 Thread Benjamin Moran
I'd also suggest looking at the gloo library if you're interested in PyOpenGL. Gloo is much more modern than PyOpenGL, and has significantly easier interfaces for managing shaders and such. Gloo is part of the Vispy package (which is intended for scientific visulisation), but it can be used by

Re: Minimum Python version support for contributions

2015-10-27 Thread Benjamin Moran
I've mostly kept the docstrings as-is, so hopefully it won't cause any issues. I'll check again before submitting it. I've tried to follow convention with regards to @property/@x.setter decorator docstrings, but admittedly I'm not an expert. Ah, it sure would be nice to drop Python 2

Re: Minimum Python version support for contributions

2015-10-29 Thread Benjamin Moran
arning to > the set_position too? > > E.g. > > warnings.warn("Use position property instead.", DeprecationWarning) > > > Rob > > Op donderdag 29 oktober 2015 08:20:55 UTC+1 schreef Benjamin Moran: >> >> Pull request updated. Let me know if I missed anything! >

Re: Minimum Python version support for contributions

2015-10-29 Thread Benjamin Moran
Thanks Leif, and Rob, for your feedback. I've been working on my Game Controller implementation as well, but need some opinions on the best place to add it in. It's probably best to start a new thread for that. -- You received this message because you are subscribed to the Google Groups

Re: Hello Everyone

2015-10-27 Thread Benjamin Moran
Do you have any experience with other languages, or is Python your first? In either case, I've always found the standard Python interactive interpreter to be invaluable in playing around with code. -- You received this message because you are subscribed to the Google Groups "pyglet-users"

Re: Minimum Python version support for contributions

2015-10-28 Thread Benjamin Moran
I've made a pull request for my refactored sprite module. There aren't really any code changes or docstring changes, so I don't think anything should be affected. If there are any issues I can fix it up. On Tuesday, October 27, 2015 at 7:29:14 PM UTC+9, Rob wrote: > > That is also the reason

Re: Minimum Python version support for contributions

2015-10-28 Thread Benjamin Moran
Thanks for the feedback. I left the set_position method there because it's not possible to pass more than one value for a @position.setter. If added, it will require x,y to be passed as a tuple. That's OK, but set_position has to stay for now anyway so it doesn't break any code. -Ben -- You

Re: Minimum Python version support for contributions

2015-10-29 Thread Benjamin Moran
Pull request updated. Let me know if I missed anything! -- 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

Re: Minimum Python version support for contributions

2015-10-26 Thread Benjamin Moran
Great! I'll send a pull request your way sometime soon. -Ben On Monday, October 26, 2015 at 9:06:06 PM UTC+9, Rob wrote: > > I am definitely in favor of that. I also use @property and such in the > refactoring. > > Rob > > Op maandag 26 oktober 2015 13:04:46 UTC+1 s

Re: Minimum Python version support for contributions

2015-10-26 Thread Benjamin Moran
gt; I think that you will have a lot more work to do. AFAIK, you will need to >> use all of SDL2 (windowing, events, etc). Pyglet interfaces at the OS >> level (with ctypes), so you *may* have to re-implement more than just the >> joystick API. Something to think about anyway

Re: Usage without pyglet.app.run

2015-10-22 Thread Benjamin Moran
This doesn't work with the latest release of pyglet, but I love the heap/priority queue implementation. Did you try to get this merged into the main pyglet branch in the past? If so, any reaons why it wouldn't be accepted? The heapq module is in the standard library (and pure python), so it

Re: Minimum Python version support for contributions

2015-10-21 Thread Benjamin Moran
Thanks for the reply, Leif. What I'm thinking is much simpler than that. I plan on leaving the existing joystick api in pyglet as-is, and implementing the game controller api as an abstraction over that (how it's done in SDL). I've already hacked up a quick script that converts the pyglet

Re: Minimum Python version support for contributions

2015-10-28 Thread Benjamin Moran
Sounds good. I'll make those changes and update the pull request. Thanks guys. -- 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

missing evdev_constants, and trouble creating all evdev controls

2015-11-09 Thread Benjamin Moran
Figured it out! After a bit of research into the Linux input code, I figured out how this stuff works. It wasn't the functions themselves that were the issue, but something much simpler: the KEY_MAX constant in evdev_constants needed to be raised to take the new values into account (704+ as

How do I close files in pyglet?

2015-11-12 Thread Benjamin Moran
Could you show how you are opening the files? Maybe some example code? -Ben -- 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

Re: AVbin purpose

2015-11-12 Thread Benjamin Moran
I would guess that the built-in png and wav support is probably adequate for most users. This topic does bear discussion though, because avbin isn't even available is some Linux distribution repositories. On Arch, for example, it must be built from the AUR. This wouldn't matter if it was

Minimum OpenGl Version

2015-11-12 Thread Benjamin Moran
I really don't know either, but it doesn't seem to use anything higher than 2.0 for the built in abstractions. You're free to use anything higher of course if you would like to access opengl directly. Personally I would like to see the sprite and other classes take advantage of modern opengl.

Re: Minimum OpenGl Version

2015-11-12 Thread Benjamin Moran
ll have to throw away my old laptop that has an Intel GMA 945 on it. > > On Thursday, 12 November 2015 11:04:52 UTC, Benjamin Moran wrote: >> >> I really don't know either, but it doesn't seem to use anything higher >> than 2.0 for the built in abstractions. You're

Re: AVbin purpose

2015-11-13 Thread Benjamin Moran
I suppose I should rephrase what I said about maintenance, and instead say: "someone needs to write the code" :) I personally like this idea. I'm working on something else at the moment, but would be able to test on Linux. -- You received this message because you are subscribed to the Google

Testing documentation

2015-11-13 Thread Benjamin Moran
Just read over it. Great work! I'm looking forward to your development guide. -Ben -- 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

Re: AVbin purpose

2015-11-14 Thread Benjamin Moran
On the audio side, SDL_Mixer supports wave, aiff, voc and ogg vorbis natively. Flac, mp3 and others require additional libraries. I think this is a reasonable strategy. If I'm going to dream, I would love to see a built-in Vorbis decoder in pure python. It would probably not be possible to do

Using Pyglet with a Logitech Wireless Gamepad F710

2015-11-14 Thread Benjamin Moran
Hi Chris, The way joysticks are implemented in pyglet, the event system handles updating the button/axis values. For that reason you won't get any values if you tried testing it in an interactive Python shell, for example. First of all, could you try the joystick test app? It can be found in

Re: Using Pyglet with a Logitech Wireless Gamepad F710

2015-11-15 Thread Benjamin Moran
button): >ao2.speak('Button %s.' % button) > > pyglet.app.run() > > Cheers, > > > On 15/11/2015 06:13, Benjamin Moran wrote: > > Hi Chris, > > > > The way joysticks are implemented in pyglet, the event system handles > updating the butto

Looking for Windows testers with non-XBox360 controllers

2015-11-16 Thread Benjamin Moran
Hi guys, I'm hard at work on my SDL2-style GameController implementation for pyglet. If you're not familar with this, it's basically a way to automatically map all common game controllers to a standard internal layout. This means that your users controllers will just work as expected, out of

I made a small pull request to fix tiny bugs.

2015-11-10 Thread Benjamin Moran
Hi guys, I'm not sure if this is worth mentioning here, or if it will get noticed on bitbucket first. I made two tiny changes. The first is a simple Python 3 fix for the pyglet.input.get_devices function, which would fail due to a bytes/unicode issue. The second is some addition

Re: Minimum Python version support for contributions

2015-10-30 Thread Benjamin Moran
ton/axis > mapping. I realize you linked one already, but that will have to be > transformed into something python can use, like a dict. > > > On Thursday, October 29, 2015 at 9:14:09 PM UTC-5, Benjamin Moran wrote: >> >> The input module would make sense as a package

Re: How strongly does everyone feel about the 80 column formatting?

2015-11-02 Thread Benjamin Moran
, 2015 at 5:30:38 PM UTC+9, Rob wrote: > > I personally try to use 80 as a soft limit and 100 as a hard limit. > Usually makes cleaner code. > > Rob > On 2 Nov 2015 3:36 am, "Benjamin Moran" <benmo...@gmail.com > > wrote: > >> Hey guys, >> >&

Re: Minimum Python version support for contributions

2015-11-02 Thread Benjamin Moran
you thanks for the contribution. >> >> For the place to add it, I am thinking we might need to upgrade the input >> module to a package. We can then expose the original contents of the input >> module through __init__.py. >> >> Rob >> On 29 Oct 201

How strongly does everyone feel about the 80 column formatting?

2015-11-01 Thread Benjamin Moran
Hey guys, Just curious how everyone feels about strictly keeping to the 80 column limitation. I've got my eye one doing some cleanup/refactoring, but have always found it challenging to keep things under 80 characters. I often find myself using less descriptive variable and function names for

Re: Hey Pygleters )))

2015-11-06 Thread Benjamin Moran
What about something like this as a start: https://github.com/mrdoob/three.js/tree/master/utils/converters/fbx I've never used Three.js, but json format is pretty easily to use in Python. You could either build models out of that json data, or use that code as a base to create models directly.

What is the current Python 3 porting status?

2015-11-04 Thread Benjamin Moran
Hey guys, As far as I can tell, the default branch on bitbucket mostly works on Python 3 now without needing 2to3. Are there any big parts that need still need porting? I submitted a tiny fix for pyglet.input.get_devices today, and was wondering what else I could help with. -Ben -- You

Re: Minimum Python version support for contributions

2015-11-02 Thread Benjamin Moran
Thanks, I'll keep it as a list of dictionaries for now. It's really nothing more than this: game_controller_db = [{...}, {...}] I'll see if I can answer your questions: The mapping DB is only parsed when gamepads are enumerated. First a guid is created for the device, which is checked if

Re: How strongly does everyone feel about the 80 column formatting?

2015-11-06 Thread Benjamin Moran
Good info about the docstring length. That sounds reasonable. On Friday, November 6, 2015 at 7:11:12 PM UTC+9, Adam wrote: > > On Thursday 05 November 2015 16:44:17 Benjamin Moran wrote: > > Thanks for the feedback guys. I'll not limit myself unnecessarily > > anymore w

Re: Looking for Windows testers with non-XBox360 controllers

2015-11-17 Thread Benjamin Moran
t;> __getatt >> r__ >> __import__(import_name) >> File "C:\Python27\lib\site-packages\pyglet\input\__init__.py", line >> 165, in > odule> >> from directinput import get_devices, get_joysticks >> File "C:\Python27\lib\site-pa

Re: Looking for Windows testers with non-XBox360 controllers

2015-11-17 Thread Benjamin Moran
Thanks a lot! If possible, could you also run this tool and send me the GUID string? http://www.generalarcade.com/gamepadtool/ Your controller is actually not supported out of the box by SDL2 either at the moment, but no reason it can't be added to the database. -Ben On Wednesday,

Re: AVbin purpose

2015-11-12 Thread Benjamin Moran
Just to add to the conversation, one of the main things that attracted me to pyglet in the first place was that it's a "pure" Python module. I love PySDL2, but there always seems to be that one person who has trouble with the SDL2 modules. Currently pyglet supports png and wav decoding

Hello Everyone

2015-10-02 Thread Benjamin Moran
Just joined as well. Might as well piggyback on your post. I should have tried pyglet a long time ago - it's awesome! -- 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

Minimum Python version support for contributions

2015-10-06 Thread Benjamin Moran
Hi guys, New user of pyglet, and potential contributor. I'm not sure if the core developers visit this forum, but I thought it was a good place to start. Basically, I want to implement support for SDL2 GameController_API style controller mapping, and wanted to knowthe minimum Python version I

Re: Label objects and GLSL shaders

2015-12-06 Thread Benjamin Moran
to be done if the label's text attribute is changed. I would imagine new glyphs would be generated. Hope this helps. -Ben On Sunday, December 6, 2015 at 6:31:07 PM UTC+9, Benjamin Moran wrote: > > I'm not very familiar with the pyglet.text module, but when I last played > around w

Re: Label objects and GLSL shaders

2015-12-06 Thread Benjamin Moran
I'm not very familiar with the pyglet.text module, but when I last played around with it I did notice that there were "glyphs" created. Creating a text string produced one glyph per character of text in the string. I was able to blit them like textures, but they showed up as simple white

Re: PulseAudio support

2015-12-06 Thread Benjamin Moran
Thanks for your work on this Rob! Unfortunately It doesn't look it's working quite right under Python 3. For example, in the Gnome sound control panel, you can see a "Python2.7" application appear when loaded_sound.play() is called. Under Python 3, the sounds load correctly, and appear to

Re: Label objects and GLSL shaders

2015-12-06 Thread Benjamin Moran
Wow, interesting! I suppose it makes sense that the text module doesn't have the same colorspace needs as traditional sprites. If you haven't seen this post yet, here is an example of rendering to a texture: http://leovt.wordpress.com/2015/10/04/render-to-texture-with-python-3-and-pyglet/ That

Re: Label objects and GLSL shaders

2015-12-06 Thread Benjamin Moran
The test-sprites would be similar to any other sprites performance wise, so the performace should be similar. Yes, you would need a sprite for each layer (but all sprites would be copied from a single texture). On Monday, December 7, 2015 at 11:05:29 AM UTC+9, Serdar Yegulalp wrote: > > Yeah,

Re: Label objects and GLSL shaders

2015-12-01 Thread Benjamin Moran
I'd also be interested in seeing what you've come up with. It's always interesting to see other people's experiments. On Tuesday, December 1, 2015 at 11:54:35 PM UTC+9, Serdar Yegulalp wrote: > > > > On Tuesday, December 1, 2015 at 6:08:02 AM UTC-5, Zim the Fox wrote: >> >> Hello! >> >> I'm

Re: PulseAudio support

2015-12-07 Thread Benjamin Moran
the decimal address of the > driver context. That is something I want to solve properly for all drivers > later. > > Rob > > Op maandag 7 december 2015 03:00:59 UTC+1 schreef Benjamin Moran: >> >> Thanks for your work on this Rob! >> >> Unfortunately It doesn't

Re: pyglet.text.Label Z co-ordinate

2015-12-16 Thread Benjamin Moran
I think the current solution is to use ordered groups, such as foreground, midsection, and background groups. -- 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

Try out my pyglet GameController API test code (Linux only)

2015-12-14 Thread Benjamin Moran
Hi Guys, Here is a rough implementation of an SDL2 stype Game Controller API in pyglet. https://drive.google.com/file/d/0B2qKznyXlpVYeF80Y0VLRTctdmM/view?usp=sharing (Just unzip, and run controllertest.py) This is a rough first implementation that works completely alongside the existing

Is there a way to reset pyglet

2015-12-10 Thread Benjamin Moran
I don't think pyglet (and many other libraries) are designed to be "reset" in such a manner. Pyglet has low level hardware access so it's especially tricky. You may want to consider a different approach. For example, create a SceneManager that contains several scenes (menu scene, game1 scene,

Re: Orthographic view for depth sorting?

2015-12-13 Thread Benjamin Moran
I wouldn't mind seeing that code. I think this is an area where pyglet might benefit from a rewrite/optimization at some point in the future. There is a bit of waste in the Sprite class, but rewriting it also means changing the way vertex stuff is done elsewhere. -- You received this message

My new year's present - OpenAL

2016-01-01 Thread Benjamin Moran
Awesome work! This is a really important part, so glad to see it getting some love. By the way, not to derail the thread, but what's the story with pyglet's Procedural audio? From what I can tell it works, but is not yet in the documentation. If there are any know issues or needed work, I

Re: pyglet CPU usage on Windows after importing

2015-11-26 Thread Benjamin Moran
U usage following "import pyglet.image" still appeared to be > present. > > On Sun, Nov 22, 2015 at 10:52 PM, Benjamin Moran <benmo...@gmail.com > > wrote: > >> Hi Andrew, >> >> You're on Windows 7, right? I just gave this a try on my Windows VM

Re: Label objects and GLSL shaders

2015-12-01 Thread Benjamin Moran
Hi Serdar, The textures for the text classes are handled a bit differently than Sprite textures. I've not really studied the pyglet.text module yet, but you can kinda see how things work by looking through the code. The pyglet.text.layout.py in particular has some interesting bits in there

Re: Looking for Windows testers with non-XBox360 controllers

2015-11-18 Thread Benjamin Moran
> USB Audio CODEC GUID(290008bb, 0, 0, 0, 0, 50, 49, 44, 56, 49, 44) > USB Receiver GUID(c534046d, 0, 0, 0, 0, 50, 49, 44, 56, 49, 44) > Controller (Wireless Gamepad F710) GUID(c21f046d, 0, 0, 0, 0, 50, 49, 44, > 56, 49, 44) > > On 17/11/2015 03:58, Benjamin Moran wrot

Re: Looking for Windows testers with non-XBox360 controllers

2015-11-18 Thread Benjamin Moran
Thanks Magu! (sorry, don't know your name. It shows up as magu...@gmail) I'll add your mapping to the database. You can also kinda see how the SDL2 style GUID is being created from the DirectInput GUID: 1070f30 --> 01 07 0f 30 --> 30 0f 07 01 --> 300f0701 + 504944564944 =

Re: Looking for Windows testers with non-XBox360 controllers

2015-11-18 Thread Benjamin Moran
ss RumblePad 2 GUID(c219046d, 0, 0, 0, 0, 50, 49, 44, 56, > 49, 44) > > HTH, > > On 18/11/2015 08:38, Benjamin Moran wrote: > > Thanks Chris! > > Just to confirm, was your controller in Xinput or DirectInput mode? If I'm > not mistaken, those Logitechs have a

Re: Looking for Windows testers with non-XBox360 controllers

2015-11-20 Thread Benjamin Moran
ou could use it under the BSD license. My Tesun joypad > doesn't work properly with the linux kernel I have it appears, so some my > axis are conflated so I won't send output. > > On Tuesday, 17 November 2015 03:58:21 UTC, Benjamin Moran wrote: >> >> Hi guys, >> >>

Re: python3 support

2015-11-20 Thread Benjamin Moran
Actually, you'll find that the current development version (on Bitbucket) pretty much works fine on both Python 2/3 now. There are still some issues, so it would be great if you could report anything you find. -Ben On Friday, November 20, 2015 at 6:10:16 PM UTC+9, Jason Spashett wrote: > >

Should pyglet's sprite class have an AABB attribute?

2015-11-19 Thread Benjamin Moran
Hi guys, I was wondering if there was any interest in adding an AABB (axis aligned bounding box) attribute to the sprite class. It's just a couple lines of code, and it would make doing simple collision checks easier for new users. A simple property like this would suffice: @property def

Re: pyglet CPU usage on Windows after importing

2015-11-22 Thread Benjamin Moran
Hi Andrew, You're on Windows 7, right? I just gave this a try on my Windows VM and could not replicate it. According to Windows Resource Monitor, the Python process CPU usage only blips up for a split second, then drops back down to 0%. I tested on Win 7 Ultimate 64-bit, using the current

Re: Looking for Windows testers with non-XBox360 controllers

2015-11-23 Thread Benjamin Moran
, > 56, 49, > 44)) > [DirectInputDevice(name=Rato), DirectInputDevice(name=Teclado), > DirectInputDevic > e(name=Trust Keyboard), DirectInputDevice(name=Trust Keyboard), > DirectInputDevic > e(name=Gioteck PS3 Wired Controller)] > >>> > > > > quarta-

Re: Should pyglet's sprite class have an AABB attribute?

2015-11-21 Thread Benjamin Moran
TC+9, Leif Theden wrote: > > Ben, what about an AABB class? Pyglet devs could use them with sprites if > they wanted, or GUI folks could use it for testing mouse clicks and what > not. > > On Friday, November 20, 2015 at 1:36:27 AM UTC-6, Benjamin Moran wrote: >>

Re: avbin and sound support

2016-06-02 Thread Benjamin Moran
I know this doesn't help, but I just stick to PNGs and WAVs for my own projects - thus avoiding the optional AVBin dependency. If I'm dreaming, I would love to see a pure python Ogg Vorbis or FLAC decoder for pyglet. These would not likely be performance enough to work as Streaming

Re: Setting RGBA for sprite regions

2016-06-02 Thread Benjamin Moran
The old games did it a variety of ways. Two sprites like you're already doing, or overlaying a second sprite overtop of the bottom half of your character sprite, that is basically a duplicate of the water sprites + ripple, etc. Either way, you're stuck with two sprites like you already have.

Re: Experimental changes to the pyglet clock

2016-06-06 Thread Benjamin Moran
6 June 2016 at 06:57, Benjamin Moran <benmo...@gmail.com > > wrote: > >> Sorry to bump up this thread after all of this time, but I was curious if >> there were any issues with getting this merged. >> >> On Monday, October 26, 2015 at 11:51:43 AM UTC+9, L

Re: Experimental changes to the pyglet clock

2016-06-05 Thread Benjamin Moran
Sorry to bump up this thread after all of this time, but I was curious if there were any issues with getting this merged. On Monday, October 26, 2015 at 11:51:43 AM UTC+9, Leif Theden wrote: > > Great suggestion, Petr. I made the changes that you suggested, and got a > 8-10% speed increase

Pull request opened for shader class

2016-06-01 Thread Benjamin Moran
I opened up a pull request for my simple ShaderProgram class I worked on a few months ago. This is likely not suitable for merging in it's current state, but I wanted to potentially spark up a bit of conversation on what should be added/changed/modified/removed. The pull request is here:

A simple fixed resolution viewport with camera for 2D games

2016-05-29 Thread Benjamin Moran
Hey guys, I thought I'd share this snippet here: https://bitbucket.org/snippets/treehousegames/g6Xdg Most of the code is from the fixed resolution viewport that is in the pyglet example code, but I've tweaked it a bit such as turning it into a context manager, and implementing a simple 2D

Re: Setting RGBA for sprite regions

2016-05-29 Thread Benjamin Moran
I think Greg has the right idea. If you're not keen on going 3D, then I'm sure there are other ways to fake the effect in 2D. If you happened to have a link to a picture showing the effect you're trying to create, it might help with the suggestions. -Ben On Monday, May 30, 2016 at 4:01:40 AM

Re: This is the best software ever! :)

2016-06-21 Thread Benjamin Moran
Nice job! I've never written a screen saver myself, but I like that you have password authentication and everything. On Tuesday, June 21, 2016 at 2:05:40 AM UTC+9, Jesse Cox wrote: > > Here is my new screensaver/lock for Ubuntu. Have any suggestions? > > https://youtu.be/i5xjszpul-Q > -- You

Re: This is the best software ever! :)

2016-06-21 Thread Benjamin Moran
Nice job! I've never written a screen saver myself, but I like that you have password authentication and everything. On Tuesday, June 21, 2016 at 2:05:40 AM UTC+9, Jesse Cox wrote: > > Here is my new screensaver/lock for Ubuntu. Have any suggestions? > > https://youtu.be/i5xjszpul-Q > -- You

Re: Get current mouse/cursor position (x and y)

2016-06-21 Thread Benjamin Moran
And of course if you don't subclass Window, there is also the nice decorators for window events, as you probably already know: mouse_pos = 0, 0 @window.event def on_mouse_motion(x, y, dx, dy): mouse_pos = x, y Keep in mind that changing the Sprite.position is a somewhat expensive

Re: on_player_eos event not working when trying to play through a list of mp3 files with Pyglet

2016-06-17 Thread Benjamin Moran
Ah, I realize that my reply wasn't clear. The code I posted works fine. If it doesn't work for you, please share your error message. -- 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

Re: on_player_eos event not working when trying to play through a list of mp3 files with Pyglet

2016-06-17 Thread Benjamin Moran
Hi Mitchell, I was curious about this, because I'm not very faimilar with the pyglet.media module myself either. I gave it a try with some tiny *.wav files (since I don't have avbin), and it errored out due to the sources already being queued to the player on the second loop. This might only

Re: Clearing out texture caches

2016-01-17 Thread Benjamin Moran
That's good information. On an SDL2 game, I was using lots of generated textures for simple particle effects. It sounds like this sort of thing would trigger the memory leak-like behavior your describe. The addition of a no_cache parameter sounds useful to me too. I'm not familiar with the

Re: Rendering multiple polygons links them together

2016-01-18 Thread Benjamin Moran
It's my understanding that the first, and last vertexes need to be duplicated. Something about terminating the points. I could be off base here, since the last time I wrote OpenGL was about 2 years ago with another framework and likely in modern OpenGL, but give that a look :) On Tuesday,

Re: on_player_eos event not working when trying to play through a list of mp3 files with Pyglet

2016-06-25 Thread Benjamin Moran
OK, so in the documentation I can see the official description of StreamingSources is: "StreamingSource A source that is decoded as it is being played, and

Re: Get current mouse/cursor position (x and y)

2016-06-26 Thread Benjamin Moran
Glad you got it sorted out. The way pyglet does it is pretty similar to other libraries (like SDL2), where the mouse is already continuously firing update events to the Window. You just need to catch them. I really do like pyglet's event system. On Monday, June 27, 2016 at 9:29:44 AM UTC+9,

Re: on_player_eos event not working when trying to play through a list of mp3 files with Pyglet

2016-06-25 Thread Benjamin Moran
other things, at first I wasn't able > to get it to work, but I was able to fix it just today and your code worked > great! Thank you so much! > > Mitchell Barton > > > > On Fri, Jun 17, 2016 at 7:17 PM Benjamin Moran <benmo...@gmail.com > > wrote: > >>

Re: GSoC

2016-02-10 Thread Benjamin Moran
I like the sound of this, but have no idea what it would entail. On Tuesday, February 9, 2016 at 10:57:12 AM UTC+9, elliot wrote: > > The numpy list just started discussing the Google Summer of Code. Project > mentors would need to decide to participate pretty soon. > >

Re: Pyglet 1.2.5 bugfix release?

2016-01-28 Thread Benjamin Moran
Hi Rob, I'm seeing an issue with the /examples/noisy/ example. Under Python 3/Linux it plays staticky sounding audio. Under Python 2 it works normally. I'm not sure if this would be considered an "urgent" issue. I don't think anyone has complained about it, so It might not be common. I was

Esper - an Entity Component System library

2016-01-25 Thread Benjamin Moran
Hi Guys, I thought I'd share my new ECS for Python. It's still a young library, but is already useable for games. It's designed to be as light and fast as possible, and I think it accomplishes that goal. There is a pyglet example included, as well as Pygame and PySDL2. I hope this is useful

Re: Esper - an Entity Component System library

2016-01-26 Thread Benjamin Moran
Great, let me know what you think if you try it. The existing API is pretty much stable, but I'm always open to implementing new ideas if they make sense. In particular, I was thinking that it might make sense to add a simple event system. Also, since ECSs lend themselves very well to parallel

Re: Adding shader support to pyglet

2016-02-16 Thread Benjamin Moran
..@gmail.com > > wrote: > >> Just a user but I would love that. >> On Feb 15, 2016 6:53 PM, "Benjamin Moran" <benmo...@gmail.com >> > wrote: >> >>> Hi guys, >>> >>> How would everyone feel about adding a s

Re: Adding shader support to pyglet

2016-02-16 Thread Benjamin Moran
. On Wednesday, February 17, 2016 at 12:10:05 AM UTC+9, Petr Viktorin wrote: > > On 02/16/2016 03:52 PM, Benjamin Moran wrote: > > It seems like there is a lot of demand for this! > > > > I think there are a lot of small implementation details to think about, >

Re: Adding shader support to pyglet

2016-02-19 Thread Benjamin Moran
a context is available, but that's a bit beyond my current understanding. Any feedback welcome! -Ben On Tuesday, February 16, 2016 at 9:53:46 AM UTC+9, Benjamin Moran wrote: > > Hi guys, > > How would everyone feel about adding a simple shader Class to the graphics > module?

Re: Adding shader support to pyglet

2016-02-19 Thread Benjamin Moran
gt; Upgrading batch to work with modern OpenGL is a reasonable priority - on > Mac today your choice is OpenGL 2.0 or 4.2 (there is no way to allocate a > context between those two versions), so batch is basically useless. > On Fri, Feb 19, 2016 at 2:53 AM, Benjamin Moran &l

Re: New to Pyglet & OpenGL: I Think I Can

2016-02-19 Thread Benjamin Moran
I haven't look at the rest of the source code, but I think this is one of those situations where there are many ways to tackle the same problem. I'm sorry I can't answer your question, but I would like to suggest you check out this nice Minecraft-style demo in pyglet:

Re: Adding shader support to pyglet

2016-03-18 Thread Benjamin Moran
No problem. I'd appreciate any feedback. -- 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

Re: Adding shader support to pyglet

2016-03-08 Thread Benjamin Moran
Hi Serdar, Give this link a try. It should take you to the "shader_class" branch: https://bitbucket.org/treehousegames/pyglet/src/e9cb1eb0c7492e681b4bc98035ab260f73498b5b/?at=shader_class The two new files are located in: /pyglet/graphics/shader.py and /examples/opengl_core.py -Ben On

Re: Small performance improvement for the Sprite class?

2016-04-06 Thread Benjamin Moran
I understand what you mean about pull requests directly to the default branch, but the 1.2.x branch is nicely separated with each released tagged. It seems to be fairly well organized this way. On Saturday, April 2, 2016 at 10:12:28 PM UTC+9, Daniel Gillet wrote: > > Hi Benjamin, > > Thanks

Re: Small performance improvement for the Sprite class?

2016-04-07 Thread Benjamin Moran
, Benjamin Moran wrote: > > I understand what you mean about pull requests directly to the default > branch, but the 1.2.x branch is nicely separated with each released tagged. > It seems to be fairly well organized this way. > > > > > On Saturday, April 2, 2016 at 10:12:28 PM

Re: current pyglet bitbucket master, py2&3, windows status ?

2016-03-23 Thread Benjamin Moran
Hi Claudio, With regards to your question #3, in what way does it break support? I know Cocos has it's own sprite.py module, so I'm curious what the issue is. I did the property decorator refactor, but it should have been mostly cosmetic. I think one or two methods were marked as depricated,

Re: current pyglet bitbucket master, py2&3, windows status ?

2016-03-24 Thread Benjamin Moran
a workaround would be to add the old _set_x() methods back to the module, but it would be a lot of extra cruft in the code. Just my personal opinions -Ben On Thursday, March 24, 2016 at 11:32:11 AM UTC+9, claudio canepa wrote: > > > > On Wed, Mar 23, 2016 at 10:36 PM, Benjamin

Re: Adding shader support to pyglet

2016-03-06 Thread Benjamin Moran
VAO stuff in specific is going to need to be handled in the general graphics module, but maybe it would also make sense to have some simple methods to handle that in the shader class. Thanks everyone. On Saturday, February 27, 2016 at 12:59:30 PM UTC+9, Benjamin Moran wrote: > > Hi g

Small performance improvement for the Sprite class?

2016-03-27 Thread Benjamin Moran
Hi guys, I did a minor performance tweak to the Sprite class's _update_position method a while ago, and thought I'd share it. You can see it in my "sprite_optimization" branch here:

  1   2   3   4   5   6   >