Page 1 of 1

G viewer not showing

Posted: Tue Mar 14, 2023 5:55 pm
by cnc_freak
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.

Re: G viewer not showing

Posted: Tue Mar 14, 2023 9:24 pm
by TomKerekes
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)