Re: Discussion on miru

2009-02-13 Thread Drew Smathers
On Fri, Feb 13, 2009 at 3:57 PM, sevenseeker wrote: > > Hi Drew, is Miru still active? Currently, no :( I am very busy with work, but I hope to continue developing miru some in the future. If you find it useful and would like to extend it or fix bugs, I'd be happy to review patches. The code

Re: Mouse Over OpenGL Primitiv

2008-12-02 Thread Drew Smathers
On Tue, Dec 2, 2008 at 12:10 PM, Silentpolygon <[EMAIL PROTECTED]> wrote: > > Hi everybody > > This is the code, that i have right now. Sorry for the german > comments, but I think it should be understandable code. It draws 2 Hex > Polys. Now i want know how does pyglet know if the Mouse cursoer i

Re: How does one compare python with this?

2008-11-05 Thread Drew Smathers
On Tue, Nov 4, 2008 at 5:51 PM, Arne Babenhauserheide <[EMAIL PROTECTED]> wrote: > Am Dienstag 04 November 2008 23:21:37 schrieb Drozzy: >> http://creators.xna.com/en-US/starterkit/roleplayinggame >> >> These guys already have a basic game set and ready to go. It is too >> bad that no such opengl/

Re: Getting coordinate of mouse in 3d world

2008-11-01 Thread Drew Smathers
On Sat, Nov 1, 2008 at 2:20 PM, Noyan Tokgozoglu <[EMAIL PROTECTED]> wrote: > > I want to get the point (actually line) that corresponds to the > position of the mouse on the scee. Like a "what you see is what you > get". I'm not sure whether I am able to describe it properly but think > of it lik

Re: new pyglet

2008-10-27 Thread Drew Smathers
On Mon, Oct 27, 2008 at 5:30 PM, Drozzy <[EMAIL PROTECTED]> wrote: > > Is there a way to show how these tutorial can be done using the new > way of handlers in pyglet, instead of an infinite loop? > I.e. > @window.handler > def somemethod > > instead of: > > while(1) > somemethod() > Though I'm

Re: pyglet related sprints, etc at pycon

2008-10-23 Thread Drew Smathers
On Thu, Oct 23, 2008 at 12:28 PM, Casey Duncan <[EMAIL PROTECTED]> wrote: > > I wondered if anyone interested and/or involved with pyglet and python > game development in general was planning to go to pycon and would be > interested in sprinting, having a BOF, etc. > > I haven't fully decided if I

Re: text not showing

2008-10-23 Thread Drew Smathers
On Wed, Oct 22, 2008 at 9:01 PM, oopjosh <[EMAIL PROTECTED]> wrote: > > Hello, > I'm new to pyglet and opengl. I have gotten an ok demo working, > but I cannot get 2D text to display on the screen in from of my 3D > polygons. I'd like it to be something like a score, to always be in > the same

Re: Cannot load an image (doing it wrong?)

2008-10-14 Thread Drew Smathers
On Tue, Oct 14, 2008 at 2:48 PM, Noyan Tokgozoglu <[EMAIL PROTECTED]> wrote: > > Hello again, I am trying to load an image and display it on a texture, > then draw on it. But I can't load the image, I get an error saying: > > Traceback (most recent call last): > File "drawerogl.py", line 544, in

Re: From menu to game, -how do I do that?

2008-10-12 Thread Drew Smathers
On Fri, Oct 10, 2008 at 6:56 PM, duckblue <[EMAIL PROTECTED]> wrote: > > Hi, > > I've followed the tutuorials and I've made a menu class and game > class. Both work independently, but I don't know how to go from > showing the menu to playing the game. > > Here's how I'm loading the menu: > > __doc

Re: that wacky y-axis

2008-10-10 Thread Drew Smathers
On Fri, Oct 10, 2008 at 3:25 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Very amusing. > Why? That's the way you do it. > There's no simple cure? That's slightly mind-boggling. Every tool has > its quirks, but I've not seen before the kind of balls it takes to > blandly ignore a near-u

Re: pyglet output to postscript/pdf

2008-10-10 Thread Drew Smathers
On Fri, Oct 10, 2008 at 9:03 AM, infinite8s <[EMAIL PROTECTED]> wrote: > > > That won't work. Screen capture will return a bitmap image (plus, OS X > has it's own OpenGL context which completely bypasses the Quartz > drawing framework, so even if screen capture could capture the drawing > commands

Re: Merging squirtle into pyglet?

2008-10-06 Thread Drew Smathers
On Mon, Oct 6, 2008 at 12:22 PM, David Eyk <[EMAIL PROTECTED]> wrote: > > On Oct 6, 9:11 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> > * AbstractImage/batch/group integration >> >> I'm afraid that AbstractImage integration just doesn't make sense for >> SVG. The AbstractImage class is

Re: Merging squirtle into pyglet?

2008-10-04 Thread Drew Smathers
On Fri, Oct 3, 2008 at 11:04 AM, David Eyk <[EMAIL PROTECTED]> wrote: > > Has anyone considered merging a module like squirtle (http:// > www.supereffective.org/?tag=squirtle) in to pyglet to add SVG > rendering support? > -1 from me. Please do not take this as an insult to Squirtle. The projec

Re: install

2008-10-04 Thread Drew Smathers
On Sat, Oct 4, 2008 at 1:48 AM, edexter <[EMAIL PROTECTED]> wrote: > > I used the msi installer (I had the same problem with d only it was > python2.4 and panda 3d when I tried to install that).. Do I need to > install from the source to get it to work.. > I am not 100% sure - not being a Window

Re: install

2008-09-29 Thread Drew Smathers
On Mon, Sep 29, 2008 at 8:58 AM, Tartley <[EMAIL PROTECTED]> wrote: > > Are you sure you are running pyglet's 'setup.py' with the 'python.exe' > that is in C:\python25? Is that the first 'python.exe' on your path? > > According to my (no doubt highly approximated) understanding, it > installs unde

Re: suggestions for 2D vertex modeller?

2008-09-25 Thread Drew Smathers
On Thu, Sep 25, 2008 at 2:21 PM, Tartley <[EMAIL PROTECTED]> wrote: > > Hi people, > > I'm trying to figure the best way to create and load vertex arrays for > a 2D game. I suspect this is a solved problem, but I haven't found out > about the solution yet. > > I tried Blender and Wings, both if wh

Re: why won't this work?:(

2008-09-25 Thread Drew Smathers
On Thu, Sep 25, 2008 at 11:20 AM, Dany0 <[EMAIL PROTECTED]> wrote: > > 2Tartley:I just wanted to notice that:) > 4Tartley:OMG, did you really make this JUST for me? SO, OK, BIG thanks > to U. BUT, your code is unstructured, bad looking and not working. > This is how has it to look:) > from target_

Re: why won't this work?:(

2008-09-23 Thread Drew Smathers
On Tue, Sep 23, 2008 at 12:20 PM, Dany0 <[EMAIL PROTECTED]> wrote: > > this is da images: > http://www.wikiupload.com/download_page.php?id=61430 > this is da code: > > from pyglet import window > from pyglet import image > > win = window.Window() > > win.set_mouse_visible(False) > > @win.event > d

Re: pyglet.graphics.draw problem + more

2008-09-22 Thread Drew Smathers
On Thu, Sep 18, 2008 at 1:35 AM, Lucio Torre <[EMAIL PROTECTED]> wrote: > ok, i did it. took me forever. > the simple "copy the draw function out" didnt work. i removed > everything i could in the time i had, cocos included. > see: > http://code.google.com/p/pyglet/issues/detail?id=349 > I was a

Re: /Static /Dynamic /Stream Usage

2008-09-17 Thread Drew Smathers
On Wed, Sep 17, 2008 at 8:51 AM, Ragzouken <[EMAIL PROTECTED]> wrote: > > I just found out about these from this mailing list and read briefly > about them from a PDF called 'Pyglet Programming Guide'. It seemed to > me that I should be able to just drop /static etc at the end of my > format strin

Re: Need help on my pyglet game...

2008-09-16 Thread Drew Smathers
On Tue, Sep 16, 2008 at 12:56 PM, Glenn Ein <[EMAIL PROTECTED]> wrote: > > Looks like the error continues but in another part. > > line 811 in game > sprite.draw(camera) > line 280 in draw > self.image.blit(pos[0], pos[1]) > 'Player' object has no atribbute 'image' > You never assigned image to P

Re: pyglet.graphics.draw problem + more

2008-09-16 Thread Drew Smathers
On Tue, Sep 16, 2008 at 9:49 AM, Lucio Torre <[EMAIL PROTECTED]> wrote: > > during pyweek i had some issues with pyglet. > first, using framebuffer objs and vertex lists caused a memory error > somewhere. > then, my machine gives segmentation fault 1 every 3 times while > starting our game. it ju

Re: framerate doubles when mouse moves

2008-09-12 Thread Drew Smathers
On Thu, Sep 11, 2008 at 8:30 PM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > On 9/12/08, Tartley <[EMAIL PROTECTED]> wrote: >> >> Hey people, >> >> If my application is slow enough to reduce the framerate to about >> 30fps, then furiously moving the mouse boosts it up to 60fps again. I >> can'

Re: Monitor resolution & blit_into alpha

2008-09-09 Thread Drew Smathers
On Tue, Sep 9, 2008 at 1:27 AM, 3TATUK <[EMAIL PROTECTED]> wrote: > ... > At this point it's kind of pre-mature optimization because pyglet has > serious FPS issues as it is. > ( see http://code.google.com/p/pyglet/issues/detail?id=341 ) > Pyglet does not have serious FPS issues. set_fps_limit()

Re: High resolution texture animation memory leak

2008-08-27 Thread Drew Smathers
On Tue, Aug 26, 2008 at 3:42 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm trying to animate a loop through a set of images at an average of > 1 fps, convert them to textures and then map them to a quad. > I'm not loading them into memory at the start, but on the fly. > Running with onl

Re: High resolution texture memory leak

2008-08-27 Thread Drew Smathers
On Tue, Aug 26, 2008 at 5:40 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > hello, > > I'm trying to load textures in loop at an average of 1 fps. It > appears every iteration of the loop the image/texture data isn't > being > garbage collected and the script dies within a few minutes of a

Re: Pausing in 1.1

2008-07-20 Thread Drew Smathers
On Sun, Jul 20, 2008 at 2:14 PM, Matthew Marshall <[EMAIL PROTECTED]> wrote: > > simpsus_science wrote: >> what is a showstopper for me is that rabbyts scheduler does not >> support unscheduling in contrast to pyglets scheduler. pyglet has a >> glitch to that because pyglets scheduler passes the d

Re: Pausing in 1.1

2008-07-17 Thread Drew Smathers
On Thu, Jul 17, 2008 at 12:14 PM, simpsus_science <[EMAIL PROTECTED]> wrote: > > Hallo, > > in 1.0 I had to control the main loop myself, so i could check if i am > paused or not. Happily, this cpu thrashing is gone with 1.1. But, how > would I implement pause now? > I think it will help if you c

Re: primitives.py 2D module copyright issue

2008-07-11 Thread Drew Smathers
On Fri, Jul 11, 2008 at 5:54 AM, altern <[EMAIL PROTECTED]> wrote: > > hi all > > i was checking the mailing list archives and i discovered this > http://groups.google.com/group/pyglet-users/browse_thread/thread/57f911bdd0162291/f39cb1e4ca0d81cd?lnk=gst&q=primitives#f39cb1e4ca0d81cd > > I thought

Re: 'module' object has no attribute 'image' errors

2008-07-07 Thread Drew Smathers
On Mon, Jul 7, 2008 at 6:00 PM, George Oliver <[EMAIL PROTECTED]> wrote: > > hi, using 1.1beta2, I try to run this (from /site-packages/pyglet/docs/ > doc/html/api/pyglet.sprite-module.html): > > '''The following complete example loads a "ball.png" image and creates > a sprite for that image. The

Re: programming guide error

2008-07-07 Thread Drew Smathers
On Mon, Jul 7, 2008 at 5:16 AM, altern <[EMAIL PROTECTED]> wrote: > > hi > > as far as i can see the second example in this page has an error in the code > http://pyglet.org/doc/1.1/programming_guide/using_opengl.html > > $ python test.py > Traceback (most recent call last): > File "test.py", li

Re: newie question on opengl performance

2008-07-07 Thread Drew Smathers
On Sat, Jul 5, 2008 at 11:21 AM, altern <[EMAIL PROTECTED]> wrote: > > hi all > > today i am trying to catch up with the newest pyglet API. It looks very > nice although a bit weird at the first moment. I am working on this > simple example where many instances of an object are rendered on random

Re: How pyglet

2008-07-03 Thread Drew Smathers
On Thu, Jul 3, 2008 at 1:59 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > How i fix it ? > ctype is on python2.5 but permision is set on : > drwxr-sr-x > Um, fix what? The file permissions are not a problem. It's globally readable - pyglet doesn't need to execute or write to ctypes modu

Re: specifying texture parameters

2008-07-01 Thread Drew Smathers
On Tue, Jul 1, 2008 at 10:12 AM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > On Wed, Jul 2, 2008 at 12:05 AM, Drew Smathers <[EMAIL PROTECTED]> wrote: >> Hehe, it would be nice if you pointed out what the errors are for the record. > >>>> glTexPara

Re: specifying texture parameters

2008-07-01 Thread Drew Smathers
On Tue, Jul 1, 2008 at 9:21 AM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > On 7/1/08, Drew Smathers <[EMAIL PROTECTED]> wrote: >> >> On Mon, Jun 30, 2008 at 8:11 PM, Alex Holkner <[EMAIL PROTECTED]> wrote: >> > get_texture() and create_texture() b

Re: specifying texture parameters

2008-07-01 Thread Drew Smathers
On Mon, Jun 30, 2008 at 8:11 PM, Alex Holkner <[EMAIL PROTECTED]> wrote: > get_texture() and create_texture() both leave the new image bound on > return; why is this patch better than calling glTexParameter directly > afterwards (besides saving some keystrokes)? > Yeah, my revised argument is alo

specifying texture parameters

2008-06-30 Thread Drew Smathers
Pyglet does not currently support customizing texture parameters. This makes it cumbersome to implement more advanced texture setups such such a texture coordinate generation to support projection mapping, sphere mapping, etc. I was playing with this over the weekend and initially extracted a lot

Re: Multiplayer capability

2008-06-29 Thread Drew Smathers
On Sun, Jun 29, 2008 at 2:29 AM, Pie21 <[EMAIL PROTECTED]> wrote: > Thanks Drew. I was hoping pyglet had something I'd missed, but I guess > it makes sense that it wouldn't. I've had a read about the socket > module and it doesn't actually look too difficult. Still, a > 'multiplayer' module would

Re: Multiplayer capability

2008-06-28 Thread Drew Smathers
On Sat, Jun 28, 2008 at 12:46 PM, Pie21 <[EMAIL PROTECTED]> wrote: > > I was going to ask this in a different topic, but I figured what the > hell, a search for 'multiplayer' turned up nothing. Can't find > anything on Google either. > > Anyway, my question is what kind of multiplayer capability d

Re: error with sound OpenAL

2008-06-28 Thread Drew Smathers
On Sat, Jun 28, 2008 at 2:03 AM, altern <[EMAIL PROTECTED]> wrote: > > hi > > i am checking the sound examples but i get this error > > >>> import OpenAL > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named OpenAL > > I am on ubuntu studio and already insta

Re: pyglet , new user

2008-06-28 Thread Drew Smathers
On Sat, Jun 28, 2008 at 7:43 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi ! > I'm new user for pyglet. > I have one error , when i run Heffalump.py: > " > python Heff*.py > Traceback (most recent call last): > File "Heffalump.py", line 49, in >from pyglet import graphics > Impor

Re: I want to use a password editbox in pyglet.

2008-06-26 Thread Drew Smathers
On Thu, Jun 26, 2008 at 1:58 PM, goldworm <[EMAIL PROTECTED]> wrote: > > Thank you for reply :) > > I need a control which can be used to input user's password. > Of course, it has to be independent of the platform. > > I've already read some chapters related to layout and document and > implemen

Re: I want to use a password editbox in pyglet.

2008-06-26 Thread Drew Smathers
On Thu, Jun 26, 2008 at 5:24 AM, goldworm <[EMAIL PROTECTED]> wrote: > > Hello everyone. > > I need a password input editbox in pyglet. > As you know, the password input editbox replaces our input with > ''. > > Could tell me how to get or implement password input editbox? > Please clarify sp

Re: Transperant texture

2008-06-25 Thread Drew Smathers
On Wed, Jun 25, 2008 at 10:04 AM, SupahFly <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a question about the blit_into function concerning transperent > abstractimage. > I have a photo, converted to texture and now I want to blit_into small > frames so it looks like a puzzelpiece. The problem

Re: How do I display a video on a 3D plane?

2008-06-23 Thread Drew Smathers
On Mon, Jun 23, 2008 at 2:59 PM, Drew Smathers <[EMAIL PROTECTED]> wrote: > On Mon, Jun 23, 2008 at 2:37 PM, mdique <[EMAIL PROTECTED]> wrote: >> >> Hi everyone, >> >> I'm new to pyglet and would like to write a simple app that will >> display

Re: How do I display a video on a 3D plane?

2008-06-23 Thread Drew Smathers
On Mon, Jun 23, 2008 at 2:37 PM, mdique <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I'm new to pyglet and would like to write a simple app that will > display a video on a 3D plane. This is so that I can move that plane > around while the video is playing. > What's the simplest way to do that.

Re: pyglet.text import problem

2008-06-11 Thread Drew Smathers
On Wed, Jun 11, 2008 at 7:22 PM, Kuros <[EMAIL PROTECTED]> wrote: > Thanks for the reply. Unfortunately, that didn't work. I can do things like: > import pyglet.window > and it works fine...but it can't seem to find text > Thanks again, > Kuros > > On Wed, Jun 11, 2008 at 6:57 PM, Matthew Stevens

Re: Integrating pyglet and directpython

2008-06-11 Thread Drew Smathers
On Wed, Jun 11, 2008 at 2:19 PM, KwangYul Seo <[EMAIL PROTECTED]> wrote: > Hi, > > Recently I am fiddling with pyglet and directpython. DirectPython is an open > source C++ extension to the Python programming language which provides basic > access to DirectX(9.0c) API. To put it another way, we ca

Re: matploblib communication problem, graphics question

2008-05-23 Thread Drew Smathers
On Fri, May 23, 2008 at 6:22 PM, wolf <[EMAIL PROTECTED]> wrote: > > ok i just want to reize an image. > > i have used pyglet before to write http://code.google.com/p/suimm and > i quite liked it. image handling capabilities were superior, and sound > was not so difficult either. > > so can pyglet

Re: matploblib communication problem, graphics question

2008-05-23 Thread Drew Smathers
On Fri, May 23, 2008 at 3:13 PM, wolf <[EMAIL PROTECTED]> wrote: > > matploblib communication problem, graphics question > == > > i've had a hard time today to drill down on some infos > about matplotlib of http://matplotlib.sourceforge.net/. > this is an sf

Re: Moving the point of view

2008-05-22 Thread Drew Smathers
On Thu, May 22, 2008 at 9:18 AM, eFFeeMMe <[EMAIL PROTECTED]> wrote: > > And you're not supplying an useful answer... That's rude. I think you've gotten plenty of help with your questions on this thread. > I know that it's what I > need to do but how do I do such a thing using the TextureGroup

Re: New adopter

2008-05-18 Thread Drew Smathers
On Sun, May 18, 2008 at 10:10 PM, Nathan <[EMAIL PROTECTED]> wrote: > > On Sun, May 18, 2008 at 4:47 PM, Drew Smathers <[EMAIL PROTECTED]> wrote: >> Oh and there's the completely broken (but oh so promising) stochasm: > > According to Google and the Oxford dic

Re: New adopter

2008-05-18 Thread Drew Smathers
On Sat, May 17, 2008 at 8:15 PM, Richard Jones <[EMAIL PROTECTED]> wrote: > > On Sun, 18 May 2008, Kipple wrote: >> Where have all the pyglet projects gone? ( : > > Google has really left us in the lurch there :( > > Two games from the recent PyWeek that used pyglet: > > http://www.pyweek.org/e/ga

Re: New adopter

2008-05-18 Thread Drew Smathers
On Sun, May 18, 2008 at 3:48 PM, Kipple <[EMAIL PROTECTED]> wrote: > > Alex: noted. > > Thanks for providing us with a point to start, Richard! I'll keep an > eye on the user pages, and hopefully they'll return soon. > I don't think they will :-( Giant bugs lurking inside google groups ate every

Re: Moving the point of view

2008-05-18 Thread Drew Smathers
On Sun, May 18, 2008 at 6:18 AM, eFFeeMMe <[EMAIL PROTECTED]> wrote: > > Yay, I fixed it! Well, since I was just testing out OpenGL functions, > I thought that making new vertex lists on each draw event wasn't so > bad. I moved the vertex list outside the event and now it seems to > work alright.

Re: Simple painting with mouse

2008-05-17 Thread Drew Smathers
On Sat, May 17, 2008 at 10:17 PM, Mike Lawrence <[EMAIL PROTECTED]> wrote: > > Hi all, > > Looks like I need some help with a *really* simple paintshop-like > program I'm coding. The code below implements painting with a circular > white brush, but it doesn't seem to update the cursor position qui

Re: Most efficient way to maintain and render depth-sorted 2.5D scene?

2008-05-13 Thread Drew Smathers
On Wed, May 14, 2008 at 12:55 AM, Noiprox <[EMAIL PROTECTED]> wrote: > > Yes, at the moment I am just using: sprites.sort(key=lambda s: > s.position.y, reverse=True) > > I plan to modify this to use something like a bubble sort if I stay > with a list, or just to use a balanced tree for better

Re: Most efficient way to maintain and render depth-sorted 2.5D scene?

2008-05-13 Thread Drew Smathers
On Tue, May 13, 2008 at 11:45 PM, Noiprox <[EMAIL PROTECTED]> wrote: > > Thanks for the swift response. > > Yes, I should have good coherence, so incrementally sorting will on > average be close to O(n) anyway. I am constantly creating and > destroying these entities however, and random insert

Re: Layouts?

2008-05-09 Thread Drew Smathers
On Fri, May 9, 2008 at 7:55 AM, Scott Benjamin <[EMAIL PROTECTED]> wrote: > > I'm new to game programming as well as pyglet. > > In the game I'm working on, I'm curious about how to best go about > creating "windows" in the main game window. I'm not sure the term > "windows" is best, as it's more

Re: ANN: cocos 0.3.0 beta0

2008-05-08 Thread Drew Smathers
On Thu, May 8, 2008 at 5:11 AM, Ben Sizer <[EMAIL PROTECTED]> wrote: > > On May 6, 10:07 pm, riq <[EMAIL PROTECTED]> wrote: > > Hi, > > we've just released cocos2d 0.3.0 beta0. > > > > cocos2d is a framework for building 2D games, demos, and other > > graphical/interactive applications. > >

Re: Moving the point of view

2008-05-07 Thread Drew Smathers
On Wed, May 7, 2008 at 10:08 AM, eFFeeMMe <[EMAIL PROTECTED]> wrote: > > Thanks, that was useful! > A small problem I have though is that up to now I was using a batch of > sprites, > whereas I'll have to draw them one by one now. > > Do I have to do > glMatrixMode(GL_MODELVIEW) > glL

Re: Moving the point of view

2008-05-06 Thread Drew Smathers
On Tue, May 6, 2008 at 12:30 PM, John Harrison <[EMAIL PROTECTED]> wrote: > > > > On May 5, 8:27 am, "Drew Smathers" <[EMAIL PROTECTED]> wrote: > > > > Either way, there is no camera in OpenGL, just a world matrix > > transformation

Re: Moving the point of view

2008-05-05 Thread Drew Smathers
On Mon, May 5, 2008 at 9:16 AM, eFFeeMMe <[EMAIL PROTECTED]> wrote: > > Hello everybody. I've recently discovered pyglet and it was so > straightforward to use that I decided to try and immediately make a > RTS game with it. > In that sort of games however you want to move the camera around...

Re: Strange, consistent performance problem

2008-05-02 Thread Drew Smathers
On Fri, May 2, 2008 at 3:49 PM, Menno <[EMAIL PROTECTED]> wrote: > > Currently I'm having a very strange performance problem on my laptop. > After about 10-15 seconds of running a pyglet program the whole thing > starts to slow down really bad. And it's always after 10-15 seconds. > I've tried

Re: [bug report] segfault on redundant pyglet.font.add_file calls

2008-04-26 Thread Drew Smathers
On Fri, Apr 25, 2008 at 9:32 PM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > > On Sat, Apr 26, 2008 at 12:34 AM, Drew Smathers <[EMAIL PROTECTED]> wrote: > > I had some utility code which looked something like this: > > > > _defaultLoade

Re: [bug report] get_transform() interface is wonky? ...

2008-04-26 Thread Drew Smathers
On Fri, Apr 25, 2008 at 8:04 PM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > > On 4/26/08, Drew Smathers <[EMAIL PROTECTED]> wrote: > > Maybe I'm doing something wrong, but it seems to get a transform on an > > image texture I have to call get_transform

[bug report] get_transform() interface is wonky? ...

2008-04-25 Thread Drew Smathers
Maybe I'm doing something wrong, but it seems to get a transform on an image texture I have to call get_transform again on the returned transform. The attached script (wonky.py) demonstrates the problem (this is with pyglet trunk). To run: $ python wonky.py Notice calls are made every second t

[bug report] segfault on redundant pyglet.font.add_file calls

2008-04-25 Thread Drew Smathers
I had some utility code which looked something like this: _defaultLoaded = False def defaultFont(size=10): global _defaultLoaded from pyglet import font if not _defaultLoaded: fontpath = filepath.FilePath(__file__).parent().child('data').child('VeraMono.ttf') font.add_f

Re: Problems with looping video

2008-04-24 Thread Drew Smathers
On Thu, Apr 24, 2008 at 7:43 AM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > > On 4/24/08, Drew Smathers <[EMAIL PROTECTED]> wrote: > > Is there a bug with video looping, or is this not supported? From my > > tests, after the initial run, the video seems t

Problems with looping video

2008-04-23 Thread Drew Smathers
Is there a bug with video looping, or is this not supported? From my tests, after the initial run, the video seems to flicker and only show the first frame of the video. Apply attached patch to examples/video.py to reproduce the issue. I have also tried: @player.event def on_eos(): player.s

Re: Profiling in 1.1

2008-04-18 Thread Drew Smathers
On Thu, Apr 17, 2008 at 7:28 PM, Tigga <[EMAIL PROTECTED]> wrote: > > Hi all. Finally managed to convince google to let me join the group... > > Whats more, I have a question! I've been struggling to get the python > profiler to work using the 1.1 event loop style. It gives me a nice > little

Re: Render to video

2008-04-16 Thread Drew Smathers
On Wed, Apr 16, 2008 at 11:59 AM, riq <[EMAIL PROTECTED]> wrote: > > > > > > Anyhow, there are some scripty (not cross-platform) ways to do this > > now, of course. I'm pretty sure pyglet doesn't provide functionality > > for doing screen dumps (as grepping tells me), so you could just > > invoke

Re: Render to video

2008-04-16 Thread Drew Smathers
On Wed, Apr 16, 2008 at 10:37 AM, akhen <[EMAIL PROTECTED]> wrote: > > Hi > > Is there a way or project to make Pyglet render to files (images, > video or stream) rather than render on screen ? > > Does the way the API is designed allows this ? > No, but that sounds like it would make for a f

Re: Discussion on pseudo-fluids-with-pyglet-and-pymunk

2008-04-16 Thread Drew Smathers
On Wed, Apr 16, 2008 at 10:40 AM, rollbak <[EMAIL PROTECTED]> wrote: > > Hi, did you have some example code to share, i'm using pymunk+pyglet > and i 'm having lots of performance problems when i have to draw a lot > of circles (i use raw open gl to do that). > Thanks. > Fluid dynamics (even

Re: ClockDisplay resource leak

2008-04-08 Thread Drew Smathers
splay.draw() """ The above implicitly suggests you `should' create a new ClockDisplay instance with every clock tick. Suggested documentation changes are attached. > Martin > > On Apr 8, 7:28 pm, "Drew Smathers" <[EMAIL PROTECTED]> wrote: >

Re: ClockDisplay resource leak

2008-04-08 Thread Drew Smathers
On Tue, Apr 8, 2008 at 1:23 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > At the moment, ClockDisplay objects schedule themselves on the default > clock in their initializers, but provide no facility for unscheduling. > This means that ClockDisplay objects hang around forever, even after

Re: A native code VertexArray

2008-04-08 Thread Drew Smathers
On Mon, Apr 7, 2008 at 10:49 AM, Simon Wittber <[EMAIL PROTECTED]> wrote: > > I didn't finish anything for pyweek, though I think I produced some > code which other pyglet users may find useful. > > I've created C extension types for representing arrays of vectors, > with support for arithmeti

Re: Text() broken when using 'width'?

2008-04-02 Thread Drew Smathers
Looks like a bug to me. I've attached a patch that should fix this. -Drew On Wed, Apr 2, 2008 at 1:11 PM, Nathan <[EMAIL PROTECTED]> wrote: > > Maybe I'm just not understanding the message from the assert statement > below, but Text seems to have broken when you're passing in 'width'. > > See

Re: capture a exception in a event callback?

2008-03-07 Thread Drew Smathers
On Fri, Mar 7, 2008 at 4:34 PM, Juan Jose Alonso <[EMAIL PROTECTED]> wrote: > > Hello goys, recently i discover that my engine structure dont run fine > here in pyglet, my engine loop change the scenes capturing a > ChangeScene, is a elegant method, then i have this.. > > def run(self, scen

Re: Streaming Video

2008-03-07 Thread Drew Smathers
On Fri, Mar 7, 2008 at 1:52 PM, Matthew Singer <[EMAIL PROTECTED]> wrote: > > Can I use pyglet to view H.264 data that is coming in over a socket? Or can > it only read from a file. > Sorry, by yes I mean using sockets to read data in. pyglet assumes the data is a stored in a file: class AVbinS

Re: Streaming Video

2008-03-07 Thread Drew Smathers
On Fri, Mar 7, 2008 at 1:52 PM, Matthew Singer <[EMAIL PROTECTED]> wrote: > > Can I use pyglet to view H.264 data that is coming in over a socket? Or can > it only read from a file. > Yes. -- \/\"/\\\ / // //\/\\\ \\\/ \\// /\ \/ \\/ /\/ / /\/ /\ \\\ \/ / /\/ /\ /\\\ \

ANN: pycon 08 social networking thingy

2008-03-07 Thread Drew Smathers
Just saw this link posted on the twisted mailing list: http://pycon2008.crowdvine.com/ If you're going to pycon, please sign up and start tagging pyglet ;) BTW, anyone interested in a pyglet BoF? -- \/\"/\\\ / // //\/\\\ \\\/ \\// /\ \/ \\/ /\/ / /\/ /\ \\\ \/ / /\/ /\

Re: Why my simple scene run too slow ?

2008-03-07 Thread Drew Smathers
On Fri, Mar 7, 2008 at 6:56 AM, Juan Jose Alonso <[EMAIL PROTECTED]> wrote: > > I get only 14 fps with your example code. > > :-/ same that with my code. > Consider the differences between your hw specs and use something as a benchmark - what kind of framerates are you getting on the examples,

Re: Pattern for accessing collections of things?

2008-03-06 Thread Drew Smathers
On Thu, Mar 6, 2008 at 10:49 PM, Nathan <[EMAIL PROTECTED]> wrote: > > On Thu, Mar 6, 2008 at 8:42 PM, Casey Duncan <[EMAIL PROTECTED]> wrote: > > If you have a bunch of things and one or more actions to perform on them, > > you should put all of them into a collection object with methods that

Re: Why my simple scene run too slow ?

2008-03-06 Thread Drew Smathers
On Thu, Mar 6, 2008 at 7:00 PM, Juan Jose Alonso <[EMAIL PROTECTED]> wrote: > > Hi guys, have a problem on my game, here extract a little version of > my game that also have the fps problem. > also i can see the pink tinted, alpha channel of the ,png images about > one second at window startup

Re: FPS mouse movement

2008-03-06 Thread Drew Smathers
On Wed, Mar 5, 2008 at 9:29 PM, Txema Vicente <[EMAIL PROTECTED]> wrote: > > (off-topic, sorry) > > How can I correctly say this spanish literal traduction: > > "Some days experimenting can save you some hours reading the manual." > > I need it for my new tatoo. > > Hahaha ... Well ... In Eng

Re: FPS mouse movement

2008-03-05 Thread Drew Smathers
On Wed, Mar 5, 2008 at 8:26 PM, Txema Vicente <[EMAIL PROTECTED]> wrote: > > How do you prevent the mouse going outside the window when panning a > FPS-style camera? > > Im using the ugly win32api.SetCursorPos, but I hate to import that. I think this is what you need: http://pyglet.org/doc/pr

Re: separation of update and draw

2008-03-05 Thread Drew Smathers
On Wed, Mar 5, 2008 at 11:23 AM, Serg Kovrov <[EMAIL PROTECTED]> wrote: > > Here is my silly particle system code: > > class Sparks: > def __init__(self, pos): > self.pos = pos > self.particles = tuple({ > 'life': 1.0, > 'decay': random.uniform

Re: separation of update and draw

2008-03-05 Thread Drew Smathers
On Wed, Mar 5, 2008 at 12:58 PM, Casey Duncan <[EMAIL PROTECTED]> wrote: > On Wed, Mar 5, 2008 at 8:23 AM, Serg Kovrov <[EMAIL PROTECTED]> wrote: > [..] > > If someone interested I can post complete code, but don't know > > convenient way to publish 10 files (that is the way i organize my > > proj

Re: separation of update and draw

2008-03-05 Thread Drew Smathers
On Wed, Mar 5, 2008 at 11:07 AM, Serg Kovrov <[EMAIL PROTECTED]> wrote: > > Drew Smathers wrote: > > Regarding the performance issues, my first guess is that you have > > update and draw function per particle in the system - because the > > addition of 1 functio

Re: py2app .app size

2008-03-05 Thread Drew Smathers
On Wed, Mar 5, 2008 at 11:34 AM, Nathan <[EMAIL PROTECTED]> wrote: > > On Tue, Mar 4, 2008 at 9:37 PM, Drew Smathers <[EMAIL PROTECTED]> wrote: > > > the .app again. Compare results. Try removing both. Otherwise you > > can ask around here: > >

Re: py2app .app size

2008-03-05 Thread Drew Smathers
On Wed, Mar 5, 2008 at 8:20 AM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > On 3/5/08, Drew Smathers <[EMAIL PROTECTED]> wrote: > > Ahh, yes. You can try solve your problem the good old fashion way. A > > binary search on the symptoms is what I suggest.

Re: separation of update and draw

2008-03-05 Thread Drew Smathers
On Wed, Mar 5, 2008 at 9:29 AM, Serg Kovrov <[EMAIL PROTECTED]> wrote: > > I am very much for the new (1.1) style of main loop. Actually I do a > hybrid way - 'schedule' update routine when there is something to > update, and 'unschedule' when no tasks left to update. > > The only problem is,

Re: py2app .app size

2008-03-04 Thread Drew Smathers
On Tue, Mar 4, 2008 at 7:26 PM, Nick Miller <[EMAIL PROTECTED]> wrote: > > Hello, > > This is my first post to this mailing list but I had a real quick question. > > I found pyglet a few days ago and so far I really like using it. It's > much better than similar libraries I've seen like it. An

Re: EGG files? (general python question)

2008-03-03 Thread Drew Smathers
On Mon, Mar 3, 2008 at 2:36 PM, cladinapathy <[EMAIL PROTECTED]> wrote: > > How do I install egg files? I'm on windows. by the way, when I open up > a console and type "python something.py" it doesn't recognize the > command python. How can I make it recognize the command? Please google easy_i

Re: EGG files? (general python question)

2008-03-03 Thread Drew Smathers
On Mon, Mar 3, 2008 at 2:52 PM, Drew Smathers <[EMAIL PROTECTED]> wrote: > On Mon, Mar 3, 2008 at 2:36 PM, cladinapathy <[EMAIL PROTECTED]> wrote: > > > > How do I install egg files? I'm on windows. by the way, when I open up > > a console and type &quo

Re: Example pyglet code that uses gluSphere and gluCylinder

2008-03-01 Thread Drew Smathers
On Sat, Mar 1, 2008 at 6:48 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Please post your code. > > > > Richard > > Sure thing. The short of it is that I'm doing something like > > sphere = gluNewQuadric() > gluSphere(sphere,10.0,10,10) > > and the code crashes when I do

Re: normal python widgets and pyglet

2008-02-25 Thread Drew Smathers
On Mon, Feb 25, 2008 at 12:34 PM, Peter Wang <[EMAIL PROTECTED]> wrote: > > Hey guys, I just saw this thread. > > Last week I was able to get some basic integration between wxPython > and pyglet - some sample code is attached below. Although this > program runs just fine, my actual usage is m

Re: glShaderSource and ctypes

2008-02-24 Thread Drew Smathers
On Sun, Feb 24, 2008 at 5:26 PM, Drew Smathers <[EMAIL PROTECTED]> wrote: > def _shaderSource(text, shader_type=GL_VERTEX_SHADER): > buff = c.create_string_buffer(text) > c_text = c.cast(c.pointer(c.pointer(buff)), c.POINTER(c.POINTER(GLchar))) > shader = glCreate

Re: glShaderSource and ctypes

2008-02-24 Thread Drew Smathers
On Sun, Feb 24, 2008 at 5:26 PM, Drew Smathers <[EMAIL PROTECTED]> wrote: > > You need to convert the string to the protype C type, like: > Oops :-), s/prot

  1   2   >