An area for discussing new ideas and additions to Oolite.
Moderators: winston , another_commander
cbr
---- E L I T E ----
Posts: 1422 Joined: Thu Aug 27, 2015 4:24 pm
Post
by cbr » Thu Jan 06, 2022 1:52 pm
In shipdata.plist one can give a model a "model_scale_factor" = 0.5; which nicely scales/moves everything( subents ) to it ( 0.5x ) position.
But when the subentities are models the model_scale value from the original subentity model is ignored.
Code: Select all
{
subentity_key = "python";
type = "standard";
orientation = ( -0.7071, 0.0, 0.7071, 0.0);
"model_scale_factor" = 2.0;
position = ( 126.992, 23.673, 760 );
}
this subentity scale factor is ignored
Code: Select all
"python2" = {
like_ship = "python";
"model_scale_factor" = 2;
}
this scaled python2 also is ignored as (enlarged) subentity
trunk 1.91
montana05
---- E L I T E ----
Posts: 1166 Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)
Post
by montana05 » Thu Jan 06, 2022 3:21 pm
cbr wrote: ↑ Thu Jan 06, 2022 1:52 pm
In shipdata.plist one can give a model a "model_scale_factor" = 0.5; which nicely scales/moves everything( subents ) to it ( 0.5x ) position.
But when the subentities are models the model_scale value from the original subentity model is ignored.
Code: Select all
{
subentity_key = "python";
type = "standard";
orientation = ( -0.7071, 0.0, 0.7071, 0.0);
"model_scale_factor" = 2.0;
position = ( 126.992, 23.673, 760 );
}
this subentity scale factor is ignored
Code: Select all
"python2" = {
like_ship = "python";
"model_scale_factor" = 2;
}
this scaled python2 also is ignored as (enlarged) subentity
trunk 1.91
Scaling is a bit tricky, while all subentities are automatically scaled with the mother a sub with a different ratio to the mother will result in the original size of the sub.
Scars remind us where we've been. They don't have to dictate where we're going.