Search found 23 matches

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

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: 1408

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: 4024

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: 1942

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: 4024

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@D...
by atoz
24 Jul 2018, 21:57
Forum: General questions
Topic: Rules regarding callScriptFunction according to script type
Replies: 5
Views: 4024

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: 1942

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
07 Dec 2017, 13:57
Forum: General questions
Topic: Extending/ replacing Lua in V-rep
Replies: 2
Views: 2506

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: 2506

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 fol...
by atoz
18 Nov 2017, 17:05
Forum: Bug reports
Topic: Full screen bug
Replies: 1
Views: 2067

Full screen bug

Hi, I think running a simulation in full screen is bugged. After exiting the simulation from full screen using the 'Esc' button, the scene hierarchy window becomes misaligned (cutoff) and makes it difficult to select the scene object required. Current solution: Anything that forces Vrep to redraw sc...