Camera Simulation with MSPhysics

Camera Simulation with MSPhysics

Postby faust07 » Fri Jan 05, 2018 7:40 pm

Since almost everyone who develops 3D-models wants to simulate sometime a pivoting camera,
scenic flights, over flights, or a flight-through, here are some solutions with the current
plugin MSPhysics by Anton Synytsia.
MSPhsics does a lot more, of course, but camera simulation is a good way to get started.
And with some model and script examples it is no problem...
MSphysics makes it easy to simulate and record camera and target point movements.
The generated single images can be used to create films in all SketchUp styles or in photorealistic rendering quality.

Let's start with a simple circular movement of the camera around a fixed object.
A simple motor-joint with a controller is sufficient.

Important: In this post, I'm only giving the information necessary for the camera simulation. For the basic preparation of MSPhysics models there are descriptions of Anton S. in his posts about his plugin, there are tutorials from PituPhysics and Samuel Ketner on YouTube.
For advanced users: Some examples of complex models and scripts for camera simulation can be downloaded from the 3D Warehouse (PituPhysics).

If you haven't installed the plugin yet, then follow the installation instructions in the MSPhysics main post of Anton S.
Load the model you want to simulate.
Select all groups and components except the target object and set them in context menu -> MSPhysics -> State -> Ignore.
Set the state of the target object in the MSPhysics UI to "static" and its shape to "box".
Give the target object the instance name "target1".
Add a motor joint on top of the target object.
Place a camera object as a group at the desired camera start position.
At the beginning it is best to simply copy the camera object from my file.
The script is already included in the object.
Assign the camera object to a layer that you can turn off for the simulation.
Connect the motor joint to the camera object with the MSPhysics "Joint Connection Tool":
- click on the "Joint Connection Tool" in the MSP Toolbars
- select the Motor Joint with the green arrow
- press the "+" key and add the camera object to the selection.
Activate the MSPhysics icons "Toggle Camera Replay" and "Replay", press "Play" and run the
simulation.
To stop the camera simulation press the "Reset" icon.
You can then export the animation in the pull-down menu under MSPhysics - "Export Replay To Images".
(examples in the GIF are from 3D-Warehouse)
5
Last edited by faust07 on Mon Jan 08, 2018 10:02 am, edited 2 times in total.

faust07 
 

Re: Camera Simulation With MSPhysics

Postby faust07 » Sat Jan 06, 2018 5:08 pm

Example 2 of the camera motion simulation: control via a "Slider Controller" in the "MSphysics Control Panel":
In the attached file the Motor-Joint moving the camera is extended by a Slider Controller.
Now it is possible to control the speed and direction of rotation during the simulation with the slider.
1

faust07 
 

Re: Camera Simulation With MSPhysics

Postby faust07 » Sat Jan 06, 2018 6:49 pm

Example 3 of the camera motion simulation: linear camera motion -
controlled via a "Slider Controller" in the "MSphysics Control Panel".

Add a "Piston" joint at a position you like to start the linear movement of the camera.
Place the camera object at the desired camera start position (near the Piston joint).

Delete the Motor joint or disconnect it from the camera object if it still exists.
Connect the Piston joint to the camera object with the MSPhysics "Joint Connection Tool":
- click on the "Joint Connection Tool" in the MSP Toolbars
- select the Piston joint with the green arrow
- press the "+" key and add the camera object to the selection ("-" key to disconnect a joint).

In the attached file the Piston joint moving the camera is already equipped with a Slider Controller.
Now it is possible to control the linear movement of the camera during the simulation with the slider.

Record, Play and Export with MSPhysics Replay functions if you want.
1

faust07 
 

Re: Camera Simulation With MSPhysics

Postby faust07 » Sun Jan 07, 2018 7:07 pm

Example 4 of the camera motion simulation could be the basis for path bound camera flights.
Again controlled with a "Slider Controller" in the "MSphysics Control Panel".

Add a CurvyPiston joint at a position you like to start the flight of the camera.
Place the camera object at the desired camera start position (near the Piston joint).

Connect camera and joint as described in the posts above.

Everything is prepared in the attached file.
The CurvyPiston joint moving the camera is already equipped with a Slider Controller.
Have fun trying it out!
2
Last edited by faust07 on Mon Jan 15, 2018 12:27 am, edited 1 time in total.

faust07 
 

Re: Camera Simulation With MSPhysics

Postby faust07 » Sun Jan 07, 2018 11:11 pm

And, in case you haven't discovered it yet: MSPhysics has an improved Scenes animation compared to SketchUp and also an excellent keyboard navigation, which is in no way inferior to the camera simulation of first person shooters and has some good setting possibilities.
You can find the activation and settings directly in the MSPhysics User Interface (UI). It couldn't be easier...
The next post will be a bit more exciting. I think I'll make suggestions for simulating camera and target movements. But I think anyone who has followed the exercises so far can do it on their own.
One possibility is to place the target point on the existing camera curve, another is to define a separate movement or movement curve for the target object.
The speeds of the camera and target objects can also be controlled via scripts or keyboard input.
I hope there is some interest in it....
2
Last edited by faust07 on Tue Mar 13, 2018 6:35 pm, edited 1 time in total.

faust07 
 

Re: Camera Simulation with MSPhysics

Postby faust07 » Mon Jan 15, 2018 12:38 am

Example 5: Camera and target movement.
Different movement paths are defined for the camera and the target object.
The speeds of the camera is again controlled with Slider Controller.
You can test it with the attached file.
1

faust07 
 

Re: Camera Simulation with MSPhysics

Postby faust07 » Tue Feb 20, 2018 7:02 pm

Example 6: Camera and target on the same line - fly through animation.
The same movement paths is defined for the camera and the target object.
The speed of the camera is controlled with Slider Controller.
The target speed is automatically the same.
You can test it with the attached file again.
1

faust07 
 

Re: Camera Simulation with MSPhysics

Postby faust07 » Tue Mar 13, 2018 6:32 pm

And last but not least, the camera can also be controlled via the entry in the scene description "camera follow 'entity name'" and "camera track 'entity name'". Just as it was possible in SketchyPhysics. In these scenes, the camera will automatically track the corresponding named object.
1

faust07 
 

Re: Camera Simulation with MSPhysics

Postby solo » Mon Sep 03, 2018 11:09 pm

If only I knew this was possible a week ago, would have saved me a ton of time and grey hairs. Awesome
1
www.solos-art.com

I'm a social vegan, I avoid meet.
User avatar
solo 
Global Moderator
 

Re: Camera Simulation with MSPhysics

Postby faust07 » Wed Sep 05, 2018 10:25 pm

Yes, and there are a few more things you can do with MSP scripts...
2

faust07 
 

Re: Camera Simulation with MSPhysics

Postby Ahmed0007 » Sat Jan 12, 2019 12:48 am

thanks for sharing
i can use your scripts ?
1

Ahmed0007 
 

Re: Camera Simulation with MSPhysics

Postby faust07 » Sat Jan 12, 2019 5:03 pm

Yes of course. Please post improvements.
1

faust07 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Arqjruiz, brunocc, cerl, Pearco28, TIG and 19 guests

Visit our sponsors: