anmintion movement use MXS with external data

anmintion movement use MXS with external data

Anonymous
Not applicable
553 Views
10 Replies
Message 1 of 11

anmintion movement use MXS with external data

Anonymous
Not applicable
I got a difficult when I do a work
I want to animate a bidge model use the data collected by sensors to simulate the bridge movement when the bridge was hitted by ship or blow by wind
0 Likes
554 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
There are several parts to that problem... building the bridge, rigging the bridge, reading an external file, interpreting the sensor data, producing the animation... with which part do you want help?
0 Likes
Message 3 of 11

Anonymous
Not applicable
about aniamtion how to make the data to animation the model
0 Likes
Message 4 of 11

paulneale
Advisor
Advisor
I don't follow your questions at all here. What is it you are trying to do?

flyingaway wrote:
> about aniamtion how to make the data to animation the model
Paul Neale

http://paulneale.com


Paul Neale




EESignature

0 Likes
Message 5 of 11

Anonymous
Not applicable
sorry, perhaps I didnt express it correctly
I got a series of position data , and the data are some certain postion of an object such as a long thin box or something like , the difficult is how I use the data do animation
0 Likes
Message 6 of 11

Steve_Curley
Mentor
Mentor
Read the position data from the external file, then move the object(s) to the required position within an "animate" block.

Psuedo code - don't try copy/pasting it and hoping it will work 😉


-- read the x, y and z coordinates (and probably the time too) from the file

with animate on
(
at time t obj.pos =
)

Same goes for rotation data, if that's applicable.

There are several examples in this forum of opening files and reading the data from them.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 7 of 11

Anonymous
Not applicable
yeah , I always see the files and the examples
but I did not know how can let the whole object do some deformation like bend,twist using the out data
0 Likes
Message 8 of 11

Steve_Curley
Mentor
Mentor
That isn't what you asked for - you specifically said "I got a series of position data , and the data are some certain postion of an object ".

If you want the right answer to your question you have to ask the right question in the first place...
By "deformation" do you mean sub-object animation? animating Modifier parameters? Either way it is going to become a complex script very quickly - many different kinds of data for many different things. If you don't know MXS pretty well it is going to be a long job.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 9 of 11

Anonymous
Not applicable
uh
maybe, I make the problem more difficult than it is
what I want to do is to recreate the scene of a bridge
the bridge was hit by a ship , and now I have the data when the bridge was hitted , all I want to do is using maxscript to read the data and simulate the bridge movement
the data was collected by sensors and the sensors were placed in some point of the bridge body
0 Likes
Message 10 of 11

Steve_Curley
Mentor
Mentor
The you need to read the data (move/rotate/whatever) and apply the transforms to each part of the bridge. The more parts there are, the longer this will take to do. It is not a trivial task given the complexity of a bridge structure. There is no one button which which will magically do all that for you - you'll have to write a script which imports the motion data and applies it to a component, and run it for every piece of the bridge - or against the whole bridge if it's just 1 mesh.

Remember - we're all working in the dark here, you've not given us the bridge, no samples of the data, not even an image of the bridge - in fact nothing at all to work on other than that you want to import data and that it relates to a vessel hitting a bridge.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 11 of 11

Anonymous
Not applicable
yeah
I also havent got the data , just as you said we're all working in the dark
perhaps we should make it simpler ,dont care about the other componets of the bridge
if only a long box or a beam what should we do ?
I ever thought about control the vertex , but they said that was impossible
also I tried using nurbs create the model and control the baseobject --- point, but get failed
so maybe I should create the bridge body using lots of box ,that seem easily to use the data , but the effect was unacceptable
0 Likes