simulating a numeric controlled (nc) machine

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
PixelBender
Posts: 7
Joined: Thu Oct 20, 2016 8:30 am

simulating a numeric controlled (nc) machine

Post by PixelBender »

Hi *,

I'm going my first steps in irrlicht after a long break.
My goal that I want to achieve with the irrlicht SDK is to simulate a (strongly simplified) NC machine.
Such a machine consists of its body and two or more axis that are moving according the NC code of the controller.

Broken down to irrlicht this means that I have for instance:

Model1 = machineBody
Model2 = Xaxis
Model3 = Yaxis
...
Modeln = Maxis

So what would be the best way to load the 3D-Models into irrlicht in order to have them independently moveable?
Using irrEdit for preparing an *.irr file in order to load it into my application?
Or simply hardcode as much Models as I need and load the 3D models as let's say *.obj, *.x, *.3ds oder *.dae?
The last approach would be quicker to implement but is not flexible enough when a machine with more or less axis arrives.

Any hints and tipps are welcome!

Greetings,
Markus
CuteAlien
Admin
Posts: 9633
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: simulating a numeric controlled (nc) machine

Post by CuteAlien »

I prefer using my own scene formats in most cases. Because often you need additional information anyway. And Irrlicht comes with an xml-reader (or sometimes I use TinyXML instead as working with DOM needs less code), so creating and reading a simple xml-format done quickly.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply