Scenes and Physics Simultaneously?
-
Thanks Mr. K. I can't wait to try it out, I'll report on how it goes.
-
Running your model works fine. I added some physics to your yellow box, it still worked fine.
Then I changed the camera view in Scene 2, so that the Yellow Box stayed in view. When the simulation began, it appeared to be running the old Scene 2, not the new one. So I guess I don't understand how to update Scenes so that the script sees the updates. Before the simulation ended, Sketchup crashed. Possibly related to updating the scene, possibly a coincidence.
Then I pasted the script into my model, and tried to run the simulation. I got a long error message. It wouldn't let me copy the text of the error message, otherwise I'd post it. The error message contained a lot of the script, I can see that.
I had pasted the script into the UI of a group that has physics going on. Is that the right thing to do? Does it matter which object I paste the script into?
-
Well the best thing to do is just copy the box into your model, then you always know where you have the script and it's always as it was.
And by unchecking the OnTick field you can disable the scene transitions when not needed.I tested scene updating many times and didn't run into problems, could be a freak thing.
The script always gets scene information from SU so if it's showing the old scene then it wasn't yet updated, maybe it was still updating it and crashed because of that... -
Yes! Brilliant!! I copied the yellow box, and my model now magically does scenes and physics simultaneously. It's the magic yellow box!
Thank you Mr. K. Now I just have to learn how to capture and export the animations. I'm sure it has to do with the red record button in SP. I'll try to find a tutorial.
Thanks again.
-
I captured an animation using the red "toggle recording" button. After stopping the physics, it prompted me for "save animation", which I did.
Then I did
Plugins / SketchyReplay / Export animationAnd it made the correct number of frames, but the images were not correct, there was no physics and no camera movement either.
I'm still struggling to find out if I have the right SP, I believe I'm running 3.1, that's what it says in Plugins / SketchyPhysics / Version Number. But I downloaded 3.2. The installer file is named:
SetupSketchyPhysics3.2-Dec2
but then the subtitle of the file says:
SketchyPhysics3.1 Setup.
So I'm confused again.
-
If you want to export the camera view using Sketchy Replay you need to look at the file the industrious Mr. K posted in this topic:
http://forums.sketchucation.com/viewtopic.php?f=61&t=36029 -
I have an animation of a SketchUp/Sketchyphysics model with changing POV in camera on a website that I manage. I wanted to create an interesting short video clip derived from the Project Lead the Way logo that I could use for branding any videos that we make. The site is http://pltw.nmsu.edu
The 'physics' elements are moving on their own, but I also have a sphere that is hidden, which is attached to a servo, causing it to swing around the model in a wide arc. Before recording, I attach the camera to this sphere using the 'camera follow' context menu item. There is a second hidden sphere that is attached to a piston, which makes it travel from one end of the logo figure to the center. The two joints are controlled by the same control slider, so they go through their ranges simultaneously and proportionately. The camera is set to 'camera track' the sphere that is on the piston.
On run, I immediately pause the simulation. I set the camera placement and orientation, then set the camera track/follow. I then resume the simulation and also start CamStudio video screen capture software. I let the simulation run for a few seconds, then slowly move the control slider, which pulls the camera in its arc from below the logo figure to a point directly above it. At the same time, the camera's view is tracking the ball on the piston track, making it end looking straight down onto the logo figure when the tracked ball is in the center of the logo.
I recorded this simulation several times, using different line and surface settings. All of the recorded video is then remixed using Adobe Premier to give me the desired full effect.
This was done using SketchUp 7 (free) and SketchyPhysics 3
-
This is a second option for scene transitions during a SketchyPhysics simulation. Again, I wanted to produce a video clip to use as the title/branding of a video we produced. An example is found in the first 35 seconds of the embedded video on my website: http://pltw.nmsu.edu/cPage.aspx?pageid=event&queryid=110419
In this simulation, I used a Photo Match to guide me in modeling a clock tower that is an iconic feature of the College of Engineering. I particularly wanted to convey the transition of ideas from the familiar (clock face with moving hands) to the esoteric (Vertical Wind Turbine) and finally the concrete (Clock tower in the courtyard). After roughly modeling the tower, I added the clock face and hands, as well as the turbine. One clock hand and the turbine itself were attached to motors, making them spin.
Created one scene where the clock face is centered in the frame, and the face fills the frame. Created a second scene where the lower face and axis of the turbine is centered and fills the scene. These have some equivalency to convey the idea of relatedness. Finally, I used the Photo Match scene to superimpose the model and the photo.
After starting CamStudio video screen recorder, I centered on the clock face scene and started the simulation. I recorded the clock face simulation, then stopped and moved to the turbine scene. Restart the simulation to record the turbine scene, using X-ray surfaces. I then clicked on the Photo Match scene tab. Since the simulation is still running, the scene transition ran only one frame, then stopped, but the simulation is still running. I rapidly and repeatedly clicked the Photo Match scene tab to move the scene transition a frame at a time. When the transition was done, I recorded for some more seconds, then ended the simulation and recording.
Using Adobe Premier, I imported the captured video and edited it, using cross-fade transitions between the first two scenes. The final transition to the photo match scene seemed to slow down asymptotically as I was clicking the scene tab, so I needed to accelerate the framerate of the scene transition to make it appear more even.
This is a rather crude way to achieve simultaneous scene transition with physics simulation, but it worked for this clip.
-
@ DanYHKim (or anyone) . . .
I'm willing to pay a reasonable fee if someone can get my animation exported to a quicktime movie. The physics simulation and camera movements all work fine. I capture the animation fine. For some reason when I export the animation, it's missing the physics.
If you would like to try the file, please send me an email. Thanks.
-Ace Baker
acebaker1234 [at] yahoo [dot] com -
@ace baker said:
... if someone can get my animation exported to a quicktime movie. The physics simulation and camera movements all work fine. I capture the animation fine. For some reason when I export the animation, it's missing the physics. ...
Ace, did you ever solve this?
-
SP animations cannot be exported simply with the native SU (scene) animation tools. You can export it with Twiligh Render for instance (get someone to export it for you that way). It will even be much "nicer"
Advertisement