MSPhysics 1.0.3 (16 October 2017)

Re: MSPhysics 0.9.9 (22 December 2016)

Postby robint » Sat Jan 07, 2017 9:38 am

Hi PP
changed the angle so its a cannon 0 - 80deg azimuth control
just gets better :D
1
As one door closes another one slams in your face
User avatar
robint 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby INVR » Thu Jan 12, 2017 1:31 am

I have a little issue where sometimes when I run the sim (simple hinges) it starts scanning and objects seem to disappear. I can control the camera and see them or half of the object. But it gets worse and worst until I have to reset it. Is there any steps I can take to fix this?
0

INVR 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby Anton_S » Thu Jan 12, 2017 9:25 pm

INVR, camera clipping is very like caused by some objects falling down too far away from camera. To fix this, find the objects that fall down non stop and draw a floor below them or set them to ignore if they are not necessary for the simulation. These objects could be hidden groups or hidden layers. So uif you unhinde everything, and run simulation, you should be able to notice which objects do that.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby faust07 » Sat Jan 14, 2017 1:43 pm

Testing "export replay to images" in SketchUp 2017.
The result is incomplete images with always the same empty white parts..
The same happens when using the following line in a MSPhysics script:
Code: Select all
Sketchup.active_model.active_view.write_image("e:/MSPh_Temp/frame_%06d.png" % frame,1600,900,true,1.0)

How should it be right for SUp 2017?
0

faust07 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby faust07 » Wed Jan 18, 2017 6:47 pm

Hi, Anton. Here I have yet an other question:
It would be great if, for example, there would be a mode for the servos to hold the joint exactly at the center of rotation and completely prevent the centrifugal forces and the pulling out of the components involved.
In the enclosed example, I have not found any way to keep the outer sections of the wings exactly at the center of rotation of the servos. There always develops a gap between the parts.
Have screwed at all settings and nothing was useful.
It seems to be a kind of inertia of the outer wing segments, which can not be stopped by reducing weight, gravitation, friction, etc.
1

faust07 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby luckyvac » Wed Jan 25, 2017 4:46 pm

Hi Anton, is it possible to control the movement of a servo motor with a function of time. An Excel file ? In the command section can replace the slider by a function of time ( ontick ? ). ... thank you very match.
1
User avatar
luckyvac 
Premium Member
Premium Member
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby Anton_S » Thu Jan 26, 2017 6:04 am

Yes, luckyvac, it is possible to control servo angle through a function of time. There are lots of ways it can be done. One way is to simply write a function into the controller section of the the servo. Say, you want to control the angle of the servo, in degrees, with a function f(t) = t*3 + 150.
Converting it to ruby and MSPhysics, the code would like like this: world.time * 3 + 150. If you paste this snippet into the controller section of a servo, it will have the servo angle be the value of this function at simulation time, t.
1

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby luckyvac » Fri Jan 27, 2017 9:51 am

Hello Anton,

Thank you for your reply. I will need more knowledge to carry out my project.

I am guitarist and I teach guitar accompanying songs.
This project aims to realize a tutorial to learn how to play the accompanying guitar and to show that one can realize accompaniments guitar with 5 or 6 rhythmic figures.

http://www.luckyanimationspectacle.com/index.asp?pageid=33

I used MSPhysics to simulate the movement of the arm and hand of a guitarist holding a pick.
  He accompanies guitar with a song following the rhythm 1-2-345et.
Fig.01 As an attachment. pierrot robo guitar

I used 2 servomotors:
- one for the forearm which operates the up and down of the forearm.
- a second for the descent of the hand.
I made a stop-motion video by adjusting the two actuators point by point according to the following diagram:
Fig.02 As an attachment 1-2-345et

I would like to replace the slider by time functions, point by point (FIG. 2) or FFT.

The displacement coordinates of the servomotors are shown in the table in figure 02.
You will find the simulation with the <FOREARM> (avant bras ) and <HAND> (main ) slider in my drive and an example video. I chose the refrain of Bob Dylan's "blowin in the wind".
Here is the link :
https://drive.google.com/open?id=0B00m7nJr8D_qTnRXX3AyeWVyZmc
The video tutorial shows the synchronized movement with a rhythmic tablature made with Guitar Pro MIDI (*.gpx, *.mid ). There is no human, just my voice ;-).

  I thank you for your attention and information you can communicate to me to help me realize my project.

  Best regards

jean-luc alias luckyvac... lucky guitaR
0
User avatar
luckyvac 
Premium Member
Premium Member
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby TheSniper » Wed Feb 01, 2017 4:17 pm

Anton Awesome Plugin Thanks for the hard work!
I add And not to complain but hopefully to help.
Platform: Sketchup 2017 on Mac 64 bit
Known issues: 1 setting dont get saved in multiple areas for instance in the Joint and Piston Settings: Max and Min wont save always defaults back to -393.7007874, as well as the controller line resets back to default values. Controller name wont transfer over either. In the Servo panel: cannot save custom servo names, Plus Servo Max and MIn wont save either. Just some examples. Hope it helps. -S
1

TheSniper 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby SynSuka3D » Thu Feb 09, 2017 1:23 am

Hello
Problem of direction axes
Xbox Controller

Joystick (: righty) is X-XAXIS position on right stick.???
Joystick (: rightx) is axes button LT.????
No axes Y-XAXIS right stick.???

please.
0

SynSuka3D 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby Anton_S » Sat Feb 11, 2017 11:01 am

@luckyvac My appologies for not responding any sooner. I am a bit busy. In short, it's possible to have the servo angle correspond to the table values at time t. The table with angles and times must be converted to a Ruby Hash and then the rest is easy. I will examine your model in depth soon and we'll see what can be done to get the guitar stringing.


@TheSniper Apparently there were a few reports about the dialog options not working properly on Mac OS X and that's not good. I will check it out soon.


@SynSuka3D The joystick function accepts four symbols and each of them correspond to an axis on one of the joysticks:
joystick(:leftx) returns X position on left stick.
joystick(:lefty) returns Y position on left stick.
joystick(:rightx) returns X position on right stick.
joystick(:righty) returns Y position on right stick.

The position ranges from -1.0 to 1.0.

Here is the documentation link to the function: http://www.rubydoc.info/github/AntonSyn ... nce_method

I suggest you explore the MSPhysics scripting documentation for specs and other functions that might be useful, such as joybutton(button).
1
Last edited by Anton_S on Sat Feb 11, 2017 11:42 pm, edited 2 times in total.

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby luckyvac » Sat Feb 11, 2017 2:15 pm

Great thanks Anton, I wait peacefully while working on other rhythm guitar. :-)
0
User avatar
luckyvac 
Premium Member
Premium Member
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby luckyvac » Sat Feb 11, 2017 11:24 pm

Hello, I would like to know how to increase the damping of the servo motor. Thank you :-)
0
User avatar
luckyvac 
Premium Member
Premium Member
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby Anton_S » Sat Feb 11, 2017 11:41 pm

Hi, Luckyvac,

Which of the joints are you referring to, a servo or a motor?

To increase the damping of a motor joint, simply select the desired motor joint, open MSPhysics UI, and increase the Damp parameter.

To increase the damping of a servo joint, that is decrease its angular rate, select the desired servo joint, open MSPhysics UI, and decrease the Angular Rate parameter.

Hope this helps,

Anton
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby luckyvac » Sun Feb 12, 2017 7:42 am

Hi Anton,
Thank you for your advice it works ... but ... I send you the left hand of the guitarist named "Pierrot".
I feel that the system comes into resonance when I connect several servo motors to each other.
What do you think ? How to decrease the resonance ?

Merci ;-)

have a nice week end. :thumb:

Lucky guitaR
0
User avatar
luckyvac 
Premium Member
Premium Member
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby SynSuka3D » Sun Feb 12, 2017 4:15 pm

Anton_S wrote:@luckyvac My appologies for not responding any sooner. I am a bit busy. In short, it's possible to have the servo angle correspond to the table values at time t. The table with angles and times must be converted to a Ruby Hash and then the rest is easy. I will examine your model in depth soon and we'll see what can be done to get the guitar stringing.


@TheSniper Apparently there were a few reports about the dialog options not working properly on Mac OS X and that's not good. I will check it out soon.


@SynSuka3D The joystick function accepts four symbols and each of them correspond to an axis on one of the joysticks:
joystick(:leftx) returns X position on left stick.
joystick(:lefty) returns Y position on left stick.
joystick(:rightx) returns X position on right stick.
joystick(:righty) returns Y position on right stick.

The position ranges from -1.0 to 1.0.

Here is the documentation link to the function: http://www.rubydoc.info/github/AntonSyn ... nce_method

I suggest you explore the MSPhysics scripting documentation for specs and other functions that might be useful, such as joybutton(button).



https://youtu.be/b0YBVqUhMdU xbox controller faill script ?
0
Last edited by SynSuka3D on Sun Feb 12, 2017 11:04 pm, edited 1 time in total.

SynSuka3D 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby Anton_S » Sun Feb 12, 2017 10:35 pm

@SynSuka3D Interesting, I will fix this.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby SynSuka3D » Sun Feb 12, 2017 11:14 pm

Add joystick(:rightz) and joystick(:leftz) for joy(RT) and joy(LT) please.
for xbox controler.
0

SynSuka3D 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby Anton_S » Mon Feb 13, 2017 12:32 am

SynSuka3D wrote:Add joystick(:rightz) and joystick(:leftz) for joy(RT) and joy(LT) please.
for xbox controler.

Roger that!
1

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby Anton_S » Mon Feb 13, 2017 7:58 am

Hi, SynSuka3D,

I fixed it and added rightz/leftx commands.
You can download the WIP version here: https://drive.google.com/open?id=0B3qg8 ... XNiWjQ0Vzg

You can try out the joystick controller test model attached below.

Best regards,
Anton
1

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby faust07 » Mon Feb 13, 2017 2:50 pm

Should make my question more precise:
The reason for the loose behaviour of the joints is the update rate in MSPhysics UI - Simulation - Update Rate = 1 (seems the best for my large model).
If I change this from 1 to 3, the servos remain more stable in the pivot but the spring no longer brings the steady up and down movement.
Have now tried to modify all settings at the Spring Joint, but do not get the desired result.
What can I do?
Thank you in advance, Anton!
0

faust07 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby luckyvac » Mon Feb 13, 2017 4:24 pm

Hi Anton and the community,
I think I have found the solution to control the damping of the servo motor. I worked on the geometry of "green" parts to decrease the sensitivity to the vibratory modes. As we can do in reality.
It's impressive !
:o
Best regards. :D
luckyvac
0
User avatar
luckyvac 
Premium Member
Premium Member
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby faust07 » Mon Feb 13, 2017 4:50 pm

Unfortunately, changing the Update Rate from 1 to 3 is not useful when camera, joints, emitter, etc. are based on scripts that use the OnUpdate function. Programmed objects become 3 times faster. The appearance of emitted objects no longer fits to the image rate. The weight of the emitted objects or the lifetime seems to change.
For the joints based on pivot points, an option independent of the Update Rate in the user interface seems to be useful for fixing at the pivot point. If this is possible...
0

faust07 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby luckyvac » Mon Feb 13, 2017 11:43 pm

HI,

Here is the robot hand with 22 servo.

Best regards

luckyvac
0
Last edited by luckyvac on Thu Feb 16, 2017 3:57 pm, edited 1 time in total.
User avatar
luckyvac 
Premium Member
Premium Member
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby SynSuka3D » Tue Feb 14, 2017 12:11 am

@Anton_S goood xbox controller Merci!
0

SynSuka3D 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby SynSuka3D » Tue Feb 14, 2017 12:28 am

@Anton_S
@body.set_omega([Internal body axis , 0, axes in global space]) ???


ex:
onStart{
@body = simulation.find_body_by_name('body')
}

onUpdate{
r_body = @body.get_matrix

ax = Geom::Vector3d.new([key('up'), 0, 0]).transform(r_body)

@body.set_omega([ax.x, 0, key('right')])
}
0

SynSuka3D 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby TheSniper » Tue Feb 14, 2017 12:46 am

Platform: Sketchup 2017 on Mac 64 bit

Anton,
Got the update, (Thank you) I have not gone thru all the settings as of yet. But so far it appears to working as expected. Ill let you know as soon as I can get thru all the settings THANKS! -S
1

TheSniper 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby SynSuka3D » Tue Feb 14, 2017 1:26 am

my project




1
Last edited by SynSuka3D on Tue Feb 14, 2017 8:44 am, edited 2 times in total.

SynSuka3D 
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby Anton_S » Tue Feb 14, 2017 4:42 am

SynSuka3d, like I said, you should reference the scripting documentation to see what each function does: http://www.rubydoc.info/github/AntonSyn ... nce_method
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.9 (22 December 2016)

Postby faust07 » Tue Feb 14, 2017 5:46 pm

A little question regarding Export Replay to SkIndigo: The batch rendering doesn't save the frames complete rendered after the set Halt time but at the point of the last image update during the render process. This point can be minutes before the desired render time per frame. Is it an exporter question or should I ask in the Indigo forum?
0

faust07 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: AlexRK, bonyaher, cookc, hrlinke1, lucienlucienlucien, uratooth, vim and 22 guests

Visit our sponsors: