[TNGv2] - Machine 3D visualization

Results 1 to 18 of 18

Thread: [TNGv2] - Machine 3D visualization

  1. #1
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1293
    Downloads
    0
    Uploads
    0

    Default [TNGv2] - Machine 3D visualization

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

    [TNGv2] - Machine 3D visualization-24-03-2020-14-48-25-jpg

    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.

    Similar Threads:
    Attached Thumbnails Attached Thumbnails [TNGv2] - Machine 3D visualization-19-03-2020-12-33-24-jpg   [TNGv2] - Machine 3D visualization-obj3d-png   [TNGv2] - Machine 3D visualization-24-03-2020-14-48-25-jpg  


  2. #2
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1293
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    May 2008
    Location
    uk
    Posts
    266
    Downloads
    4
    Uploads
    0

    Default 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
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1293
    Downloads
    0
    Uploads
    0

    Default Re: [TNGv2] - Machine 3D visualization

    Here is an example for STL files.

    Attached Files Attached Files


  5. #5
    Member
    Join Date
    May 2008
    Location
    uk
    Posts
    266
    Downloads
    4
    Uploads
    0

    Default 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!

    [TNGv2] - Machine 3D visualization-lathe1-jpg

    [TNGv2] - Machine 3D visualization-lathe2-jpg

    [TNGv2] - Machine 3D visualization-lathe3-jpg



  6. #6
    Member
    Join Date
    Aug 2011
    Location
    Romania
    Posts
    252
    Downloads
    0
    Uploads
    0

    Default 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
    Member awpross's Avatar
    Join Date
    Jan 2022
    Posts
    107
    Downloads
    0
    Uploads
    0

    Default 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
    Member sparkRTR's Avatar
    Join Date
    May 2022
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default 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
    Member awpross's Avatar
    Join Date
    Jan 2022
    Posts
    107
    Downloads
    0
    Uploads
    0

    Default

    just add
    <Color Value="ffffffff"/>
    to the desired part.
    the value is in hex RGBA notation.



  10. #10
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1293
    Downloads
    0
    Uploads
    0

    Default Re: [TNGv2] - Machine 3D visualization

    3D visualization is completely redesigned.
    Now all machine types can be visualized in motion.




  11. #11
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1293
    Downloads
    0
    Uploads
    0

    Default Re: [TNGv2] - Machine 3D visualization

    Here is another one.
    This one shows rotary 4th axis.




  12. #12
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1293
    Downloads
    0
    Uploads
    0

    Default Re: [TNGv2] - Machine 3D visualization

    Rotary 5th axis visualization




  13. #13
    Member jackandcoke's Avatar
    Join Date
    Feb 2019
    Location
    Mumbai
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Jul 2023
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default 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
    Member awpross's Avatar
    Join Date
    Jan 2022
    Posts
    107
    Downloads
    0
    Uploads
    0

    Default 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
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1293
    Downloads
    0
    Uploads
    0

    Default 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
    Member awpross's Avatar
    Join Date
    Jan 2022
    Posts
    107
    Downloads
    0
    Uploads
    0

    Default 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
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1293
    Downloads
    0
    Uploads
    0

    Default 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/advanc...n_tng_software

    Last edited by PlanetCNC; 12-31-2023 at 02:26 AM.


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

[TNGv2] - Machine 3D visualization

[TNGv2] - Machine 3D visualization