MSPhysics 1.0.3 (16 October 2017)

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby pilou » Tue Aug 02, 2016 2:12 am

I have that in French 2016 Make (Windows 10)
Erreur de chargement du fichier C:/Users/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics/main.rb
Error: #<NoMethodError: undefined method `sdl_used?' for MSPhysics:Module>
C:/Users/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics/main.rb:475:in `<top (required)>'
C:/Program Files/SketchUp/SketchUp_Fr 2016/Tools/extensions.rb:197:in `require'
C:/Program Files/SketchUp/SketchUp_Fr 2016/Tools/extensions.rb:197:in `load'
C:/Users/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics.rb:90:in `register_extension'
C:/Users/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics.rb:90:in `<module:MSPhysics>'
C:/Users/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics.rb:72:in `<top (required)>'


Curious because works fine in French 2015 Make! (Windows 10)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby Anton_S » Tue Aug 02, 2016 9:35 am

TIG, yes, the error occurred while loaded main.rb, which occurs during registration, and I was able to fix it through trial and error.

In case anyone is interested what went wrong, here it is. So, msp_lib.so, the c extension of MSPhysics, is dependent on other dlls, like newton.dll and SDL2.dll. In order to load msp_lib.so it is necessary to first load the required dlls, or specify the path where the dlls are to be found when msp_lib.so is loaded. The ENV['PATH'] variable does just that. It contains a list of paths where the required dlls are to be searched for. Instead of manually loading the required dlls, I append another path to the ENV['PATH'] variable. That way when msp_lib.so is loaded, it knows where to find newton.dll, SDL2.dll, and all the other required dlls, and loads them automatically. Now, here is where to problem came in. The ENV['PATH'] variable accepts paths formatted in Windows-1252 encoding (very similar to ASCII-8BIT encoding). The path I appended was formatted with UTF-8 encoding. It worked without concerns when non-special characters were used; however, as reported, compatibility errors arise when they are used. The fix seemed pretty straightforward, I had to force encode the appended path with ASCII-8BIT encoding. Yet, after that, the path seemed invalid; A different error displayed, saying, "The specified module could not be found," meaning the required dlls could not be found, which indicated that the appended path was corrupted. So, I tried encoding it with Windows-1252, just to see if it it will fix the error, however the path still remained invalid. The only thing that fixed it was unpacking from Unicode and repacking to Chars: path.unpack('U*').pack('C*'), which is by default encoded to ASCII-8BIT. I don't know if this is a universal fix, but it does fix the Encoding::CompatibilityError on an account named, Användaren. What's strange is that force_encoding('ASCII-8BIT') improperly converts from UTF-8 to ASCII-8BIT. Whereas ideally, it should do the same thing as the unpack(U*').pack('C*') does. Anyway, glad that didn't took forever to fix.

I will upload it soon. Once again thanks for reporting.

Anton
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby Anton_S » Wed Aug 03, 2016 2:39 am

Micceo, it's fixed now. Update to 0.9.3.

Faust, I fixed the crash that would occur when loading large replay files.

Anton
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby faust07 » Wed Aug 03, 2016 5:33 pm

Anton, saving and loading large simulations works great now! Thank you so much!
I've illustrated the Truster problem on start of a simulation with little GIF-films in the post "MSPhysics tests and questions" ...
0

faust07 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby ITman496 » Sun Aug 07, 2016 4:58 am

This is amazing! Using it to design all sorts of mechanical systems for things I make!

Question, though. I've messed around with the corkscrew and the curvy joints.. Is there an elegant way to simulate a threaded rod actuating a nut? Such as a lead screw? A constraint where you set the ratio of rotations to a certain unit of distance, so that if I have a gear assembly turning a bolt, it can crank a threaded rod that is linked to a piston constraint back and forth? Or vice versa? That appears to be the only thing I can't figure out how to do, other then that, this is the best plugin I've ever downloaded. Nice nice work!

EDIT: after talking to the author!

Simply link a joint to another joint and it is very self explanatory after that!
0

ITman496 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby MALAISE » Fri Aug 19, 2016 6:08 pm

Hello Guys

Does someone try to export some animation in png files, to merge them into an avi file (Makeavi) ?
When starting the MSPhysics, animating the SKP file then using MSPhysics export to pictures, only the 60 first are generated.

I followed step by step explanations but unsuccessfull, just an "fixed movie" AVI file is made...

Any help appreciated.

Pierre
0
La Connaissance n'a de valeur que partagée
User avatar
MALAISE 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby faust07 » Sat Aug 20, 2016 7:20 pm

@ Malaise: there is an object (with the name "echantillon") in your model on z = -5580 m. It is connected to a slider. In my tests it courses the model running out of the viewport. It could be the reason for the export problem.
0

faust07 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby MALAISE » Sun Aug 21, 2016 5:22 pm

Hi Faust07

I effectively saw some strange behavior without finding the origine. Many thanks
having answered. For your, It's a part of an Diffractometer linked with automation process. (Echantillon means sample)

Cheers.

Pierre
0
La Connaissance n'a de valeur que partagée
User avatar
MALAISE 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby MALAISE » Sun Aug 21, 2016 6:24 pm

Hallo Guys

Good to know ( on SketchUp2015 or 2016 /windows 32 bit), It seems that only the 60 first
pictures are exported. Perhaps, it's matter of Windows Version.

Pierre
0
La Connaissance n'a de valeur que partagée
User avatar
MALAISE 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby faust07 » Mon Aug 22, 2016 5:50 pm

Here the little corrected model. Works flawlessly. The original animation comprises approximately 950 individual images.
0

faust07 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby SynSuka3D » Sat Sep 03, 2016 7:39 pm

fr: je voudrais faire pivoté un solide dans un groupe please !
eng: I would like to rotate a body found in a compossent !!
0

SynSuka3D 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby Anton_S » Sun Sep 04, 2016 3:33 am

You can't rotate body inside components. You can however make the body to rotate with respect to the parent component using joints. This can be done by creating s joint inside s component. Then use the joint connection tool to connect the parent component to the other components.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby SynSuka3D » Sun Sep 04, 2016 3:26 pm

thanks Anton_S. I would like to select a body which is in a group !!
and implement action (rotated, hide, change color ....)
0

SynSuka3D 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby Anton_S » Mon Sep 05, 2016 2:19 am

You can do this with MSPhysics but fredoa animation tool would be a lot more suitable for your purpose.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby SynSuka3D » Tue Sep 06, 2016 1:43 pm

I did it! Here is my model

2

SynSuka3D 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby bambutec » Fri Sep 09, 2016 4:14 am

Hey Guys,

just dowloaded MSPhysics. Using a model like ray_test_0.9.skp , for me any change of properties like friction coefficients resp. change of materials do not reflect in how body´s behave. What could be the reason ?

My platform is a mac on OS X 10.11.4 with SketchUp Pro 2016 16.0.19913.

My intend is to simulate slide configurations and other attractions in Play and Leisure applications. Close to reality behavior is essential.

Would be so great if this works, it is very promising !!

Regards

Uli
0

bambutec 
 

How can I install MSPhysics in Mac OS X?

Postby realkim0123 » Sat Sep 10, 2016 7:36 am

There is the only install program for Window environments.
How can I install MSPhysics in Mac OS X?
0

realkim0123 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby cristyan » Sat Sep 10, 2016 10:52 pm

Hello !! Can someone tell me if an object can change his density if touched by another object ?? as in this file from metal to wood and from wood to metal ..
0

cristyan 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby andreyshell » Sun Sep 11, 2016 5:37 am

Hi Anton!
Thank you for your work! It helps me start doing things, I never did before!

Testing plugin I repeat chain, like this one.
https://youtu.be/AewFaqurPgc
I know, it's a SkethcyPhisics, I follow an approach.

But my chain brakes! I use different material, no result. Could you help me, what's wrong?
0
User avatar
andreyshell 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby cristyan » Sun Sep 11, 2016 11:46 pm

Hello !! andreyshell - Simulation > Update Timestep > set to x 1/6 (1/360) or more if is needed... hope that will help you .
1

cristyan 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby faust07 » Wed Sep 14, 2016 1:21 pm

The Twilight renderer (Free) now supports MSPhysics simulations. However, there seems to be a conflict if you have installed both Physics plugins (MSPhysics and Sketchy Physics). Sketchy Physics replay data will be ignored.
During the rendering of frames of the MSPhysics simulation there also seems to be a conflict with the simultaneously running scene animation in the background.
This should be possible to turn off in the preferences, if the MSPhysics camera is used.
0

faust07 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby NikolayTheM » Sat Sep 17, 2016 1:23 am

How to make hole into a gear?

Here is problem with shape.
0

NikolayTheM 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby andreyshell » Sat Sep 17, 2016 7:11 am

cristyan wrote:Hello !! andreyshell - Simulation > Update Timestep > set to x 1/6 (1/360) or more if is needed... hope that will help you .

Wow! Great, it, works!
How to interpreter this parameter? How to understand it and use in modeling?
0
User avatar
andreyshell 
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby count_olaf » Fri Sep 30, 2016 1:31 pm

Anton_S wrote:TIG, yes, the error occurred while loaded main.rb, which occurs during registration, and I was able to fix it through trial and error.

... I will upload it soon. Once again thanks for reporting.

Anton


Hi Anton

I have tried installing MSPhysics 0.9.3 in Sketchup Pro 2015 64 bit and get the same errors as reported in this string before your response. Is a fix for this still in the pipeline or is it in release 0.9.3? If the latter, I'm afraid error persists, for me.
0

count_olaf 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby surfmike » Sun Oct 02, 2016 12:12 pm

Hi!

An absolutely amazing plugin!!! :)

However my groups are falling in the static surface when "toggle play". See attached pics and file.
How do I do to avoid this?

Thanks
//Mikael

original as in SU.png


toggle play.png
0

surfmike 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby chrisjmitchell » Tue Oct 04, 2016 9:02 pm

Hi All,

I just installed MS Physics from the Extension Warehouse and when I run the simulation nothing happens. The only thing that does happen is the right click context menu stops working. I tried this with two cubes hinged. Any suggestions? This is running on Sketchup 2016 Win10 64.

Thanks!

Also forgot to mention starting a new file from the current Sketchup session does not fix it. I have to actually close it and restart Sketchup.
0
User avatar
chrisjmitchell 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby faust07 » Tue Oct 04, 2016 9:17 pm

As always, it would be great to post the offending model. Then we can help you better.
0

faust07 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby chrisjmitchell » Tue Oct 04, 2016 9:23 pm

Here is the sample of one. I tried it on others and got the same result. Sometimes it also disables my keyboard shortcuts.

Thanks for checking it out!
0
User avatar
chrisjmitchell 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby surfmike » Tue Oct 04, 2016 9:49 pm

Here's the file concerning objects sinking in the ground.

Thx for assisting! :)

MSP test.skp
0

surfmike 
 

Re: MSPhysics 0.9.3 (August 2, 2016)

Postby faust07 » Tue Oct 04, 2016 11:19 pm

First step is to define the bottom face as Static Mesh. Then the model works without problems.
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: alexdedaniel, daryab and 16 guests

Visit our sponsors: