G viewer not showing

Moderators: TomKerekes, dynomotion

Post Reply
User avatar
cnc_freak
Posts: 55
Joined: Fri Apr 20, 2018 5:36 am

G viewer not showing

Post by cnc_freak » Tue Mar 14, 2023 5:55 pm

Hello.
Im retrofiting an big flatbed plasma cutting machine, with an efective cutting area 26 x 5 m. When i try to configure the Box size in the G viewer setup, screen i noticed that more than 600 inches in the Y size box it is not showing.
The size i need to put in is 260000m/25.4" = 1023" inches x 5000m/25.4" = 196.8" inches.
Why is this happening?
Regards.

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: G viewer not showing

Post by TomKerekes » Tue Mar 14, 2023 9:24 pm

Hi,

I think you win the prize for the biggest machine :)

This is a bug. The graphics library requires a "Z far clip distance" in order to reduce numerical errors. Basically anything beyond this distance will not be drawn. This was hard coded at 1000 inches. With a perspective angle of 45 degrees something of size ~400 inches must be further than 1000 inches away to be in field of view. Here is a patched version of KMotionCNC.exe for Version 4.35g where the Z far clip distance is 20X the largest dimension of the "Box". Please let us know if you find any issues.

KMotionCNC.exe copy to \KMotion435h\KMotion\Release
OpenglCtl.cpp (source if needed)
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply