Search found 57 matches

by atoz
22 Sep 2018, 19:59
Forum: Bug reports
Topic: sim.invertMatrix function doesn't seem to be working
Replies: 1
Views: 556

sim.invertMatrix function doesn't seem to be working

Hi, The above mentioned function always gives 1 as a result of an inversion. Even this simple code: print(sim.invertMatrix(sim.buildIdentityMatrix())) gives 1 as the answer although the matrix is invertible. Is this a bug? *EDIT* Just to add to this, the sim.getEulerAnglesFromMatrix() function is al...
by atoz
20 Aug 2018, 14:05
Forum: General questions
Topic: 32-bit binary for latest V-rep
Replies: 1
Views: 404

32-bit binary for latest V-rep

Hi,

Is it possible to get a 32-bit version of the latest version of V-rep? Or a guide to compiling the latest version in 32-bit mode.

Cheers
by atoz
27 Jul 2018, 21:54
Forum: General questions
Topic: Rules regarding callScriptFunction according to script type
Replies: 5
Views: 910

Re: Rules regarding callScriptFunction according to script type

Looks like there is some magic happening in that while loop- I no longer get the error although it still appears when stopping the simulation. This is probably some race condition where the threaded script no longer exists yet the call is being made to the function in the script. For my purpose, I w...
by atoz
26 Jul 2018, 23:06
Forum: General questions
Topic: Camera tracking functionality
Replies: 3
Views: 764

Re: Camera tracking functionality

I'm afraid I'm not able to make sense of that code as it is too advanced. I need a more simple explanation with detail. Can you give a run-down of the algorithm in pseudocode please? Specifically how is orient the camera so that its Z-axis points towards the tracked object this done? Thanks in advance
by atoz
25 Jul 2018, 21:50
Forum: General questions
Topic: Rules regarding callScriptFunction according to script type
Replies: 5
Views: 910

Re: Rules regarding callScriptFunction according to script type

Thank you. You mention that a non-threaded script can call a function in a threaded script. So why does the following cause an error: Threaded script- Dummy: function add(x,y) print("Threaded add: "..x+y) end Non-threaded script (customization/ child)- Dummy0: sim.callScriptFunction('add@Dummy',sim_...
by atoz
24 Jul 2018, 21:57
Forum: General questions
Topic: Rules regarding callScriptFunction according to script type
Replies: 5
Views: 910

Rules regarding callScriptFunction according to script type

Hi, It is not clear from the documentation when the sim.callScriptFunction can be used in each script type to call a function in another script. Can you help clear this up by filling in the following matrix? Caller / Callee | Non-threaded child | Threaded child | Customisation | Main | Non-threaded ...
by atoz
20 Jul 2018, 15:27
Forum: General questions
Topic: Camera tracking functionality
Replies: 3
Views: 764

Camera tracking functionality

Hi, I wonder if you can give some details about how the camera tracking is implemented in the camera properties dialog. I am specifically wondering about how the camera always focuses on the object and stays heads up. I've been reading around about how cameras are implemented and have come across th...
by atoz
15 Feb 2018, 13:38
Forum: General questions
Topic: Legacy OpenGL UI
Replies: 1
Views: 690

Legacy OpenGL UI

Hi, I was wondering if it was ever possible to change the colour on sliders in the old OpenGL UI through the API. I would like to change the colour of the slider at its extremes. I know the UI system has changed to Qt but it doesn't meet my needs yet like the old system (windowless, transparency etc...
by atoz
07 Dec 2017, 13:57
Forum: General questions
Topic: Extending/ replacing Lua in V-rep
Replies: 2
Views: 1054

Re: Extending/ replacing Lua in V-rep

I've also tried the plugin route to create screenshots using the windows API in C++ but this seems to only work in non-fullscreen mode. The code I'm using looks like this: // copy screen to bitmap HDC hScreen = GetDC(NULL); HDC hDC = CreateCompatibleDC(hScreen); HBITMAP hBitmap = CreateCompatibleBit...
by atoz
06 Dec 2017, 17:55
Forum: General questions
Topic: Extending/ replacing Lua in V-rep
Replies: 2
Views: 1054

Extending/ replacing Lua in V-rep

Hi, I'm looking to get a fullscreen screenshot programatically during simulation. To that end, I've found that I need to use WxLua which I've downloaded from here . Now I'm wondering how do I need to arrange the the .dll, .exe & .lua files from the downloaded folder in the V-rep installation folder ...