Vehicle component manipulation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Reverted edits by Marcin778 (talk) to last revision by Roma ™)
Line 1: Line 1:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
== Vehicle component manipulation ==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
With the introduction of vehicle component movement we now have the ability to manipulate parts of the model independently on a per vehicle basis which includes hiding parts, moving parts and rotating parts relative to the vehicle they are currently on.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
== The Abilities ==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Position: You can reposition a component relative to it's chassis or parent
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Rotate: You can rotate the component around it's axis
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Hide/Show: You can hide the component so it no longer shows or shows
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
==How it works==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Adding components is very simple if you have any previous modelling experience each model part can have a name this name acts as a unique identifier for the part.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
for ease of use it is possible to add hidden by default components by prefixing this name with a # in the model file though it will not work on anything the game recognizes for instance wheels cannot be hidden by default so it might be best to prefix anything you wish to add.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
like so:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
''#''hellokitty
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
This can be re-shown any time and the shown flag is persistent across streaming unless you re-hide it after.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Any components need to be under the chassis dummy at least.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
== Simple things ==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
The scripting functions make things like adding wheels very easy it should be fairly easy to add and spin wheels by copying the rotation from others into your wheel each frame and you can hide the originals using the hide function if need be.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
This could be useful for an insane amount of wheels on a tank!
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
or just making more than 2 props work on planes
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Generally speaking things that spin are fairly easy to do it's more complex animations that require the hardest work but eventually there should be an animation library on google code when it's finished to help with this.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
== An interesting idea ==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
It should be theoretically possible to add different types of doors to one model e.g. gull wings and scissor doors which could work like so:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Hide the original door
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
say the rotation of your normal door is between 0 and 45 degrees so you use that as a base for your movement
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
take that rotation and apply it on another axis for a different type of door or split it between axis each frame to get smooth door movement of the new door ( BONUS: it even works with swinging doors! )
 
== James bond style ==
Guns, guns and ... rockets? are the order of the day secret panels with hidden rockets? no problem!
 
== More advanced ==
There are no limits on the amount of moving, hidden or showing parts and anything hidden will not be rendered so you can add thousands of parts hidden and you should not have to worry about them slowing anything down.
 
This means that there is nothing stopping anyone from making a fully transforming transformer robot which changes from a car to a robot but this will require a lot of work on both the modelling and scripting side.
 
[[Category:ID Lists]]

Revision as of 18:44, 1 January 2017

Vehicle component manipulation

With the introduction of vehicle component movement we now have the ability to manipulate parts of the model independently on a per vehicle basis which includes hiding parts, moving parts and rotating parts relative to the vehicle they are currently on.

The Abilities

Position: You can reposition a component relative to it's chassis or parent

Rotate: You can rotate the component around it's axis

Hide/Show: You can hide the component so it no longer shows or shows

How it works

Adding components is very simple if you have any previous modelling experience each model part can have a name this name acts as a unique identifier for the part.

for ease of use it is possible to add hidden by default components by prefixing this name with a # in the model file though it will not work on anything the game recognizes for instance wheels cannot be hidden by default so it might be best to prefix anything you wish to add.

like so: #hellokitty

This can be re-shown any time and the shown flag is persistent across streaming unless you re-hide it after.

Any components need to be under the chassis dummy at least.

Simple things

The scripting functions make things like adding wheels very easy it should be fairly easy to add and spin wheels by copying the rotation from others into your wheel each frame and you can hide the originals using the hide function if need be.

This could be useful for an insane amount of wheels on a tank!

or just making more than 2 props work on planes

Generally speaking things that spin are fairly easy to do it's more complex animations that require the hardest work but eventually there should be an animation library on google code when it's finished to help with this.

An interesting idea

It should be theoretically possible to add different types of doors to one model e.g. gull wings and scissor doors which could work like so:

Hide the original door

say the rotation of your normal door is between 0 and 45 degrees so you use that as a base for your movement

take that rotation and apply it on another axis for a different type of door or split it between axis each frame to get smooth door movement of the new door ( BONUS: it even works with swinging doors! )

James bond style

Guns, guns and ... rockets? are the order of the day secret panels with hidden rockets? no problem!

More advanced

There are no limits on the amount of moving, hidden or showing parts and anything hidden will not be rendered so you can add thousands of parts hidden and you should not have to worry about them slowing anything down.

This means that there is nothing stopping anyone from making a fully transforming transformer robot which changes from a car to a robot but this will require a lot of work on both the modelling and scripting side.