589,272 active members*
6,741 visitors online*
Register for free
Login
Results 1 to 20 of 20
  1. #1
    Join Date
    Mar 2017
    Posts
    1345

    [TNGv2] - Machine 3D visualization

    Your machine 3D visualization is possible since version 20020-03-24.



    Machine 3D definition is made with 3dObj.txt file. Samples folder contain profile from which image above is taken.
    It is possible to use simple objects like cuboid, cylinder, sphere or STL files.

  2. #2
    Join Date
    Mar 2017
    Posts
    1345

    Re: [TNGv2] - Machine 3D visualization

    I got several question how to make this work.
    Everything is in 3dObj.txt file. This is actually xml file with machine definition. If you copy this file to your profile folder you will see machine like in screenshots above.
    And make sure you have menu option "View/Show/Objects" checked.

    We plan to make better tutorial for this. It is also possible to use stl files of your actual machine.

    Until then, ask questions here and please share, what you learned and made with others.

  3. #3
    Join Date
    May 2008
    Posts
    266

    Re: [TNGv2] - Machine 3D visualization

    I've just tried the sample machine (router) simulation and although I have a lathe, it still delivers a great representation of the movement and relative position of cutter/machine/workpiece. Very useful indeed.

    I could easily create STL files of my machine, but how would I integrate them into the 3dObj.txt file?

    For now I'll play with a copy of the original 3dObj.txt file and see if I can edit out a few irrelevant objects and alter what is left.

    Thanks for this.

  4. #4
    Join Date
    Mar 2017
    Posts
    1345

    Re: [TNGv2] - Machine 3D visualization

    Here is an example for STL files.

  5. #5
    Join Date
    May 2008
    Posts
    266

    Re: [TNGv2] - Machine 3D visualization

    Managed to make some progress with my lathe but I need to experiment more with how to get the saddle & cross slide to stay together as a unit as they move (see second & third pic), as the workpiece is always in the same position relative to the spindle which is a bit different to a milling machine.

    Good fun though!

    Attachment 439348

    Attachment 439350

    Click image for larger version. 

Name:	Lathe3.jpg 
Views:	4 
Size:	24.1 KB 
ID:	439352

  6. #6
    Join Date
    Aug 2011
    Posts
    252

    Re: [TNGv2] - Machine 3D visualization

    Nice feature, but I am dumb and understand nothing just by looking at examples.
    Any chance for a tutorial?

  7. #7
    Join Date
    Jan 2022
    Posts
    107

    Re: [TNGv2] - Machine 3D visualization

    Is there a way to hide/show parts of the 3D Visualization or change their parameters from script?

    Would be nice to show the state of the ATC by hiding the tool in the ATC when it is the current tool and instead show the tool at the spindle location.

  8. #8
    Join Date
    May 2022
    Posts
    3

    Re: [TNGv2] - Machine 3D visualization

    What are you doing to the 3d file to make different parts of the 3d render in PCNC different colors? I can get a .STL to upload in the software where i want it but its all gray. would be cool to change up some of the colors like in the screenshots you posted.

  9. #9
    Join Date
    Jan 2022
    Posts
    107
    just add
    <Color Value="ffffffff"/>
    to the desired part.
    the value is in hex RGBA notation.

  10. #10
    Join Date
    Mar 2017
    Posts
    1345

    Re: [TNGv2] - Machine 3D visualization

    3D visualization is completely redesigned.
    Now all machine types can be visualized in motion.
    https://www.youtube.com/watch?v=sP70xxPt5JU

  11. #11
    Join Date
    Mar 2017
    Posts
    1345

    Re: [TNGv2] - Machine 3D visualization

    Here is another one.
    This one shows rotary 4th axis.
    https://www.youtube.com/watch?v=YOVL2kvD7Ys

  12. #12
    Join Date
    Mar 2017
    Posts
    1345

    Re: [TNGv2] - Machine 3D visualization

    Rotary 5th axis visualization
    https://youtu.be/3c-d-VeyuJY

  13. #13

    Re: [TNGv2] - Machine 3D visualization

    Is there any update for this? I tried copy/pasting the 3dObj.txt file into my Profiles folder and it didn't change anything. Tried pasting it into the Profiles/Default folder and no change either. I then tried the 5AX files as well (with the STL files inside the 3dObj folder and outside it as well.) I changed the filename in the Settings -> 3D -> Model text field as well. Still no go.

    View -> Show -> Objects does not exist. I only see Position, Viewspace, Model and Toolpath History in the View -> Show menu.

    Even a screenshot of the folder/file structure in the Profiles folder and a screenshot of the Settings screen would be helpful.

  14. #14
    Join Date
    Jul 2023
    Posts
    3

    Re: [TNGv2] - Machine 3D visualization

    I would also like to use the machine visualization feature but it doesn't appear to exist in the newest version. When will this be available?

  15. #15
    Join Date
    Jan 2022
    Posts
    107

    Re: [TNGv2] - Machine 3D visualization

    Maybe I can point you into the right direction by sharing my Profile which includes working 3d visualization.

    https://github.com/styletronix/PlanetCNC_CNC1




    That brings me to a question... I have now set the option to show and hide individual objects in the visualization. For example, the Tools in the Tool Changer are now shown and hidden to reflect the actual state. But as mentioned somewhere, it only updates the object visibility if I hide and enable the 3d view.

    A command who can be triggered from expressions or gcode, which refreshes the display would be very helpful.

  16. #16
    Join Date
    Mar 2017
    Posts
    1345

    Re: [TNGv2] - Machine 3D visualization

    You can use expression:
    cmd("View.Show.Model");

    (twice, first time to hide, second time to show).

    I will add optional arguments so that calling command twice will not be necessary.

  17. #17
    Join Date
    Jan 2022
    Posts
    107

    Re: [TNGv2] - Machine 3D visualization

    Ahhh, that sounds really nice. I have implemented it right now. You can give it a try on this link https://github.com/styletronix/PlanetCNC_CNC1

    First do Homing procedure and then you can change the tools and use the "Niederhalter". That's one of the Buttons on the top right. That is so cool. I have many details which I can implement now.

  18. #18
    Join Date
    Mar 2017
    Posts
    1345

    Re: [TNGv2] - Machine 3D visualization

    Here is a tutorial on 3D visualization. This tutorial will be added additional info in the future:

    https://cnc.zone/kb/tutorials/expert...n_tng_software

  19. #19

    Re: [TNGv2] - Machine 3D visualization

    Quote Originally Posted by PlanetCNC View Post
    Here is another one.
    This one shows rotary 4th axis.
    https://www.youtube.com/watch?v=YOVL2kvD7Ys
    Can you share the 4-axis or 5-axis virtual machine model and XML file from the video?

  20. #20
    Join Date
    Mar 2017
    Posts
    1345

    Re: [TNGv2] - Machine 3D visualization


Similar Threads

  1. TNGv2 Machine Limit Reached
    By theRat in forum PlanetCNC
    Replies: 1
    Last Post: 11-17-2019, 05:06 PM
  2. [TNGv2 - API]
    By PlanetCNC in forum PlanetCNC
    Replies: 0
    Last Post: 10-27-2019, 11:23 PM
  3. NX Toolpath Visualization Time Study
    By mongo46538 in forum UG NX
    Replies: 4
    Last Post: 09-09-2009, 03:06 PM
  4. Visualization of 5-axis machining in EMC2
    By samco in forum LinuxCNC (formerly EMC2)
    Replies: 7
    Last Post: 12-21-2007, 02:41 PM
  5. g-code path visualization ...
    By deadalvs in forum European Club House
    Replies: 4
    Last Post: 05-10-2007, 10:43 PM

Tags for this Thread

Posting Permissions

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