SketchyPhysics3.2 (Dec 2)

Moderator: CPhillips

SketchyPhysics3.2 (Dec 2)

Postby CPhillips » Sat Dec 04, 2010 5:43 am

The 3.2 version of SP is ready. This version should finally work on Mac. Sorry for the delay.

Try it out and if works (or doesn't) please let me know. As soon as it seems it is stable I will turn on the auto update notice.

http://code.google.com/p/sketchyphysics/downloads/list

This is mostly the same as the last 3.2 test. Plus a few bugs fixed.

Old samples in this thread:
viewtopic.php?f=61&t=32200

I will make some new ones when I get a chance.

Change log:
http://code.google.com/p/sketchyphysics/wiki/SP32Dec2

Chris
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.2 (Dec 2)

Postby mptak » Sat Dec 04, 2010 2:59 pm

Chris:

Very Cool Stuff. I'm going to have students in my class start using it when it looks like a few others have succeeded in using 3.2. However, I keep getting a Webdialog is still dirty!!!!!!! message flash to the ruby console often when I make even a minor change to the code changing an if(frame==0) to if(frame==10) for instance. I have noticed and worked around this in the past....you must quit out of sketchup and restart it...but this seems to be more frequent. Any insights. I also will install it on the Mac side (I am running windows in boot camp) and see if it is any different.
Many many many kudos!

...later that morning on the apple side of a macbook...
Error starting the simulation: : uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchyPhysics3/ControllerCommands.rb:777:in `initialize'

?????
0

mptak 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby CPhillips » Sun Dec 05, 2010 8:59 am

I dont seem to have the problem with the dirty dialog message. Can you give me some steps to reproduce it? Also does it act broken or just display a message?

I'll look into the Mac problem.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.2 (Dec 2)

Postby driven » Sun Dec 05, 2010 10:43 pm

Error Loading File sketchyphysics.rb
dlopen(/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL_Special.dylib, 9): no suitable image found. Did find:
/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL_Special.dylib: unknown required load command 0x80000022


do you know what this means

john
also get this if I attempt to proceed

Error starting the simulation: : uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchyPhysics3/ControllerCommands.rb:777:in `initialize'
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.2 (Dec 2)

Postby mptak » Mon Dec 06, 2010 12:09 pm

It could be an issue with my machine so I will get back to you after I have tried an install on a few other machines and then send some examples if it persists. Good luck with the Apple side. I see a confluence of mystical powers to higher math and modeling understanding when you can mix Apple Grapher with SP....(even though I know the original Apple Grapher is now Pacific T. Cheers!
0

mptak 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby phy » Mon Dec 06, 2010 5:48 pm

mptak wrote:Chris:

Very Cool Stuff. I'm going to have students in my class start using it when it looks like a few others have succeeded in using 3.2. However, I keep getting a Webdialog is still dirty!!!!!!! message flash to the ruby console often when I make even a minor change to the code changing an if(frame==0) to if(frame==10) for instance.


There is a work around for the "Webdialog is still dirty" message. After you make a change to your code, click on the sketchyphysics inspector before closing it. If you don't the next time you open the inspector it will give the "Webdialog is still dirty" error.
0
Have A Good Day! ;)

phy 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby CPhillips » Tue Dec 07, 2010 4:42 am

That helps a little. Now if I could just figure out how to get this to start happening I am sure I could fix it.

phy wrote:
mptak wrote:Chris:

There is a work around for the "Webdialog is still dirty" message. After you make a change to your code, click on the sketchyphysics inspector before closing it. If you don't the next time you open the inspector it will give the "Webdialog is still dirty" error.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.2 (Dec 2)

Postby willeykj » Tue Dec 07, 2010 6:34 am

driven wrote:Error Loading File sketchyphysics.rb
dlopen(/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL_Special.dylib, 9): no suitable image found. Did find:
/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL_Special.dylib: unknown required load command 0x80000022


do you know what this means

john
also get this if I attempt to proceed

Error starting the simulation: : uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SketchyPhysics3/ControllerCommands.rb:777:in `initialize'


Typically this means that the OS attempting to load (dlopen) the dynamic library is not compatible with the library (either architecture or 32-64 bit mismatch).
I need to know what version of OX X you're running. The best bet is 10.6 on a newer intel box but it should work on any intel mac after 10.4 I would think.

Please drop me a note with the specifics of your mac or post something here and I'll take a look.

Kevin
0

willeykj 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby phy » Tue Dec 07, 2010 5:40 pm

CPhillips wrote:That helps a little. Now if I could just figure out how to get this to start happening I am sure I could fix it.


I couldn't quite interpret what you mean there. Do you mean you can't reproduce the problem?

If so, add or change some script on a simple model and straightway exit the sketchyphysics inspector.

You see the inspector doesn't make the change to the script until you take the focus off of the text area.
If you x out of the inspector before taking the focus off the text area the webdialog gets dirty.

Hope I make sense.
0
Have A Good Day! ;)

phy 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby solodown » Wed Dec 08, 2010 9:24 pm

Code: Select all
Error Loading File sketchyphysics.rb
dlopen(/Library/Application Support/Google SketchUp 7/SketchUp/plugins/SketchyPhysics3/sdl/SDL_Special.dylib, 9): no suitable image found.  Did find:
   /Library/Application Support/Google SketchUp 7/SketchUp/plugins/SketchyPhysics3/sdl/SDL_Special.dylib: unknown required load command 0x80000022
0

solodown 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby CPhillips » Thu Dec 23, 2010 5:13 am

It looks like right now SketchyPhysics will only work on Mac's running 10.6. We may be able to make a 10.5 version if there is enough demand. Can a few mac users chime in and let me know if you are still using 10.5. Also is anyone using 10.6 getting this error?

Chris
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.2 (Dec 2)

Postby solodown » Fri Dec 24, 2010 3:47 pm

Mac OS X 10.5.8
0

solodown 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby mptak » Sat Dec 25, 2010 4:50 pm

Spent a few minutes Christmas morning installing SP3.2 on my triplet nephew's Macbook with SnowLeopard and it worked nicely...I guess it is time to upgrade to snow leopard....Adapt or perish I guess.
0

mptak 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby MichaelG. » Sat Dec 25, 2010 10:06 pm

I posted a comment
[more particularly a plea for help]
in the newbie forum, yesterday.

Grateful for any assistance.

MichaelG.


Update: 01-01-2011
... Having received no response. I finally discovered that my download of SP3.2 was either incomplete or corrupt.
Now, having downloaded a fresh copy, everything seems to work.
0
Last edited by MichaelG. on Sat Jan 01, 2011 1:15 pm, edited 1 time in total.

MichaelG. 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby jblively » Tue Dec 28, 2010 1:43 am

- New script command setFrameRate overrides physics settings framerate.


Hello, trying to implement the set frame rate command to get the model to slow down on faster computers so we can anticipate the results.

Can you let me know the usage and where to put it.

I've tried setFrameRate=5; in the on tick section and it doesn't seem to make any difference.

Thanks,

Joe
0

jblively 
 

Re: SketchyPhysics3.2 (Dec 2) UI

Postby bossdave » Tue Dec 28, 2010 3:09 am

I am running SU8 with wine on Ubuntu with SP3.2. The UI box appears showing: Joint, State, Properties, Shapes , but no details. Same problem withSP3.1. Any ideas what I am missing? Thanks
0

bossdave 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby phy » Tue Dec 28, 2010 3:59 am

bossdave wrote:I am running SU8 with wine on Ubuntu with SP3.2. The UI box appears showing: Joint, State, Properties, Shapes , but no details. Same problem withSP3.1. Any ideas what I am missing? Thanks


There you go http://forums.sketchucation.com/viewtopic.php?f=61&t=33030
webdialogs don't work in wine without this tweak.
0
Have A Good Day! ;)

phy 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby CPhillips » Wed Dec 29, 2010 9:26 am

jblively wrote:- New script command setFrameRate overrides physics settings framerate.


Hello, trying to implement the set frame rate command to get the model to slow down on faster computers so we can anticipate the results.

Can you let me know the usage and where to put it.

I've tried setFrameRate=5; in the on tick section and it doesn't seem to make any difference.

Thanks,

Joe


Thats not quite how it works. a frame rate of 5 will make the physics simulation step 5 times before updating the sketchup model. To make it go a little slower you could use a frame rate of 1.
0

CPhillips 
PluginStore Author
PluginStore Author
 

SketchyPhysics3.2 (Dec 2) ui not working

Postby robint » Tue Jan 04, 2011 10:54 am

help UI window not working

Postby robint on Mon Jan 03, 2011 8:59 am
ive got su8 latest and sp 3.2 installed

when I try to inspect joints i get the usual info for a hinge (say). when I try to input say accel or a controller name , it accepts them but doesnt do anything - no slider in the run panel

Ive tried the other tip of clicking on the UI button to exit the UI window to no avail

I saw a tuorial where it said that you can turn a hinge into a reversible motor by putting accel = 1 and giving the controller a name - which is then supposed to bring up a slider in the run panel - i just get a blank.

then i go back and look again and just get blank boxes. only restarting su8 will clear the prob but it comes back if I try to change a parameter

cheers Robin

ps I havent got so excited since I first used SU4 - this could be a wonderful educational tool if physical values could be added to demonstrate newtons laws for example

I made a double pendulum the other day, but as already said, there's lots of real world physical attributes to be addressed (eg mass, density, friction, elasticity etc) but its early days
0
User avatar
robint 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby robint » Wed Jan 05, 2011 11:21 am

Hi guys

how or where do I post a skp model for discussion

also i cant post a link here?

robin
0
As one door closes another one slams in your face
User avatar
robint 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby robint » Thu Jan 06, 2011 9:21 am

This site seems to be moribund, not a lot happening?

Anyway Ive solved the UI problem

so all working ok now
0
As one door closes another one slams in your face
User avatar
robint 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby robint » Thu Jan 06, 2011 9:31 am

here my 2c worth for sp 3.2

if you want to make a reversible motor joint, use the hinge (as per sp2) and set the controller blue box to

quote slider ( 'anyname' )

you can see the same construction using the motor joint

wish I didnt have to waste hours getting to this point.

Also

to make magnetic solids work you need to set the ui box status to magnetic
and the magnetic force to a large value eg +- 1000

not obvious is it?

I wonder whether its worth contributing to a wikimanual at5 this stage if thereis going to be an sp4 completely recoded?

Robin
0
As one door closes another one slams in your face
User avatar
robint 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby jblively » Fri Jan 07, 2011 2:45 am

robint wrote:to make magnetic solids work you need to set the ui box status to magnetic
and the magnetic force to a large value eg +- 1000



I do believe that magnetic force is also affected by mass and scale. So if the model is very large, you'll need a larger value for magnetic force. If you have a small scale model, you can use a magnetic force of as little as 10 to see results.

There is so much involved in SP, more documentation would be nice, but i'm just glad we have people here we can chat with who want to help!
0

jblively 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby pilou » Fri Jan 07, 2011 3:25 am

Does this vervion can works on the V6?
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: SketchyPhysics3.2 (Dec 2)

Postby robint » Fri Jan 07, 2011 10:06 am

Hi JB

good point

afik though there is a density coeff, I dont know how well it correlates to the mass of an object?
the apparent mass i governed by the size of the collision shape as set in the rt click physics setting

havent figured this tiresome details out yet

I have a number of cu4rious physical models i would like to post for discussion (eg double pendulums etc) but havent yet found a way to post these little experiments.

It seems daft that one cant attach these on this forum - severly limiting

Any ideas?
0
As one door closes another one slams in your face
User avatar
robint 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby CPhillips » Tue Jan 11, 2011 3:42 am

Yes magnets are effected by the size of an object.

You can attach files to posts. Look at the bottom of the form and there is an "Upload Attachment" tab.
0

CPhillips 
PluginStore Author
PluginStore Author
 

Re: SketchyPhysics3.2 (Dec 2)

Postby robint » Tue Jan 11, 2011 10:19 am

hi all

sorry pardon didnt see the tab for uploading


I was trying to make a chain rotating around 2 sprockets. The chain seems to want to fly apart, its all chaotic? even though its all supposed to be stationary, any ideas

btw i have su8 and sp3.2 dec2010

its all good fun but i wish i had more control over the way things work, bit hit and miss at the moment

btw although bugsplat is a good tool, i dont connect my main machine directly to the net for obvious security reasons, so cannot utilise bs directly. It would be much more convenient if bs made a composite text file stored conveniently which i could gather up and post here to help with su crashes. Its a bit cumbersome at the moment

cheers robin
0
As one door closes another one slams in your face
User avatar
robint 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby TIG » Tue Jan 11, 2011 11:39 am

CPhillips
Please see here for an 'issue' with group.definition viewtopic.php?p=300105#p300105 ;)
0
TIG
User avatar
TIG 
Global Moderator
 

Re: SketchyPhysics3.2 (Dec 2)

Postby robint » Wed Jan 12, 2011 4:26 am

hi CP

thanx for the tip, will see if i can make it so.

any pointers on where to start on Ruby so i can at least know something of what im doing?

cheers

Robint
0
As one door closes another one slams in your face
User avatar
robint 
 

Re: SketchyPhysics3.2 (Dec 2)

Postby robint » Sat Jan 15, 2011 8:33 am

TIG wrote:CPhillips
Please see here for an 'issue' with group.definition viewtopic.php?p=300105#p300105 ;)



Hi
I tried the code but it seemed to make things worse


Code: Select all
class Sketchup::Group
if not Sketchup::Group.method_defined?(:definition)
def definition() # make it so you can use group.definition
return(self.entities.parent)
end
end#if
end


something about a chain sp doesnt like

Im stuck, my chain flies apart

robin
0
As one door closes another one slams in your face
User avatar
robint 
 

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 0 guests

Visit our sponsors: