From deepankar.sharma at gmail.com Sat Dec 15 19:19:44 2007 From: deepankar.sharma at gmail.com (Deepankar Sharma) Date: Sat, 15 Dec 2007 14:19:44 -0500 Subject: [cl-opengl-devel] Problem building cl-opengl Message-ID: I was recently trying to build cl-opengl on sbcl 1.0.12 / ubuntu amd64. I am using the trunk version of cffi - and some errors pop up while installing cl-opengl. 1) In the file gl/types.lisp - the translate-p keywords for defctype do not seem to be supported anymore in cffi. 2) In the file funcs.lisp cffi::lisp-function-name is used. This is not an available function anymore. Can you please fix this. Another related question is - should i be using the cffi 0.9.2 available on the cffi website ? Regards, Deepankar -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikael.lax at bredband.net Sun Dec 16 01:35:38 2007 From: mikael.lax at bredband.net (Mikael Lax) Date: Sun, 16 Dec 2007 02:35:38 +0100 Subject: [cl-opengl-devel] Problem building cl-opengl In-Reply-To: References: Message-ID: <20071216023538.c665a5b0.mikael.lax@bredband.net> On Sat, 15 Dec 2007 14:19:44 -0500 "Deepankar Sharma" wrote: > I was recently trying to build cl-opengl on sbcl 1.0.12 / ubuntu amd64. I am > using the trunk version of cffi - and some errors pop up while installing > cl-opengl. > > 1) In the file gl/types.lisp - the translate-p keywords for defctype do not > seem to be supported anymore in cffi. > 2) In the file funcs.lisp cffi::lisp-function-name is used. This is not an > available function anymore. Can you please fix this. Hi, it sounds like you're using cl-opengl "classic". Try getting cl-opengl-thomas from darcs at http://common-lisp.net/~loliveira/darcs/cl-opengl-thomas > Another related question is - should i be using the cffi 0.9.2 available on > the cffi website ? Personally I'm using the version from darcs without problems, but I dunno about the differences between that and the official download. Sincerely, Mikael Lax From deepankar.sharma at gmail.com Sun Dec 16 20:32:34 2007 From: deepankar.sharma at gmail.com (Deepankar Sharma) Date: Sun, 16 Dec 2007 15:32:34 -0500 Subject: [cl-opengl-devel] Re: cl-opengl-devel Digest, Vol 19, Issue 1 In-Reply-To: <20071216170105.9B52A2F06B@common-lisp.net> References: <20071216170105.9B52A2F06B@common-lisp.net> Message-ID: Hello Mikael, Thanks for the pointers. I will try installing cffi and cl-opengl both from darcs. Is there any reason why the darcs version isnt moved into the official cl-opengl darcs repository ? Regards, Deepankar On Dec 16, 2007 12:01 PM, wrote: > Send cl-opengl-devel mailing list submissions to > cl-opengl-devel at common-lisp.net > > To subscribe or unsubscribe via the World Wide Web, visit > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel > or, via email, send a message with subject or body 'help' to > cl-opengl-devel-request at common-lisp.net > > You can reach the person managing the list at > cl-opengl-devel-owner at common-lisp.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of cl-opengl-devel digest..." > > > Today's Topics: > > 1. Problem building cl-opengl (Deepankar Sharma) > 2. Re: Problem building cl-opengl (Mikael Lax) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 15 Dec 2007 14:19:44 -0500 > From: "Deepankar Sharma" > Subject: [cl-opengl-devel] Problem building cl-opengl > To: cl-opengl-devel at common-lisp.net > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > I was recently trying to build cl-opengl on sbcl 1.0.12 / ubuntu amd64. I > am > using the trunk version of cffi - and some errors pop up while installing > cl-opengl. > > 1) In the file gl/types.lisp - the translate-p keywords for defctype do > not > seem to be supported anymore in cffi. > 2) In the file funcs.lisp cffi::lisp-function-name is used. This is not an > available function anymore. Can you please fix this. > > Another related question is - should i be using the cffi 0.9.2 available > on > the cffi website ? > > Regards, > Deepankar > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://common-lisp.net/pipermail/cl-opengl-devel/attachments/20071215/c3ffa0d9/attachment.html > > ------------------------------ > > Message: 2 > Date: Sun, 16 Dec 2007 02:35:38 +0100 > From: Mikael Lax > Subject: Re: [cl-opengl-devel] Problem building cl-opengl > To: cl-opengl-devel at common-lisp.net > Message-ID: <20071216023538.c665a5b0.mikael.lax at bredband.net> > Content-Type: text/plain; charset=US-ASCII > > On Sat, 15 Dec 2007 14:19:44 -0500 > "Deepankar Sharma" wrote: > > > I was recently trying to build cl-opengl on sbcl 1.0.12 / ubuntu amd64. > I am > > using the trunk version of cffi - and some errors pop up while > installing > > cl-opengl. > > > > 1) In the file gl/types.lisp - the translate-p keywords for defctype do > not > > seem to be supported anymore in cffi. > > 2) In the file funcs.lisp cffi::lisp-function-name is used. This is not > an > > available function anymore. Can you please fix this. > > Hi, it sounds like you're using cl-opengl "classic". Try getting > cl-opengl-thomas from darcs at > http://common-lisp.net/~loliveira/darcs/cl-opengl-thomas > > > Another related question is - should i be using the cffi 0.9.2 available > on > > the cffi website ? > > Personally I'm using the version from darcs without problems, but I dunno > about the differences between that and the official download. > > Sincerely, > Mikael Lax > > > ------------------------------ > > _______________________________________________ > cl-opengl-devel mailing list > cl-opengl-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel > > > End of cl-opengl-devel Digest, Vol 19, Issue 1 > ********************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikael.lax at bredband.net Mon Dec 17 02:26:53 2007 From: mikael.lax at bredband.net (Mikael Lax) Date: Mon, 17 Dec 2007 03:26:53 +0100 Subject: [cl-opengl-devel] Re: cl-opengl-devel Digest, Vol 19, Issue 1 In-Reply-To: References: <20071216170105.9B52A2F06B@common-lisp.net> Message-ID: <20071217032653.08f31fc9.mikael.lax@bredband.net> On Sun, 16 Dec 2007 15:32:34 -0500 "Deepankar Sharma" wrote: > Is there any reason why the darcs version isnt moved into the > official cl-opengl darcs repository ? No technical reason as far as I know, just lack of time on the part of developers and maintainers. Sincerely, Mikael Lax From deepankar.sharma at gmail.com Wed Dec 19 04:46:21 2007 From: deepankar.sharma at gmail.com (Deepankar Sharma) Date: Tue, 18 Dec 2007 23:46:21 -0500 Subject: [cl-opengl-devel] disable glut main loop Message-ID: I am writing a simple game using cl-opengl (a pacman clone) and would like to have my game event loop call the rendering loop. I know freeglut enables a notion like this with glutMainLoopEvent. Is there any way to do the equivalent in cl-opengl ? I did run across the special variable *run-main-loop-after-display* - but it doesnt seem to take any effect. setting this variable to nil still causes the quad in render-to-texture to rotate - am i missing something ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From luismbo at gmail.com Wed Dec 19 07:14:35 2007 From: luismbo at gmail.com (=?ISO-8859-1?Q?Lu=EDs_Oliveira?=) Date: Wed, 19 Dec 2007 07:14:35 +0000 Subject: [cl-opengl-devel] disable glut main loop In-Reply-To: References: Message-ID: <391f79580712182314p64150124pb0d47bc4df5eb43@mail.gmail.com> On 19/12/2007, Deepankar Sharma wrote: > I did run across the special variable > *run-main-loop-after-display* - but it doesnt seem to take any effect. > setting this variable to nil still causes the quad in render-to-texture to > rotate - am i missing something ? (let ((glut:*run-main-loop-after-display* nil)) (cl-glut-examples:gears)) This works for me. Can you try that? -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Wed Dec 19 12:59:47 2007 From: luismbo at gmail.com (=?ISO-8859-1?Q?Lu=EDs_Oliveira?=) Date: Wed, 19 Dec 2007 12:59:47 +0000 Subject: [cl-opengl-devel] Fun GPLed Common Lisp OpenGL Molecule Viewer In-Reply-To: <20070904234009.GA13881@hcsw.org> References: <20070904234009.GA13881@hcsw.org> Message-ID: <391f79580712190459j5b4a4efcj54a559f20450f5fc@mail.gmail.com> Hello Doug, Sorry for the very late reply. On 04/09/2007, doug at hcsw.org wrote: > I was wondering if anyone can confirm this works > for them on whatever environments or has any other > comments. Also, cl-opengl-devel: feel free to > include it as an example with the bindings if you > feel it will help anyone! Works for me with SBCL/1.0.12 running on OSX/ppc. I only had to make a minor adjustment due to a minor incompatibility between current cl-opengl and the cl-opengl-thomas branch I'm using. The first comment that pops to my mind is: finally, a cl-opengl program that is actually useful. (I have only done redbook examples and a silly game so far. :-)) I've added your program to the examples directory. We probably should give it some sort of licence. Is BSD (the same as the rest of cl-opengl) OK with you? > The random walk framerate testing mode is neat. > The code is also good for getting an intuitive > feeling for how GL lighting works as well as a good > example of using rotation matrices in CL > (gl:with-pushed-matrix is brilliant). Yeah, with-pushed-matrix is such a trivial abstraction/utility yet works so nicely. -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Wed Dec 19 13:01:48 2007 From: luismbo at gmail.com (Luis Oliveira) Date: Wed, 19 Dec 2007 13:01:48 +0000 Subject: [cl-opengl-devel] Re: glut on macosx and shader References: <1186180743.5090.1203661115@webmail.messagingengine.com> Message-ID: Hello Oyuki, Sorry for the late reply. "oyuki" writes: > i want to know why is not working glut on macosx ... is there any way to > fix this? You need X11.app installed an running. Can you give us more details on what fails? An error message perhaps? -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Wed Dec 19 13:04:33 2007 From: luismbo at gmail.com (Luis Oliveira) Date: Wed, 19 Dec 2007 13:04:33 +0000 Subject: [cl-opengl-devel] Re: Patch for some shader/object queries. References: <20070912164530.b36cf8f9.mikael.lax@bredband.net> Message-ID: Hello Mikael, Mikael Lax writes: > I've implemented some of the functions in section 6.1.14 Shader and > Program Queries. This also led to the FIXMEs in get-active-attrib and > get-active-uniform being fixed (they relied on fixed buffer-sizes > which are now queried). Sorry for the late reply. I've applied the patch to the cl-opengl-thomas branch. -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Wed Dec 19 13:05:00 2007 From: luismbo at gmail.com (Luis Oliveira) Date: Wed, 19 Dec 2007 13:05:00 +0000 Subject: [cl-opengl-devel] Re: Patch for texture coord generation. References: <20070925154400.f3d5c432.mikael.lax@bredband.net> Message-ID: Mikael Lax writes: > I've made a small patch to implement tex-gen (see 2.11.4). I had use > of it the other day and I saw it was missing. Applied, thanks. -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Wed Dec 19 13:05:36 2007 From: luismbo at gmail.com (Luis Oliveira) Date: Wed, 19 Dec 2007 13:05:36 +0000 Subject: [cl-opengl-devel] Re: Patch for faster texture uploads References: <77cb99c00710062129r13904b9ag4cb2f833bee80d73@mail.gmail.com> Message-ID: Hello Bart, Sorry for the late reply. "Bart Botta" <00003b at gmail.com> writes: > gl:tex-image-2d seems a bit slow (~23 sec for a 1k by 1k texture on > SBCL 1.0.2 win32), attached patch speeds it up ~100x (to ~0.25 sec). Cool. Applied, thanks. -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Wed Dec 19 13:15:03 2007 From: luismbo at gmail.com (Luis Oliveira) Date: Wed, 19 Dec 2007 13:15:03 +0000 Subject: [cl-opengl-devel] Re: RFC: Merging thomas branch into main References: <6e831e4e0706260759k6c22e8e9n86260f74aa97da72@mail.gmail.com> Message-ID: Hello Charlie, "Charlie McMackin" writes: > Since Lu?s hinted in a previous message to the list that consensus > need be sought on whether or not to merge cl-opengl-thomas in to the > main tree, I thought I would get the ball rolling for when he is free > to do so (or not as the case may warrant). Thanks for sending this message! > I offer these points as pro-merge: > > - With CFFI-new-types merged into CFFI-main, the main cl-opengl repo > probably won't compile for anyone starting out using 'darcs get' or > (require :cl-opengl) and will break for anyone using 'darcs pull' Not a particularly pro-merge point, it just means the main branch has suffered some bitrot, because... > - Most recent patches have been requested to patch against the thomas > branch ... most people seem to be having success with the thomas branch and the new functionality therein. > - In it's current state, thomas will break some cl-glut-examples demos Again, bitrot. Just needs to be fixed. Not a big deal. But yeah, I completely agree that cl-opengl-thomas should be merged. It has had a lot of testing. People seem to be using it with no problems, and all development has been taking place there. If Oliver and James don't have any objections, I'll push the cl-opengl-thomas patches over to the main cl-opengl branch soon. Also, you guys that have been sending patches should definitely be added to the cl-opengl group. Send me your c-l.net account names so we can make those requests. Ah, and please let me know if I missed any patch! -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Wed Dec 19 13:03:43 2007 From: luismbo at gmail.com (Luis Oliveira) Date: Wed, 19 Dec 2007 13:03:43 +0000 Subject: [cl-opengl-devel] Re: texture coord array References: <46D965C1.1000008@common-lisp.ru> Message-ID: Hello Dmitri, Dmitri Hrapof writes: > On SBCL 1.0.9 (if it matters) I had to slightly edit > EMIT-GL-ARRAY-BIND-CLAUSE, writing "%gl:tex-coord-pointer" instead of > just "tex-coord-pointer", otherwise it complained at run-time that > "CL-OPENGL::TEX-COORD-POINTER" was undefined. Is this (still) happening in the cl-opengl-thomas branch? If so, can you send a patch? -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From doug at hcsw.org Wed Dec 19 21:52:26 2007 From: doug at hcsw.org (doug at hcsw.org) Date: Wed, 19 Dec 2007 13:52:26 -0800 Subject: [cl-opengl-devel] Fun GPLed Common Lisp OpenGL Molecule Viewer In-Reply-To: <391f79580712190459j5b4a4efcj54a559f20450f5fc@mail.gmail.com> References: <20070904234009.GA13881@hcsw.org> <391f79580712190459j5b4a4efcj54a559f20450f5fc@mail.gmail.com> Message-ID: <20071219215225.GB5176@hcsw.org> On Wed, Dec 19, 2007 at 12:59:47PM +0000 or thereabouts, Lu?s Oliveira wrote: > Works for me with SBCL/1.0.12 running on OSX/ppc. Thanks that is good to hear! > I've added your program to the examples directory. We probably should > give it some sort of licence. Is BSD (the same as the rest of > cl-opengl) OK with you? Sure, that is fine with me. For some reason I thought cl-opengl was GPL. I've updated the header of my copy to put it under BSD: http://hcsw.org/downloads/molview.lisp Best wishes, Doug From charliemac+cl-opengl at gmail.com Wed Dec 19 23:11:40 2007 From: charliemac+cl-opengl at gmail.com (Charlie McMackin) Date: Thu, 20 Dec 2007 08:11:40 +0900 Subject: [cl-opengl-devel] Fun GPLed Common Lisp OpenGL Molecule Viewer In-Reply-To: <20071219215225.GB5176@hcsw.org> References: <20070904234009.GA13881@hcsw.org> <391f79580712190459j5b4a4efcj54a559f20450f5fc@mail.gmail.com> <20071219215225.GB5176@hcsw.org> Message-ID: <6e831e4e0712191511l4862b045i4c899a806cd3abc4@mail.gmail.com> I think if you changed your mouse code a tad it wouldn't cons so much while mousing; (defvar origclick (cons 0 0)) (defvar origrot (cons 0.0 0.0)) (defmethod glut:mouse ((window mol-window) button state x y) (when (eq button :left-button) (when (eq state :down) (setf (car origrot) view-rotx (cdr origrot) view-roty (car origclick) x (cdr origclick) y)))) I didn't test the above code at all but it should work and apologies for any formatting nastiness that gmail might add. Finally, you'll have to change all the cadr references to cdr for all the methods using origclick and origrot Charlie Mac From doug at hcsw.org Fri Dec 21 02:08:57 2007 From: doug at hcsw.org (doug at hcsw.org) Date: Thu, 20 Dec 2007 18:08:57 -0800 Subject: [cl-opengl-devel] Fun GPLed Common Lisp OpenGL Molecule Viewer In-Reply-To: <6e831e4e0712191511l4862b045i4c899a806cd3abc4@mail.gmail.com> References: <20070904234009.GA13881@hcsw.org> <391f79580712190459j5b4a4efcj54a559f20450f5fc@mail.gmail.com> <20071219215225.GB5176@hcsw.org> <6e831e4e0712191511l4862b045i4c899a806cd3abc4@mail.gmail.com> Message-ID: <20071221020857.GA22326@hcsw.org> Hi Charlie, On Thu, Dec 20, 2007 at 08:11:40AM +0900 or thereabouts, Charlie McMackin wrote: > I think if you changed your mouse code a tad it wouldn't cons so much > while mousing; Good point. It would be interesting to see if this optimisation causes improved frame rates. I will put this on my (unfortunately quite lengthy) TODO list. Best, Doug -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: