Jump to content
UltiMaker Community of 3D Printing Experts

Feature suggestion: Change grid in viewer


cra
 Share

Recommended Posts

Posted · Feature suggestion: Change grid in viewer

I think it could be practical to be able to change the grid on the viewer to match a grid on the actual bed. I am thinking of lining up a grid on my bed to help place parts/apply glue, but the current grid in the viewer is too fine masked. If it was possible to add an image that would be very helpful, or even just being able to adjust the grid distance. 1cm is a bit too fine grained. Perhaps a possibility to make every n-th line a different color/thicher line? Then it would be possible to mark out say a 3cm or 5cm grid on both the screen and the actual bed.

  • Link to post
    Share on other sites

    • 1 year later...
    • 4 months later...
    • 1 year later...
    Posted (edited) · Feature suggestion: Change grid in viewer

    @AraTekne @scon @cra

    Open C:\Program Files\Ultimaker Cura 4.13.1\resources\shaders\grid.shader in a text editor
     

    Line 81			        vec2 minorGrid = abs(fract(coord - 0.5) - 0.5) / fwidth(coord);
    
    Line 87					vec2 majorGrid = abs(fract(coord / 10.0 - 0.5) - 0.5) / fwidth(coord / 10.0);

    In line 81 change the .5

    In line 87 change the first 10.0, and both 0.5


    If anyone can make a Cura Plugin to help do this without editing the files, please contact me
    I also have other ideas for plugins

     

    If I set it to something like...

    10.0, 10.0
    10.0, 0, .5
    The scale is set to 10mm, you can change that to whatever.

    Not sure what that 0 does.
    If you leave the .5 as is, it will offset the first squre to the very middle square to be perfectly center. Set this to 0 if you want that to be offset

    Edited by Kingsidorak
  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    • Our picks

      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 14 replies
    ×
    ×
    • Create New...