[FIXED] Uniform scaling transformations << RV253+

Ask a question about usage of application or give us your feedback regarding new features and bug issues.

Moderator: Tomasz

jiminy-billy-bob
Thea Beta Tester
Thea Beta Tester
Posts: 302
Joined: Mon Sep 23, 2013 3:13 pm
Contact:

Uniform scaling transformations (last digit in the 4x4 matrix) are not recognized by Thea.
It's usually not a problem as they are almost never used. Sketchup scaling tool doesn't produce this kind of transformations, but we can use them via the ruby API.

This : Geom::Transformation.scaling(2,2,2)
will result in

Code: Select all

2 0 0 0
0 2 0 0
0 0 2 0
0 0 0 1
It works, the group/comp will be scaled twice bigger in both SU and Thea.

But this : Geom::Transformation.scaling(2)
will result in

Code: Select all

1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 .5
The object will be scaled twice bigger in SU alone. Not in Thea.

This bug is not a huge deal for me. When I saw that it was broken in Thea, I decided to only use the first option. But there might be other plugins out there how scale objects using the second method.
User avatar
JQL
Thea Beta Tester
Thea Beta Tester
Posts: 5264
Joined: Sun Jun 23, 2013 6:34 pm
Location: Lisboa
Contact:

I always like to see this kind of BUG/FR's it always means something interesting is in the works! ;)
www.casca.pt
Visit us on facebook!

Win 10 64bit
Sketchup 2017 64bit
Intel i7 5820K 3.3Ghz 32Gb Ram
Nvidia Titan X 12Gb
User avatar
tahota
Licensed User v1.5
Licensed User v1.5
Posts: 187
Joined: Fri Sep 14, 2012 11:29 pm
Location: Spokane, Washington
Contact:

I can confirm scaling issues. We have it happen every now and then where Thea does not recognize a scaled object. Most notably when scale definition has been used on a component. I can provide model if requested.
We're hiring Thea + Sketchup modelers.
User avatar
Tomasz
Thea Developer
Thea Developer
Posts: 9068
Joined: Fri Jul 18, 2008 5:09 pm
Contact:

It is very rare thing and I wish no plugin would use this additional uniform scaling.
I am using it at a last level (leaf), but not all way through the model tree.

This needs a fix though, since it is possible to create such a transformation with Ruby.
jiminy-billy-bob
Thea Beta Tester
Thea Beta Tester
Posts: 302
Joined: Mon Sep 23, 2013 3:13 pm
Contact:

When exporting the transformation to Thea, you could just divide each scaling value by the uniform scaling.
Something like:

Code: Select all

trans[0] = trans[0] / trans[15]
trans[5] = trans[5] / trans[15]
trans[10] = trans[10] / trans[15]
If you do this with every transformation, you should be good.
User avatar
Tomasz
Thea Developer
Thea Developer
Posts: 9068
Joined: Fri Jul 18, 2008 5:09 pm
Contact:

jiminy-billy-bob wrote:When exporting the transformation to Thea, you could just divide each scaling value by the uniform scaling.
Thanks. I know that...
Tomasz wrote:I am using it at a last level
It is still a pita.
jiminy-billy-bob
Thea Beta Tester
Thea Beta Tester
Posts: 302
Joined: Mon Sep 23, 2013 3:13 pm
Contact:

Tomasz wrote:Thanks. I know that...
Yes, sorry... :|
User avatar
Tomasz
Thea Developer
Thea Developer
Posts: 9068
Joined: Fri Jul 18, 2008 5:09 pm
Contact:

Can I have a test model, please? I have created one, but it behaves insane in SketchUp itself.
What is good in a transformation that make a component fly all around a place? :?
jiminy-billy-bob
Thea Beta Tester
Thea Beta Tester
Posts: 302
Joined: Mon Sep 23, 2013 3:13 pm
Contact:

I don't have any complex exemple as I don't use these transformations in Skatter. I can give you a simple one with cubes or so, but I'm sure you can craft something like that yourself quicker than me sending it to you ;)

What happens exactly with the "flying around"?
User avatar
Tomasz
Thea Developer
Thea Developer
Posts: 9068
Joined: Fri Jul 18, 2008 5:09 pm
Contact:

Check it yourself. Just orbit the model.
Attachments
UniformTranformationWeirdness.zip
Try it yourself
(39.94 KiB) Downloaded 22 times
Post Reply

Return to “Support & Feedback (SketchUp)”