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
Adding Child Objects to existing content?
Moderator: Moderators
- DazDood
- Been on the forums for a while
- Posts: 298
- Joined: Mon Jan 14, 2008 11:29 pm
- Location: Crewe, Cheshire
Adding Child Objects to existing content?
Riding the rails till journey's end!
Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Re: Adding Child Objects to existing content?
* 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.
* 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.
My posts are my opinion, and should be read as such.
- DazDood
- Been on the forums for a while
- Posts: 298
- Joined: Mon Jan 14, 2008 11:29 pm
- Location: Crewe, Cheshire
Re: Adding Child Objects to existing content?
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
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
Riding the rails till journey's end!
Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
- bdy26
- Very Active Forum Member
- Posts: 3854
- Joined: Thu Oct 07, 2004 8:34 pm
- Location: Manchester, rain.
Re: Adding Child Objects to existing content?
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
B
http://bdy26.co.uk/sbhh/
Builder of The Cockermouth Keswick and Penrith Railway and Lancaster to Carlisle for RW; purveyor of dirty diesels to Vulcan Productions.
Builder of The Cockermouth Keswick and Penrith Railway and Lancaster to Carlisle for RW; purveyor of dirty diesels to Vulcan Productions.
- DazDood
- Been on the forums for a while
- Posts: 298
- Joined: Mon Jan 14, 2008 11:29 pm
- Location: Crewe, Cheshire
Re: Adding Child Objects to existing content?
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.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
Am I doing something wrong? and I'm quite surprised there isn't a tutorial on this.
Riding the rails till journey's end!
Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Re: Adding Child Objects to existing content?
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.
My posts are my opinion, and should be read as such.
- DazDood
- Been on the forums for a while
- Posts: 298
- Joined: Mon Jan 14, 2008 11:29 pm
- Location: Crewe, Cheshire
Re: Adding Child Objects to existing content?
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.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.
Riding the rails till journey's end!
Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Re: Adding Child Objects to existing content?
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.
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.