603,982 active members*
2,657 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > OpenSource Software > blender to gcode :: mGcodeGenerator
Page 1 of 2 12
Results 1 to 20 of 33
  1. #1
    Join Date
    Dec 2009
    Posts
    7

    blender to gcode :: mGcodeGenerator

    hi. I am the author of mGcodeGeneratora
    wiki.linuxcnc.org/cgi-bin/emcinfo.pl?GcodeGenerator
    this is a cam-type program.

    you have any comments or suggestions to the program?
    write it !
    that allowed me to create something more useful.

  2. #2
    Join Date
    Apr 2008
    Posts
    1577
    I don't use Linux, EMC2 or Blender but your project makes me want to try it! Very cool, thanks for sharing.

  3. #3
    Join Date
    Dec 2009
    Posts
    7
    Quote Originally Posted by SBC Cycle View Post
    I don't use Linux, EMC2 or Blender but your project makes me want to try it! Very cool, thanks for sharing.
    I am sorry.
    I did not write anywhere that it is a generator gcoda.
    and from this file, you can move to any machine that reads gcody unnecessary emc.
    what the Linux is it is not required. windows may be.
    I do not have Windows and I do not know where the scripts directory of Blender

    that is required is a blender

  4. #4
    Join Date
    May 2005
    Posts
    1662
    The last time I looked at Blender, maybe 4 years ago (?), it was very difficult to learn. It's also very powerful software. More powerful software than needed for most mechanical parts ? Who do you see as the user for this gcode software ? People wanting to make cnc art pieces might be interested.

    btw: I tried to download but the file was corrupt (empty). It's written in python ?
    Anyone who says "It only goes together one way" has no imagination.

  5. #5
    Join Date
    Dec 2009
    Posts
    7
    Quote Originally Posted by cyclestart View Post
    The last time I looked at Blender, maybe 4 years ago (?), it was very difficult to learn. It's also very powerful software. More powerful software than needed for most mechanical parts ? Who do you see as the user for this gcode software ? People wanting to make cnc art pieces might be interested.

    btw: I tried to download but the file was corrupt (empty). It's written in python ?
    host server is often down try later
    this blender is not a simple application
    but in contrast to the other is open
    I have chosen a blender as a base that it has a lot of importers. dxf, svg, ai, ps, ....
    having with him a little turns out to be pleasant
    who has to use it. hyyy all? those who can not afford or do not want to buy expensive software
    dxf, import into blender, and we have gcode
    yes software, plugin is written in Python

  6. #6
    Join Date
    May 2005
    Posts
    1662
    Open and python.
    Excellent

    Maybe after Christmas I'm back with a photo to show..
    No promises
    Anyone who says "It only goes together one way" has no imagination.

  7. #7
    Join Date
    Feb 2008
    Posts
    12
    hi yoyoek1,

    I have downloaded your script and made some first experiences with. Primarly I was looking for a 3D generator and for this purpose does not work bad.

    Great job!

    Some comments
    - In Windows, there are some type cast warnings, do not appear under linux. Code seems to run correctly.

    - tool length check (not only diameter) could be useful. When going down to 0 level, spinle or tool shaft destroys milled structure

    - parametric size and 0 position do not work on all machines (e.g. some viewers).

    - gcode size is heavily enlarged by the line numbers and the feed rate in front of each code -> slows down my emc2

    So I already modified sligthly your code for my purposes, but I did not really got in depth with the algorithm.

  8. #8
    Join Date
    Dec 2009
    Posts
    7

    Talking

    at last, user

    me by you will send me the modified script and I will marge it with my newest version ?

    about problems under windows. I don't use it and don't have it. sorry
    tool length is good idea. I will have it on mind.

  9. #9
    Join Date
    Feb 2008
    Posts
    12
    Hi yoyoek1

    worked this weekend again on the bake3d part.

    - Corrrected the issue with the missing (int) cast by making a "round" function.

    - modified the layer generation. My linux emc2 machine is a bit slow and while parsing same z height, maximum speed cannot be achieved. Now only first point until last point on z_layer is in workpath, not additional points, where z is smaller, but set to z_layer

    - already in last version: use Feed rate only, when changing, not before each command and different format (no parametric), but could remain as is for emc2

    - added a few comments, what is happening.

    Hope, you can find and merge the differencies. Sent to your mail adresses at wp.com and d3p.pl

  10. #10
    Join Date
    Feb 2008
    Posts
    12
    Hi yoyoek1,

    got a bit deeper into the code.

    - have now realised a primitive tool length check which will now prevent a collision with the shaft or the mill head

    - made some analysis, why somehwen the z_buff is not setup correctly. It always happens when in the grid is aligned with the edge of a triangle/quad. Could not find a workaround up to now. Maybe it is also linked with the fact, that makeZBufferFromObjects internally again sets up its mesh, but I am not shure about this.
    Attached Files Attached Files

  11. #11
    Join Date
    Feb 2010
    Posts
    0
    Very interesting script , bravo! guy's . I am looking forward testing result of both scripts on the cnc at work ,I will probably have questions after testing. I do think Blender could become the best cad (...+cam!!!) in linux... I am surprise of seeing the poor interest of cnc users for what seems to me marvelous free solution!!!! may be they are too busy trying to hack,download,crack,learn window'$ big cad/cam programs....
    Keep up the good work!!!
    Keep us informed please!!!

  12. #12
    Join Date
    Oct 2008
    Posts
    41
    Blender wasn't designed as 3D CAD and missing some basic tools. Like exact dimensions
    for example. It really is 3D modeling tool, not CAD. Salome is more appropriate. But it lacks parametric modeling at current time.

  13. #13
    Join Date
    Feb 2008
    Posts
    12
    worked again on the 3d z_buff.
    Think I could improve behaviour.
    Attached Files Attached Files

  14. #14
    Join Date
    Feb 2010
    Posts
    0
    lezdep , take a look there:
    www.rab3d.com/tutorial_started.html


    .. I did a few test on cnc at work with both script and the cnc/mach3 did what it should , no weird code where add .I`ve only tested 3D .

    I do not write or even understand python script and the cnc world is pretty new to me... just to let you know that I wont be able to help your precious work untill i do my homework and study a bit more. Testing is all i could do ...for now! Maybe you got a link to someplace where I could start learning python and eventualy help! As I am a bit mixed up in my poor knowledge of cnc ,blender terms & function , I just dont want to take your time to teach those to the newbie I am!!! so I will be back when i will be shure
    that I got precise terms for precise questions!!

    Time is precious for everybody .
    Keep it alive!!!

  15. #15
    Join Date
    Feb 2008
    Posts
    12
    the trouble with z_buff is probably not visible on the first look.

    And you will find it only in finer resolution. Compared in attached image is the original toolpath in black and the path of my modified script highlighted with improved behaviour.

    Python itself you will find here.
    http://www.python.org/doc/

    The blender specific parts of the libraries and interfaces, you will find here.
    http://www.blender.org/documentation/249PythonDoc/

    And thanks for your link!
    Attached Thumbnails Attached Thumbnails z_buff_trouble.jpg  

  16. #16
    Join Date
    Feb 2008
    Posts
    12
    yoyoek1 has added multipass option for 2/2.5d operations

    (version 0.1.74 http://wiki.linuxcnc.org/cgi-bin/emc...GcodeGenerator ).

    Simple and nice feature!

  17. #17
    Join Date
    Dec 2009
    Posts
    7

    Smile

    new release 0.1.81
    EMC Documentation Wiki: GcodeGenerator

    problems such as shown in the attached file solved
    plus a little different changes
    Attached Thumbnails Attached Thumbnails z_buff_trouble.jpg  

  18. #18
    Join Date
    Sep 2010
    Posts
    0

    Blender 2.5?

    Yoyoek1, any plans to support Blender 2.5 in the near future?

  19. #19
    Join Date
    Jun 2007
    Posts
    1
    I tryed it in 2.5 all i had to do to get it to work was install python-tk this was on linux
    edit sorry wrong info this machine has 2.49a not 2.5
    Jack

  20. #20
    Join Date
    Jun 2011
    Posts
    22
    Quote Originally Posted by SweetJustice View Post
    Yoyoek1, any plans to support Blender 2.5 in the near future?
    That would be awesome!
    http://www.visnevskis.com/

Page 1 of 2 12

Similar Threads

  1. Poor man's cad (Blender)
    By eternauta3k in forum Uncategorised CAM Discussion
    Replies: 14
    Last Post: 12-11-2009, 02:47 AM
  2. Blender
    By kolias in forum Uncategorised CAD Discussion
    Replies: 0
    Last Post: 09-09-2009, 04:43 AM
  3. Blender 3D CAD, Freeware, Open Source Software
    By der_fisherman in forum Uncategorised CAD Discussion
    Replies: 8
    Last Post: 06-04-2009, 04:58 PM
  4. Blender Text to MeshCAM
    By MetropolisCNC in forum Uncategorised CAM Discussion
    Replies: 4
    Last Post: 05-08-2009, 06:28 PM
  5. Replies: 0
    Last Post: 03-10-2005, 07:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •