SketchyPhysics 3.5.6 (26 January 2015)

Moderator: CPhillips

SketchyPhysics 3.5.6 (26 January 2015)

Postby Anton_S » Mon Sep 01, 2014 3:03 pm

SketchyPhysics is a real-time physics simulation plugin for SketchUp created by Chris Phillips.

See extended versions maintained by PituPhysics: viewtopic.php?f=61&t=62453

SP 3.5, the unofficial release, comes with many bug fixes, API improvements & enchantments, support for SU6 or later, and compatibility for Mac OS X 10.5+ & MSFT Windows. For now, it's only compatible with SketchUp 32bit.

SP 3.5 is compatible with most if not all SketchyPhysics models. Even Some SP 3RC1 models incompatible with SP 3.2 are compatible with SP 3.5. There is one thing user must keep in mind. Most scripted models from 3D Warehouse don't work in SketchUp 2014; however, they do work in SketchUp 2013 and below. That is because SketchUp 2014 uses Ruby 2.0.0; meanwhile, prior SketchUp versions use Ruby 1.8.x. There were Ruby syntax changes since 1.8.x, which all scripts must be updated for compatibility with SketchUp 2014. See Updating Scripts for SU2014 Compatibility for instructions.

Not many features were added since SP 3.2. However, there were descent changes and improvements to SketchyPhysics API, which minimize potentials for crash and errors. One major optimization in SP 3.5 is avoiding to modify group/component axes. In SP 3.2, whenever simulation would start, SP code would iterate through all groups/components and shift their axes to a different location, which is the group's bounds center. There are two cons of doing this. One, it may disturb the user that their model is modified. Two, it takes time to shift axes. It would take forever for SP to start if there were thousand of groups awaiting simulation. I'm not sure why this axes shift was added in the first place, but I think it was made to keep the original drag tool working properly -- if group origin is not in its predefined centre of mass (which is groups bounds center) the drag tool works improperly. Despite such complications, SP 3.5 does not modify group/component axes and uses a custom drag tool to prevent any improper behavior. Along with that, start simulation performance has been improved significantly. Another optimization is removing any unused attributes created by SP, which keeps the model clean, and reduces its size. Last, but not least, SP 3.5 handles script errors like a charm. Any error in simulation is either printed in console or forces simulation to reset. In SP 3.2, such operations did not turn out successfully.

Here are some more improvements and changes since SP 3.3:
  • Scaled groups/components have proper collisions.
  • Flipped groups/components no longer unflip when simulation starts.

And here are some features since SP 3.3:
  • Export animation to Kerkythea.
  • Record simulation camera movements.
  • Convexhull2 shape. Unlike convexhull, convexhull2 include's all sub-groups and sub-components (except joints and ignored entities) in collision calculation. As well, it maintains real centre of mass, unlike convexhull which uses group's bounds center as centre of mass.
  • Compound2 shape. Every sub group and component in compound2 shape with unassigned collision is assigned a convexhull2 collision; meanwhile, all sub groups and components in default shape are by default assigned a box collision. Unlike default shape, compound2 maintains true centre of mass.
  • You can change body mass, assign transformation, toggle it static, and due more things with the extended scripting API. See SP Script Overview for a detailed documentation.

Improved dialog! No more 'webdialog dirty' errors, no more have to click on the input to save script, a new feature which allows you to preset min/max angle or length units.
SP3.5_dialog.png


Reference/How To

Download
    Delete all original versions before downloading the new one!
    Available at PluginStore
    Get SketchyPhysics_3.5.6.zip
    Note: For now, SketchyPhysics is only compatible with SketchUp 32bit. It will not work with SU2015 64bit or SU2016 64bit, however, it will work with SU2015 32bit and SU2016 32bit. The most recommended version is SU2013 because compared to newer versions which use Ruby 2.0, SU2013 uses Ruby 1.8, allowing most non-updated scripted models at 3DWarehouse to work properly. However, if playing non-updated scripted models is not an aim, SU2014 might be the most suitable. SU2015 32bit and SU2016 32bit are not recommended because at some point entity ids are regenerated by SketchUp interface causing all joint connections to be discarded.

  • SketchUp versions post 2013 can be obtained at SketchUp Website.
  • SketchUp versions prior 2013 can be downloaded at FileHippo.

Installation Instructions
Before you download, delete original SketchyPhysics version! You don't need to download any other version to get this version working.
There are several ways to install the plugin.
    1. Download SketchyPhysics_3.x.x.rbz
    2. If you downloaded the .zip format, simply rename the extension to .rbz format.
    3. Open SketchUp and navigate to (Menu) Window > Preferences.
    4. In the preferences window navigate to Extensions tab and select Install Extension... button
    5. From there, find your downloaded compressed file, and select Open button, which will install the extension.
    1. Download SketchyPhysics_3.x.x.zip. If you downloaded .rbz format, then simply rename it to .zip format.
    2. And extract SketchyPhysics to the plugins folder.
        Plugins folder location:
      • For SU8 and below, C:\Program Files (x86)\Google\Google SketchUp [n]\Plugins\
      • For SU2013, C:\Program Files (x86)\SketchUp\SketchUp 2013\Plugins\
      • For SU2014, C:\Users\YOUR_NAME\AppData\Roaming\SketchUp\SketchUp 2014\SketchUp\Plugins\
    3. It should look like this once you extracted:
      ..\Plugins\
        SketchyPhysics3
        SketchyPhysics.rb
  • Use SketchUcation PluginStore. It is the easiest way to install extensions.

Change Log

- Version 3.5.6 January 26, 2015
  • Minor adjustment to the custom drag tool.
  • Improved security for the two SU API adding methods.
  • Resolved more compatibility issues with some prior SP models.
  • Removed some unnecessary Ruby API adder methods. Thanks to ThomThom for finding them.
  • Fixed minor gear joints bug. Thanks to Deskpilot for reporting.
- Version 3.5.5 October 25, 2014
  • Reverted some changes to default shape to keep compatible with prior versions. As well, fixed a bug created in SP3.5.4. Thanks to faust07 for report.
- Version 3.5.4 October 22, 2014
  • Fixed a bug where flipped bodies didn't generate proper collisions. Thanks to faust07 for report.
- Version 3.5.3 October 16, 2014
  • Minor fixes and improvements.
  • onTouch position parameter should be multiplied by the world scale.
  • Added MSketchyPhysics3::SketchyPhysicsClient.#getLifetime(grp), #getLifeStart(grp), #getLifeEnd(grp), and #getEmitter(grp).
- Version 3.5.2 September 24, 2014
  • Flipped groups should no longer unflip when simulation starts.
  • Scaled groups with convex collisions should no longer fall through other bodies.
  • Added MSketchyPhysics3::SP3xBodyContext.#getGlobalCentreOfMass to get body centre of mass in global space.
  • Made adjustments to the dialog, error handlers, and the drag tool.

- Version 3.5.1 September 13, 2014
  • Converted all fixnum forces to float to prevent errors.
  • Made new copyBody function compatible with prior scripted models, specifically SP3RC1 Artillery by Mr.K.
  • Stabilized shift flipped bodies technique which was added in SP3.5.
  • Fixed a typo where centre of mass of convexhull2 and compound2 would remain improper.
  • Inspector should lookup joints in all shapes. Originally it looked up joints within the default shape only.
  • Updated homepage link

- Version 3.5.0 September 12, 2014
  • Fixed tagName exception, a small error that would raise in Sketchy UI from time to time.
  • Fixed a glitch where Sketchy UI would fail to save if the dialog is closed via the UI button.
  • Joint limit inputs shall be able to interpret math operations. You can type 100.mm and it will be converted to 3.94 inches automatically or cos(60.degrees) and it will be evaluated to 0.50.
  • Attributes to the newton body pointer, group scale, and some other unused attributes shall be removed when simulation resets. Storing them is not essential.
  • Component/group axis are no longer modified. This change improves start and reset simulation performance.
  • Rewrote pick and drag tool, which relies its calculations on body centre of mass, not group origin as originally intended. The original drag tool required group axis be shifted to the bounds center (predefined centre of mass). Changing the drag tool was an essential step because first, it no longer required moving entity axis to the body centre of mass, second, changing centre of mass via the setCentreOfMass function doesn't require changing group axis, and third, the new drag tool is quite more flexible than the original one. The new drag tool is adapted from the Newton Dynamics physics utilities.
  • Added Convexhull2 shape, which includes all sub groups in calculation of convex collision, and maintains true centre of mass. Original convexhull picks geometry one level deep, but does not gather geometry from groups within the group. As well it does not have true centre of mass. Convexhull2 was added to overcome such problems. Joints and all ignored bodies are not included in collision calculation.
  • Added Compound2 shape, which includes all sub groups and geometry in calculation of compound collision, and maintains true centre of mass. Joints and all ignored bodies are not included in collision calculation. Enable show collision option to see the differences between Default and Compound2 shape.
  • Added Staticmesh2 shape, which includes all faces of sub groups in calculation of tree collision. Joints and all ignored groups are not processed in part of the collision. Original staticmesh gathers faces one level deep within the group, but does not search through groups inside the main group; that's why staticmesh2 was added.
  • MSketchyPhysics3::SP3xBodyContext.#getCentreOfMass should extract world scale.
  • Added MSketchyPhysics3::SP3xBodyContext.#setCentreOfMass(centre)
  • Added MSketchyPhysics3::SP3xBodyContext.#getVolume - returns body volume in cubic inches.
  • Added MSketchyPhysics3::SP3xBodyContext.#getDensity - returns mass ratio per cubic inch.
  • Added MSketchyPhysics3::SP3xBodyContext.#getMatrix - returns body transformation matrix.
  • Added MSketchyPhysics3::SP3xBodyContext.#setMatrix(matrix) - similar to teleport.
  • Added MSketchyPhysics3::SP3xBodyContext.#continuousCollisionEnabled?
  • Added MSketchyPhysics3::SP3xBodyContext.#continuousCollisionEnabled=(v) Setting state to true will prevent body from passing other bodies at high speeds, although this could alter performance at the same time.
  • Added MSketchyPhysics3::SP3xBodyContext.#solid? to determine whether body is collidable.
  • Added MSketchyPhysics3::SP3xBodyContext.#collidable? which is same as #.solid?
  • Added MSketchyPhysics3::SP3xBodyContext.#collidable= which is same as #.solid=
  • Added MSketchyPhysics3::SP3xBodyContext.#magnetic? to determine whether body is magnetic.
  • Added MSketchyPhysics3::SketchyPhysicsClient.#pickAndDragEnabled=(v), which is an equivalent to pick_drag_enabled=(v).
  • Added MSketchyPhysics3::SketchyPhysicsClient.#pickAndDragEnabled?, which is an equivalent to pick_drag_enabled?
  • Fixed MSketchyPhysics3::SP3xCommonContext.#joy and .#joybutton methods. Now, they should work if called from the scripted field too.
  • Added MSketchyPhysics3::SP3xCommonContext.#stopSound(channel)
  • Added MSketchyPhysics3::SP3xCommonContext.#stopAllSounds
  • Added MSketchyPhysics3::SP3xCommonContext.#simulation which returns $curPhysicsSimulation. Originally it was accessible from the scripted field only. Now, its accessible from the controller fields too.
  • Added MSketchyPhysics3::SP3xSimulationContext.#getFrameRate, which is an equivalent to #frame_rate method.
  • Added MSketchyPhysics3::SP3xSimulationContext.#getWorldScale
  • Added MSketchyPhysics3::SP3xSimulationContext.#getGravity, which is an equivalent to #gravity method.
  • Added MSketchyPhysics3::SP3xSimulationContext.#setGravity(acceleration).
  • Fixed a bug where staticmesh inside a group would force simulation to crash. A staticmesh or compound within the group becomes default shape now.
  • Stabilized compatibility for SP3RC1, SP3.1, and SP3.2 scripted models. Now, all advanced scripted models created in previous SP versions shall work with SP3.5. Try out some advanced models at 3d warehouse if you don't believe ;) Keep in mind, most scripted models will work in SU2013 and below because they use outdated Ruby implementation techniques; however, SP Midi Piano works just well on SU2014 because it's script is written quite well, i.e future proof for Ruby 2.0.0.
  • Added continuous collision checkbox option to the emitter. Enabling this will prevent emitted bodies from passing other bodies at high speeds. Now, bullets will collide if CC is enabled.
  • Added units of measurement to the joint limits. Thanks to Platinius for request.
  • Added scripting reference links to UI for easy reference destination.
  • Fixed a glitch where objects would use 0.2 as default density, not the assigned default density.
- Version 3.4.1 September 02, 2014
  • Reverted SP Replay changes for compatibility with LightUp and Skindigo. Keep in mind SkIndigo 3.6.28.3 has a little bug. Please follow these steps to fix it:
    1. Open Plugins/skindigo/AnimationExport.rb.
    2. Scroll down to line 369 and replace mb.build_active_mesh(ents) with mb.build_active_mesh(ents, {})
    3. Save file and you're good to go.
  • Added (Menu) Plugins > Sketchy Physics > Erase All Attributes option.
- Version 3.4.0 September 01, 2014
  • Compatibility for Mac OS X. Thanks to Kevin (willeykj) for helping out.
  • Fixed MIDI on new Mac OS X platforms. Thanks to Kevin (willeykj) for providing the fix in the post.
  • Renamed folder back to SketchyPhysics3 for compatibility with prior scripted models. You may want to remove original SketchyPhysics folder from the Plugins folder.
  • Changed the way errors are handled. All script errors will force simulation to reset, displaying a message box with an error. Meanwhile, all controller errors will be displayed in the Ruby Console, but keep simulation running without breaking next tasks.
  • Reverted some changes to remain compatible with the advanced scripted models. I thought to add compatibility files at first, but did not want to make it a hard task for scripters to migrate their advanced code to 3.4. I also added compatibility for SP3x and SP3RC1. Now all scripted models from various SP versions shall work in 3.4. Although some advanced scripted models created by me (Anton Synytsia) will not work because they modify way too much. Keep in mind, a lot of scripted models will operate in SU 2013 and below only. SU 2013 and lower use Ruby 1.8.x, while SU 2014 uses Ruby 2.0.0. There were Ruby implementation changes since 1.8.x. These include, prohibited use of spaces between method name and the parentheses, prohibited use of colons (:) in case-when statement, and replaced Hash.#index with Hash.#key. As well, all models that use LazyScript will operate in SU 2013 and below only. Some LazyScript functions use Ruby DL, which is only available in Ruby 1.8.x categories. SP 3.4, on SU 2014, uses Fiddle because DL is deprecated in Ruby 2.0.0.
  • Added Sketchup::Group.#definition and Sketchup::ComponentInstance.#entities for compatibility with prior scripted models. These are the only two methods SP adds to Sketchup API. These methods shouldn't break any plugins, but they may confuse a plugin developer.
  • Included Math into Object for compatibility with prior models. Such change shouldn't affect any plugins, but it may confuse the plugin developer.
  • Fixed minor controller inconsistencies and errors created while rewriting the code in SP 3.3. Thanks to my brother Stas for finding the bug at a very last moment before the upload.
  • Fixed compound transformation shift. Thanks to Kris Yokoo and Joseph Shawa for report. This is also a bug I introduced in SP 3.3.
  • Fixed export animation in SU2014. Thanks to Werner_Hundt for report.
  • Added start/commit operation to Sketchy Replay for better performance.
  • Added export camera recording to Sketchy Replay. Thanks to faust07 for report and Mr.K for writing the original script.
  • Changed abort_operation back to commit_operation as abort_operation is unsafe and breaks compatibility.
  • Organized icons
  • Made SketchyPhysicsClient and SketchyReplay compatible with the Twilight Render.
  • Added export animation to Kerkythea. You must have have Kerkythea plugin installed in order for that feature to work. Thanks to tallbridgeguy for request.
  • Migrated from FFI to Fiddle. This reduces folder size, and allows SP to operate on Mac OS X.
  • Added MSketchyPhysics3::SP3xBodyContext.#static?
  • Added MSketchyPhysics3::SP3xBodyContext.#static=(state)
  • Added MSketchyPhysics3::SP3xBodyContext.#frozen?
  • Added MSketchyPhysics3::SP3xBodyContext.#frozen=(state)
  • Added MSketchyPhysics3::SP3xBodyContext.#getMass
  • Added MSketchyPhysics3::SP3xBodyContext.#setMass(mass)
  • Added MSketchyPhysics3::SP3xBodyContext.#recalculateMass(density)
  • Added MSketchyPhysics3::SP3xBodyContext.#recalculateMassProperties - This method assigns proper centre of mass to the body. SP defines entity bounds center as centre of mass, which is incorrect in various cases. This function calculates centre of mass using Newton function, which presumes the correct centre of mass and moments of inertia.
  • Added MSketchyPhysics3::SP3xBodyContext.#getCentreOfMass - Returns centre of mass coordinates relative to the body transformation.
  • Added MSketchyPhysics3::SP3xBodyContext.#this - returns self.
  • Added MSketchyPhysics3::ControllerContext.#lookAt(nil) to destroy the lookAt constraint.
  • Added lookAt method to the MSketchyPhysics3::SP3xBodyContext.
  • Added MSketchyPhysics3.getNewtonVersion.
  • Improved MSketchyPhysics3::SP3xBodyContext.#breakit method. Plane size shall not be fixed, but shall rely on the group bounds diagonal.
  • Improved MSketchyPhysics3::SP3xBodyContext.split method. Split body becomes static. Ideally it should be destroyed, but keeping it ensures compatibility.
  • onUntouch event shall be called even if onTouch/onTouching is not included.
  • Improved SP Sound UI. Fixed 'Play Sound' button and added 'Stop Sound' button. Only WAVE sound format is supported. OGG doesn't seem to work.
- Version 3.3.0 July 20, 2014

To Do/Wish List
  • Add more virtual keys to Mac OS X.
  • ~ Get rid of global getKeyState in input.rb.
  • Work on sp_midi.rb
  • Rewrite all dialogs. Use jquery. Have major web content in html, css, and js files. Update dialog style.
  • Improve joint API. Make each joint have its own joint context. Connect/disconnect joint simply by creating/destroying the constraint.
  • Avoid making components unique as this task affects modeller's work flow. Commenting out all the .make_unique is not enough, the way collision is generated needs to changed too. Meantime, use CTRL-Z after simulation resets to undo most if not all changes done during simulation.
  • Capture/Release mouse (For FPS games).
  • Add particle effects, and more goodies from the LazyScript.
  • Add explosion impact function.
  • Add follow curve joint, a piston with a user created curve inside.
  • Upgrade to Newton 3.13 as it's way faster than Newton 1.53.
  • Upgrade to SLD2 as it supports many different sound types. Consequently change the way sounds are handled. Keep the reference to the sound type, so we could use same list-box for all sound types.
  • Investigate copied joints. Investigate why each joints needs a unique name. Investigate why joints inside components are ignored.
  • Add compound3 shape, where each triplet of face is an extruded convex hull.
18
Last edited by Anton_S on Sun Dec 18, 2016 12:48 pm, edited 45 times in total.

Anton_S 
PluginStore Author
PluginStore Author
 

Re: Sketchy Physics 3.4.0 (September 01, 2014)

Postby Anton_S » Mon Sep 01, 2014 3:05 pm

All I'm left to do is create a small documentation listing SP methods and functions.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: Sketchy Physics 3.4.0 (September 01, 2014)

Postby josephshawa » Mon Sep 01, 2014 4:45 pm

I am extremely grateful for your efforts and in awe of your abilities! For sure a donation is on its way!
0

josephshawa 
 

Re: Sketchy Physics 3.4.0 (September 01, 2014)

Postby Anton_S » Mon Sep 01, 2014 9:08 pm

Thanks Joseph :D
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Werner_Hundt » Mon Sep 01, 2014 10:43 pm

Thank you, Anton - you are the greatest! Sketchy greetings from Cologne :-)
0

Werner_Hundt 
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Anton_S » Mon Sep 01, 2014 11:07 pm

Thanks Werner :D
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Werner_Hundt » Mon Sep 01, 2014 11:15 pm

It seems that exporting Sketchy Replay Animation via Skindigo (Indigo rendering plugin) does not work with the current version of SketchyPhysics. This error message keeps popping up.
SketchyReplay_export_Skindigo_error.jpg
0

Werner_Hundt 
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Anton_S » Mon Sep 01, 2014 11:54 pm

This message pops up because you didn't save animation or doing it wrong.
To export replay animation, you must follow these steps:
  • Enable recording.
  • Press play simulation.
  • Run simulation for desired time, and press reset. It will ask you to save animation, press YES.
  • Then, you may export animation...

Oh wait this error pops up from the other plugin... Maybe I changed storage locations. I will see what I did there.

Edit: I see what I did there. Storage locations are same, but storage types are different. I changed them from array to hash. I will upload a fix tomorrow.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby pilou » Tue Sep 02, 2014 12:24 am

Have you some info with the use of SketchyPhysics and LightUP ?

Seems that works with the previous versions of SketchyPhysics but not for this one ?

Maybe Adam will confirm or not this :geek:

1
Last edited by pilou on Tue Sep 02, 2014 12:42 am, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Anton_S » Tue Sep 02, 2014 12:37 am

I never knew other plugins use SketchyReplay and thought making changes will not break anything, but gosh I was wrong. This is the same issue with Werners post. The fix is easy. I will upload it tomorrow.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby mptak » Tue Sep 02, 2014 1:07 am

Anton you are stupendous!
0

mptak 
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby pilou » Tue Sep 02, 2014 2:01 am

Always funny for makes some random landscape of elements but...
How export the resultant position of the animation ? The "Pause" position !
In the past "Save as" was sufficient!
Now "Save as" save the "Start position" ! :o

Not practical for make cool image! ;)
By Pierreaudoin
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Anton_S » Tue Sep 02, 2014 2:44 am

Pilou wrote:Always funny for makes some random landscape of elements but...
How export the resultant position of the animation ? The "Pause" position !
In the past "Save as" was sufficient!
Now "Save as" save the "Start position" ! :o

Not practical for make cool image! ;)
By Pierreaudoin

ugh what?

If you don't want to save camera you can simply set 'Animate Camera' to 'No' (when exporting animation).
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby cotty » Tue Sep 02, 2014 7:55 am

Pilou wrote:Always funny for makes some random landscape of elements but...
How export the resultant position of the animation ? The "Pause" position !
In the past "Save as" was sufficient!
Now "Save as" save the "Start position" ! :o

Not practical for make cool image! ;)

Maybe you are searching for this answer?
http://sketchucation.com/forums/viewtopic.php?f=61&t=58901
1
User avatar
cotty 
Top SketchUcator
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby pilou » Tue Sep 02, 2014 8:51 am

1 Enable recording
2 Start simulation
3 Reset simulation at desired time. It will ask you to save animation. Press YES.
4 Then use the replay tool to get yourself to the desired frame.
After you do so, press the replay button once again to pause and the objects will be left in their new positions.

must add 4 : first rewind with the replay tool button!

Yes thx that is that! :enlight:
At this end I save as V6 for example for using plugins not adapted at the 2014! :ugeek:

capsules.jpg
1
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Anton_S » Tue Sep 02, 2014 10:08 am

Okay, I reverted some replay changes. Please test with LightUp and Skindigo. Tell me how it goes.
Edit: Link removed. Download from top.
0
Last edited by Anton_S on Tue Sep 02, 2014 11:15 pm, edited 1 time in total.

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby pilou » Tue Sep 02, 2014 10:23 am

It's ok for LightUp during the "Sketchy Replay" animation ! :fro: :thumb:
Not during the Toggle Play "Sketchy Physics" but no problem as the "Replay" works fine! ;)

ok LightUp.jpg


yes - Not.jpg
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Anton_S » Tue Sep 02, 2014 10:52 am

Great! Lets wait for a response from Werner, and I'll make it an official release if everything goes well.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Anton_S » Tue Sep 02, 2014 10:54 am

BTW, thanks for testing Pilou, you rock!
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Werner_Hundt » Tue Sep 02, 2014 1:25 pm

Thanks for your swift reply, Anton. Unfortunately, the error message still pops up.
0

Werner_Hundt 
 

Re: SketchyPhysics 3.4.0 (September 01, 2014)

Postby Anton_S » Tue Sep 02, 2014 10:12 pm

Okay, I downloaded Skindigo, and can reproduce the effect. I looked into source and found some inconsistency. I will upload a fix in few minutes.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby Anton_S » Tue Sep 02, 2014 11:17 pm

Okay, I fixed it. Although current version of Indigo has a little bug.
Keep in mind SkIndigo 3.6.28.3 has a little bug. Please follow these steps to fix it:
  1. Open Plugins/skindigo/AnimationExport.rb.
  2. Scroll down to line 369 and replace mb.build_active_mesh(ents) with mb.build_active_mesh(ents, {})
  3. Save file and you're good to go.
I reported an error to SkIndigo support.

Download latest version from top.

I also finished a little SP script reference doc : http://sketchyphysics.wikia.com/wiki/Script_Overview
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby cotty » Wed Sep 03, 2014 6:51 am

I've searched for that line in the current version 3.8.9.1 but the line (406) is marked as a comment...
0
User avatar
cotty 
Top SketchUcator
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby Anton_S » Wed Sep 03, 2014 8:16 am

I was speaking of 3.6.28.3 (as it shows up on SkIndigo website), but downloading the latest version 3.8.9.1 I find there a different bug, even if I try exporting from old SP versions. These guys need to test things before they upload it...

I will send an error message to them for this version as well. Yet, I can't fix it, as there are too much errors. Use version 3.6.28.3 with the fix I provided in the first post. Otherwise, you'll have to wait till they fix it.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby AdamB » Wed Sep 03, 2014 2:03 pm

Hi,

As Pilou says, the playback works, but running the Physics while in LightUp no longer works which is a pity.

Its not that LU is not picking up the changes in transforms - its that SP appears to terminate TourTool now - whereas before it didn't touch the current selected Tool.

Does that ring any bells in the changes you've made recently?

Adam
0
Developer of LightUp Click for website
User avatar
AdamB 
LightUp Support
LightUp Support
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby Werner_Hundt » Wed Sep 03, 2014 2:09 pm

You're a genius, Anton! You should consider collaborating with the guys from Indigo/Skindigo :-)
1

Werner_Hundt 
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby Anton_S » Wed Sep 03, 2014 7:28 pm

@Adam All SketchyPhysics3 versions used a select_tool when simulation start, which terminates all other running tools. If you don't think so, you can download SP3.2 (the official release) on SU8 for instance and see it yourself. Start lightup and press physics toggle play button. LightUp will reset...

Use SP Replay as it was made for such purpose, I think. I don't know why you were assuming SP toggle play button worked with LightUp as it never worked with any versions of SP3. Maybe because SP1 or SP2 worked that way, I don't know.

Edit: Mayby I'm starting LightUp wrong, or I have to do it the other way around. If so, please explain how.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby platinius » Fri Sep 05, 2014 9:10 am

First of all I want to thank you, Anton, for this great update! Finally someone who takes care of this awesome plugin. :)

I don't remember if previous versions of SP also showed this behaviour: Positive values for the blue axis (e.g. a piston slider) move things down, in negative direction, whereas positiv values for the green or red axis move things in positiv direction. This irritates me. A bug?

The other issue I want to address are units. I always use metric units but SP converts them in imperial. For instance, when I position a piston and give it a length of 100 mm (by typing 100 a hitting enter while drawing) the UI max box shows a value of 3.93... which are inches. When I type 100 into the max field, the piston moves 100 inches, not millimeter. I would appreciate it a lot if SP used the units as set in the model settings window. Actually all boxes in the UI should be labeled with the unit expected (the unit set in the model settings). For example, what's the unit of density? What's the angle unit? Radian or degree? And Strength? This would make things a lot easier.
0

platinius 
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby Anton_S » Fri Sep 05, 2014 9:45 pm

platinius wrote:I don't remember if previous versions of SP also showed this behaviour: Positive values for the blue axis (e.g. a piston slider) move things down, in negative direction, whereas positiv values for the green or red axis move things in positiv direction. This irritates me. A bug?

Can you show an example, I can't reproduce this.

platinius wrote:The other issue I want to address are units. I always use metric units but SP converts them in imperial. For instance, when I position a piston and give it a length of 100 mm (by typing 100 a hitting enter while drawing) the UI max box shows a value of 3.93... which are inches. When I type 100 into the max field, the piston moves 100 inches, not millimeter. I would appreciate it a lot if SP used the units as set in the model settings window. Actually all boxes in the UI should be labeled with the unit expected (the unit set in the model settings). For example, what's the unit of density? What's the angle unit? Radian or degree? And Strength? This would make things a lot easier.

I can't change it because it could break compatibility with prior models, but I can make it to evaluate everything in the control box. For example, if you write 100mm it will turn it to 3.93.

Hinge min max values are in degrees. Density and strength is undetermined, it very complicated as SP bases everything on world scale. The default world scale is 9. This means all objects are assumed 9 times bigger or smaller (i cant recall), which as of results yields different volume, and mass. The volume is assumed in inches, thus the mass should be in volume_in_inches*density, where density depends on user input. Stuff are relative in SP.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics 3.4.1 (September 02, 2014)

Postby ashscott » Sun Sep 07, 2014 11:19 am

This is such awesome news! Can't wait to dig into it!
0
Just some stuff I do with Sketchup.
User avatar
ashscott 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to SketchyPhysics

Who is online

Users browsing this forum: No registered users and 1 guest

Visit our sponsors: