Thursday, October 7, 2010
Milling Machine Simulator
I've been working on the simulator for a few months now. As it name suggests, this program is a milling machine simulator. It reads the standard CNC G-code command files and translates them into raw animation sequence in 3D XYZ space. Rotation is not supported yet. The simulator also supports standard STL mesh format for reading and writing 3D mesh data.
It is implemented in Win32 using C++ and OpenGL with Shaders. Although I really wish I used QT4.0 for interface development (Win32 is such a pain).
Future Plans:
I am planning to completely rewrite the NC file parser using C# regular expressions. I am also planning to update the collision detection module and implement constructive solid geometry (CSG) for real-time mesh deformation.
Subscribe to:
Post Comments (Atom)
Hey...
ReplyDeleteI'm interested in knowing how you are developing your CNC Milling Simulator. Can you share the source code with me?
Hey Rahul,
ReplyDeleteI am using raw Win32 API coupled with OpenGL (basic shaders). The CNC file parser is written from scratch using primitive C/C++ file I/O routines. Unfortunately due to NDA restrictions I can't share the source code.
-Fakhir