Maybe this would be something that could work.
http://www.gcad3d.org/
It is openGL and has NC interpreter for generating cad preview of G-Code.
I have not tried it just came across it.
Jim
On 7/17/2017 8:21 AM, Chris Morley wrote:
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/questions/42598360/no-glcontext-for-gtkglarea-in-gtk3-python
there is already some work on gtk3:
https://github.com/LinuxCNC/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
the proposed method of creating is gtkglarea
https://developer.gnome.org/gtk3/stable/GtkGLArea.html
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
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