Sorry this is old but I didn't realize it was not delivered . ________________________________ From: Chris Morley <chrisinnana...@hotmail.com> Sent: August 4, 2017 12:48 AM To: EMC developers Subject: Re: [Emc-developers] Gladevcp_gtk3 Branche
I found this folder on an old computer. It isn't much but does demonstrate GTK3 openGL with python. run graphics.py - I ran it with wheezy. This was based on a demo I found on the net. IIRC was just trying to get panning/rotation/zoom to work right and added a couple CNC primitives. after that would be connecting it to the linuxcnc python module to gain access to gcode openGL drawing commands. Again IIRC linuxcnc module's can parse the loaded file and convert it to openGL commands then our python program would draw them. Chris M ________________________________ From: Nicklas Karlsson <nicklas.karlsso...@gmail.com> Sent: July 17, 2017 2:28 PM To: EMC developers Subject: Re: [Emc-developers] Gladevcp_gtk3 Branche Figure out where you buried the code and dig it up. I have started to work my way up from the hardware and currently look a little bit on the configuration, it should not be to hard to get useful graphical configuration with gschem and then I will start to look at linuxcnc. 2017-07-17 15:21 GMT+02:00 Chris Morley <chrisinnana...@hotmail.com>: > > I did the work on that branch.Gremlin can not work in gtk3. > > I did some experimental work on a gremlin substitute...it's was too much > work for me to figure out but I could dig up the code when I'm next at > home..in a couple weeks. > I think I got as far as displaying the origin and axis letters , pan as > zoom. > I would love for someone to take this on. > I quit working on the branch because of this hurdle. > > Chris M > > ----- Reply message ----- > From: "Rene Hopf" <reneh...@mac.com> > To: "EMC developers" <emc-developers@lists.sourceforge.net> > Subject: [Emc-developers] Gladevcp_gtk3 Branche > Date: Mon, Jul 17, 2017 5:47 AM > > > > Hi, > Im picking up this issue, because debian stretch was released, and it > includes a up to date version of gtk3, which allows to create a opengl > context. > this example code works on stretch: https://stackoverflow.com/ [https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-i...@2.png?v=73d79a89bded]<https://stackoverflow.com/> Stack Overflow - Where Developers Learn, Share, & Build ...<https://stackoverflow.com/> stackoverflow.com Stack Overflow is the largest, most trusted online community for developers to learn, share their programming knowledge, and build their careers. > questions/42598360/no-glcontext-for-gtkglarea-in-gtk3-python > there is already some work on gtk3: https://github.com/LinuxCNC/ [https://avatars2.githubusercontent.com/u/5650508?v=4&s=280]<https://github.com/LinuxCNC/> LinuxCNC.org · GitHub<https://github.com/LinuxCNC/> github.com LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more. LinuxCNC controls ... > linuxcnc/compare/gladevcp_gtk3 > merging this into master gives a few conflicts, and I cant get it to work. > I would like to port gremlin to gtk3, but I need some place to start, like > a minimalistic gui example that uses gtk3 and imports gremlin. > Norbert mentioned that it would be no problem to port the widgets. > > Rene > > > > On 15. Feb 2016, at 20:02, Rene Hopf <reneh...@mac.com> wrote: > > > >> > >> On 10 Feb 2016, at 06:22, Chris Morley <chrisinnana...@hotmail.com> > wrote: > >> > >> > >> > >>> From: reneh...@mac.com > >>> Date: Tue, 9 Feb 2016 23:59:03 +0100 > >>> To: emc-developers@lists.sourceforge.net > >>> Subject: [Emc-developers] Gladevcp_gtk3 Branche > >>> > >>> Hi, > >>> Norbert asked me to look into porting gremlin to gtk3. He pointed out > that someone already started. Does anyone know what the status is? What > already works and what doesn't? Any issues in particular? > >>> > >>> Rene > >>> > >>> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=shortlog;h=refs/heads/ > gladevcp_gtk3 > >> > >> The opengl libraries used in gremlin have not been ported to gtk3, so > different > >> ones need to be used. > > > > Yes, I did see that. gtkglext seems to be ported to gtk3, but is already > deprecated. https://github.com/tdz/gtkglext [https://avatars2.githubusercontent.com/u/182914?v=4&s=400]<https://github.com/tdz/gtkglext> GitHub - tdz/gtkglext: Port of gtkglext to GTK+ 3<https://github.com/tdz/gtkglext> github.com gdkglext-uninstalled.pc.in Build single library containing all targets. Mar 13, 2012 gdkglext.pc.in Build single library containing all targets. Mar 13, 2012 gtkglext ... > > the proposed method of creating is gtkglarea > https://developer.gnome.org/gtk3/stable/GtkGLArea.html GtkGLArea: GTK+ 3 Reference Manual - developer.gnome.org<https://developer.gnome.org/gtk3/stable/GtkGLArea.html> developer.gnome.org Description. GtkGLArea is a widget that allows drawing with OpenGL. GtkGLArea sets up its own GdkGLContext for the window it creates, and creates a custom GL ... > > but that requires gtk3.16 which does not come with jessie, or wheezy. > > the thing you found hacks directly into X, which is really not a way I > would like to go. > > look at this line: > > xlib = cdll.LoadLibrary('libX11.so') > > I can’t believe there is no sane way of creating an OpenGL context in > gtk. > > > >> > >> The only workable example code I could find was in this : > >> http://www.digitaloctave.com/tags/gtk3.htm Oly's Blog | Oly's Blog<http://www.digitaloctave.com/tags/gtk3.htm> www.digitaloctave.com Personal Blog > >> > >> I have my opengl experimental code on a laptop some where I could dig > up. > >> I didn't push the work because I was not sure if the licence was ok nor > >> whether this code was the way to go. > >> I'm also not an opengl coder, I just hack till things work. > >> > >> As for the rest of the widgets, They are mostly converted to work with > gtk3. > >> In fact the plan was for gladevcp to use either gtk2 or gtk3 depending > on what > >> was available. > >> It still uses the GLADE-gtk2 editor - hopefully no issue to change that. > >> I couldn't get Embedding to work in gtk3, at least in the way it was > coded originally. > >> Themeing doesn't work. > >> > >> Other then that, things are great.... > >> > >> Chris M > >> > >> > >> ------------------------------------------------------------ > ------------------ > >> Site24x7 APM Insight: Get Deep Visibility into Application Performance > >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > >> Monitor end-to-end web transactions and take corrective actions now > >> Troubleshoot faster and improve end-user experience. Signup Now! > >> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > >> _______________________________________________ > >> Emc-developers mailing list > >> Emc-developers@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/emc-developers > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
graphics.tar.gz
Description: graphics.tar.gz
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers