Re: [osg-users] Virtual simulation of CNC machine - problem with intersections and setMatrix() probably

2013-10-03 Thread Peter Bako
Hello Alberto. Actually I've found the problem. The reason, why it didn't work, was, that I was changing only the matrix of my camera manipulator. I have to change also the viewMatrix of the camera, not only the manipulator. Now IT WORKS! Thank you! -- Read this topic online her

Re: [osg-users] Virtual simulation of CNC machine - problem with intersections and setMatrix() probably

2013-10-03 Thread Alberto Luaces
"Peter Bako" writes: > Hello again. > > My assumptions were correct: here is a list of points > [...] > > so the intersections are calculated wrong. In the rendering it seems > to be OK, but the real intersection point is got from a different > place. It can be also an input issue. Could you c

Re: [osg-users] Virtual simulation of CNC machine - problem with intersections and setMatrix() probably

2013-10-03 Thread Peter Bako
Hello again. My assumptions were correct: here is a list of points Code: Point: -152.9, 216.3, -21.5 Point: -148.9, 215.4, -21.5 Point: -152.4, 214.6, -21.5 Point: -155.7, 213.7, -21.5 Point: -158.7, 212.8, -21.5 Point: -151.6, 211.9, -21.5 Point: -151.4, 211.0, -21.5 Point: -150.8, 210.2, -21.5

Re: [osg-users] Virtual simulation of CNC machine - problem with intersections and setMatrix() probably

2013-10-03 Thread Peter Bako
Hello Alberto. I will try your suggestion with the intersection points. regarding the framework - I use .NET, Windows forms, WPF, OSG, OpenCascade and some other technologies. The graphic "frame" what you see is created in WPF, the "graphic window of osg is rendered on a windows forms window, w

Re: [osg-users] Virtual simulation of CNC machine - problem with intersections and setMatrix() probably

2013-10-03 Thread Alberto Luaces
"Peter Bako" writes: > Hello guys, > [...] > > I assume that there can be a problem with intersection - is it > possible that I get an intersection from a frame before? I found out > that If I make faster movements, the jumping is bigger. Or can it be > maybe caused by multitreading? I don't kno

[osg-users] Virtual simulation of CNC machine - problem with intersections and setMatrix() probably

2013-10-03 Thread Peter Bako
Hello guys, I am programming a virtual simulation of CNC milling machines. I created a model which contains the kinematics - axes with limits etc. I also implemented a function, which calculates the axis values, so that the tool follows the mouse which points to the surface of the workpiece. Thi