[Plugin]SketchyPhysics3 alpha.
-
@unknownuser said:
what are these commands and where can i find out more about them excited
or are you writing something about them soon?I am changing it a little bit but when I am done I will write something up.
Basically Controller can be a little fragment of Ruby. So you can type in any legal ruby syntax that results in a number:
2+2
3*(15/2.0)
3.14*Math.sin(1.0)You can even put stuff like
if frame<30 then 0.0 else 1.0 end
That will cause a joint to move to 1.0 after 30 frames.
-
Sketchyman:
-Sorry about the error on SU7. I have seen one other person have this problem but I dont know what causes it or how to fix it yet. If you manage to figure it out please let me know!
-Final version will be released when it is done. No specific date.
-See the magnets thread for instructions on the magnet. If you are still having problems post a description of the problem (and a model if possible) in that thread.
Chris
-
Is their anyway you could add a concave hull.
-
I tried to download thruster magnet model but its made with version 7.0 and i cant install sketchyphysics on that one. please post some models made with sketchup 6. thanks a lot
-
I saw a video of SketchyPhysics 3 showing a piston linked to a normal cylinder. When activate the corrispondent slider, the cylinder seems to multiply.Is that possible in the current version?
http://www.youtube.com/watch?v=vNlhGt32oBg&eurl=http://sketchuptips.blogspot.com/2008/09/sketchyphysics-3-preview-video.html&feature=player_embedded -
@sgal said:
I saw a video of SketchyPhysics 3 showing a piston linked to a normal cylinder. When activate the corrispondent slider, the cylinder seems to multiply.Is that possible in the current version?
http://www.youtube.com/watch?v=vNlhGt32oBg&eurl=http://sketchuptips.blogspot.com/2008/09/sketchyphysics-3-preview-video.html&feature=player_embeddedThat feature isn't in yet. I have to figure out how to make it work with replay.
-
@sketchyman said:
I tried to download thruster magnet model but its made with version 7.0 and i cant install sketchyphysics on that one. please post some models made with sketchup 6. thanks a lot
Sketchyman, could you try this to fix your SU7 error. Find the file win32api.so in your ...Sketchup 7\plugins\SketchyPhysics3 folder and copy it to just ...\plugins\ and see if that fixes the problem.
-
-
Sorry if this has been asked before (noob here) but I noticed v2 was mentioned as having Mac support at some undefined time in the future. Will this be implemented in v3?
Cheers
XG
-
I made this things You told me, but it doesnt even help. I tried to move it out completely, or give the file to both- sketchyphysics and plugin folder, and i also tried to leave it in just plugin folder, but nothing helps. I am sorry i couldnt help You.
-
A bug (I don't know where it must be post, so I ad here): when I click on the piston joint, Internet Explorer says "script error"
-
@sgal said:
A bug (I don't know where it must be post, so I ad here): when I click on the piston joint, Internet Explorer says "script error"
Thanks Sgal. Fixed in next version.
-
@xgraphica said:
Sorry if this has been asked before (noob here) but I noticed v2 was mentioned as having Mac support at some undefined time in the future. Will this be implemented in v3?
Cheers
XG
Mac version isnt out yet. But soon.....
-
@sketchyman said:
I made this things You told me, but it doesnt even help. I tried to move it out completely, or give the file to both- sketchyphysics and plugin folder, and i also tried to leave it in just plugin folder, but nothing helps. I am sorry i couldnt help You.
Sorry, I am at a loss. I will keep looking for a solution. Let me know if you figure anything out.
-
SketchyPhysics 3 alpha for the Mac is in the vault and only awaits a final go-ahead for release. You should all see SP3a available for the Mac very, very soon.
The mac version shares the same basic code base as windows so most bugs will be common. The library that implements the Newton Physics engine is almost completely common code between Mac and PC so not likely to be a big differential bug source.
There are 2 other Mac Libraries
GetKeys.dylib is a Carbon based lib for getting keyboard state. It still works with Leopard as of the most recent OS release but the Carbon APIs it uses are being deprecated. Unfortunately, there aren't any simple APIs in MacOS for doing this when the Carbon ones go away. I'll have to move this to the HID Manager.
MacInput.dylib is an HID Manager library for reading USB Joysticks. This is pretty experimental right now. I'm using a Saitek P880 and it works great. Any other USB Joystick should work however if it implements a different output range on the axis then the response may be messed up. All axis and buttons are supported but dHat isn't. I'm working on supporting the XBox 360 controller right now. I'm using a Wireless XBOX controller with the MS Wireless gaming adapter and I have experimental code working at home. However, the XBox360 controller shows up as a gamepad in USB, not as a joystick so I have a little more work to do. I'm also putting in place the code necessary to read the keyboard and when that is done I will eliminate the GetKeys.dylib library.
Known bugs / issues:
Whatever shows up in this forum from PC users will almost certainly affect mac users.
On the Mac you have to be sure and change focus out of a web dialog field before any edits will be committed. If for instance you edit a ruby function in the Inspector window but leave the cursor in the field and then hit run you'll have unexpected behavior. My best recommendation right now is to always hit the tab key after an edit to force an onBlur event.
The control key can't be overridden in Sketchup Ruby scripts since it is reserved by Sketchup to implement a right mouse click on a one-button mouse. Therefore, anything in PC SketchyPhysics that refers to using the CONTROL key as a modifier should use the OPTION/ALT key instead. Shift as a modifier works just fine for both. Left handers may have a problem, please let me know, since I think we're using LSHIFT and LCONTROL and LALT. Lefties will just have to reach to the "wrong" side of the keyboard.
Keyboard emulation of joysticks works just fine. However, on the Mac the ASDW keys will fill the keyboard input buffer and start beeping at you when you use them. The arrow keys don't suffer this indignity. I'm working on it. If anybody knows how to turn this off please let me know!
Mac WebDialogs remain a little flaky. Much more so than on the PC. I don't know if Google is using WebKit or what for their built in browser but it isn't the most fun thing to work with right now. You'll see that windows don't retain location well and windows open at the wrong size but if you resize the window you can see all the stuff you need to see.
Have fun with it and tell me what you find so we can fix and improve!!!
Kevin Willey
-
@cphillips said:
Sorry, I am at a loss. I will keep looking for a solution. Let me know if you figure anything out.
Sketchyman, I might have found the problem. Your system is probably missing the msvcr71.dll. Another user just fixed a similar problem by installing that file in his windows/system32 folder. But I think it would also work if you put it in the Sketchup 7/ directory.
Let me know if it works and I will fix it in the installer.
-
Dear Coen,
I know what you mean. But I am really using windows xp proffesional. That what you see is just a theme for XP Which i really like. Because of that You thought I am using Linux. -
YOU ARE GENIUS CHRIS
I just made what you told me and it WORKS, I am so HAPPY
Thank you very much -
Cool. Ill update the installer. Thanks SketchyMan.
-
I found a mistake in buyoancy. If you make a boyoancying´palne and give it just to some space the ball acts like in water even out of that space. Look at this model
Advertisement