Page 1 of 1
Adding Child Objects to existing content?
Posted: Wed Dec 07, 2011 1:08 am
by DazDood
Hi all, mods please feel free to move this if its in the wrong forum
As stated in the topic, is it possible to add a child object to an existing object in the such as one of the default wagons for example.
Am I not much mistaken that extra headlights (albeit none working ones) were added to the class 47 for some reskins?
If so how can I go about adding to default models?
Regards
Daz
Re: Adding Child Objects to existing content?
Posted: Wed Dec 07, 2011 2:13 am
by Kariban
* Make new child model
* Export as scenery
* Clone existing child entry - eg the sound child - and insert path to your scenery item
* spend an hour reloading a scenario to get it positioned ( scenario, not the whole game ) as you fiddle with the position matrix.
* Smile.
Re: Adding Child Objects to existing content?
Posted: Wed Dec 07, 2011 4:51 am
by DazDood
Ok, I have made a simple box as a test and want to attach to a wagon. I have exported as a scenery object but am clueless to what you mean by "Clone existing child entry - eg the sound child - and insert path to your scenery item"
Also having done a search through the forum I should be able to visually position the object in the Asset Editor? - But if is the case how can I load a default asset to position it on?
Regards
Daz
Re: Adding Child Objects to existing content?
Posted: Wed Dec 07, 2011 7:09 am
by bdy26
Search the bin file for "child" - the driver, sounds, lights are all referred to as children. Each will show the path to the object, plus a set of figures that set the position. Essentially you need to copy an entry, and then change it to refer to your new object. The hour is to tweak the figures to get it in the right place!
B
Re: Adding Child Objects to existing content?
Posted: Wed Dec 07, 2011 3:14 pm
by DazDood
bdy26 wrote:Search the bin file for "child" - the driver, sounds, lights are all referred to as children. Each will show the path to the object, plus a set of figures that set the position. Essentially you need to copy an entry, and then change it to refer to your new object. The hour is to tweak the figures to get it in the right place!
B
I've copied the reference to driver from one of the default locos and changed the path to the object to reference my box object but it doesn't even show up when I place the wagon.
Am I doing something wrong? and I'm quite surprised there isn't a tutorial on this.
Re: Adding Child Objects to existing content?
Posted: Wed Dec 07, 2011 3:17 pm
by Kariban
It's quite possibly inside the wagon - you'll have to adjust the position, which is the last three numbers but 1 in the Matrix section.
Re: Adding Child Objects to existing content?
Posted: Wed Dec 07, 2011 3:44 pm
by DazDood
Kariban wrote:It's quite possibly inside the wagon - you'll have to adjust the position, which is the last three numbers but 1 in the Matrix section.
Well I have managed to coppy the dummy light model that was added to some of the class 37 reskins and have managed to get that to appear several meteres infront of my wagon. However when changing to reference my box it still displays the light.
Re: Adding Child Objects to existing content?
Posted: Wed Dec 07, 2011 7:40 pm
by Shadders
Fun isn't it?
A child objects position, rotation etc is controlled by a 4x4 matrix. Adjusting the position relative to the centre of the parent object is relatively easy but it get a little more complex if you need to rotate the child.
Kariban's post's here was really helpful for me:
http://forums.uktrainsim.com/viewtopic. ... 4x4+matrix
Good luck.