KeyShot Forum

Technical discussions => General discussion => Topic started by: jhiker on April 28, 2020, 01:54:45 AM

Title: Import one scene into another - scale goes awry...
Post by: jhiker on April 28, 2020, 01:54:45 AM
I just don't get this and I never have...
I have two scenes, both have scene units set to mm. The scale of the objects is set to 1.
Individually the scenes look OK.
If I open one of the scenes and import the other one into it the scales are greatly mismatched. Why should that happen?
In this picture the tallest object in the scene inside the red box is about 350mm high. In the imported scene the grey enclosure is also about 350mm tall.
I have always had a problem with this and I just don't know why it happens. It's driving me mad!
Any thoughts?
Title: Re: Import one scene into another - scale goes awry...
Post by: designgestalt on April 28, 2020, 11:47:52 AM
I´d be curious on the answer here as I have that all the time ... !!

designgestalt
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on April 29, 2020, 01:21:47 AM
I should add that both scenes were modelled in the same CAD system with units set to mm.
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on April 30, 2020, 05:53:00 AM
Is this an issue for a lot of us or is it something just me and a couple of others are experiencing?
Title: Re: Import one scene into another - scale goes awry...
Post by: Finema on April 30, 2020, 06:10:39 AM
Hi
I can't reproduce that. Have you a simple file to test it ?
Title: Re: Import one scene into another - scale goes awry...
Post by: KeyShot on April 30, 2020, 04:31:45 PM
Which format are you importing? If you check 'keep scale' in the import dialog then the scale of the geometry in the imported file will be respected.
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on May 01, 2020, 12:02:16 AM
I am importing one BIP file into another BIP file.
I don't see 'keep scale' in the import dialogue.
Thanks.
Title: Re: Import one scene into another - scale goes awry...
Post by: Niko Planke on May 01, 2020, 12:48:25 AM
Hey  jhiker,

To get to the bottom of this I think its best to get example files for us to investigate the issue.
The bip import should use the units set in the specific .bip file via "Edit->Set scene units".

If the units are set  in both files and you still experience the issue you can send the files securely via our https://keyshot.wetransfer.com/ (https://keyshot.wetransfer.com/) for me to have a look. Send to niko-at-luxion-dot-com.
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on May 01, 2020, 05:01:17 AM
Thank you Niko. In both scenes the units are set to the same - mm.
I'll send the files for you to investigate.
Title: Re: Import one scene into another - scale goes awry...
Post by: theAVator on May 01, 2020, 06:49:44 AM
Is the scale in your BIPs the same (not units, but scale, as seen down in the Position tab)? i.e. X=1, Y=1, Z=1, global 1.  Maybe not the correct answer, but something to check anyways. If one of those got wonky and then tried importing it into a different scale, then it just makes things more wonky. And if both got wonky before combining, then you've got one heck of a wonky donkey going on.

That tab has always eluded me from trying to make sense of it.
Title: Re: Import one scene into another - scale goes awry...
Post by: designgestalt on May 04, 2020, 03:30:35 AM
I can add from my side:
I have this all the time, also when combining bip files, so I can second, what jhiker is saying.

I create 95% of my data in Alias designstudio, I also pass all data I recive from clients through Alias, where I first prepare the files so that they are easier to handle in KS (i.e. applying different shaders to easier apply materials in KS, sorting the parts by layers etc.) so all my files are in the end more or less native .wire files (unstiched, NURBS data, although I very seldom enable the NURBS import in KS), which works very well.
the only issue is the scaling issue and this happens all the time. all parts come with the same scale from alias, all parts are positioned to the same coordinate system, all parts have the same unit settings!
the scale is always off by a power of ten (does that translate? I had to look that up in Google...), so it is no issue in between inches and cm.
I shall add, that this is not replied quickly here, I have spent many hours in trying different settings over the years and finally accepted it as a flaw, but I would pretty much rule a problem with the standard settings.

regards
designgestalt
Title: Re: Import one scene into another - scale goes awry...
Post by: Niko Planke on May 05, 2020, 03:53:49 AM
Hey jhiker,

I do not seem to be able to find the files in my inbox, did you send them already?

@designgestalt

That is defiantly something we should investigate. Just for me to make sure i am checking the right thing.  What version of Alias are you using?
And if you go to "Preferences->Construction options->Units->Linear" what are those set to?  This sound more like a cm vs mm issue.
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on May 06, 2020, 12:44:24 AM
Hi Niko,
I just sent them again.
I'm using Alibre latest version, and Keyshot Pro.
Thanks.
Title: Re: Import one scene into another - scale goes awry...
Post by: Niko Planke on May 06, 2020, 01:57:36 AM
Hey  jhiker,

I checked the files from what i can see everything behaves as expected.

I suggest you check the scale of the file containing the gauges as far as i can see in the file, they are scaled to only be 2,3 mm high instead of the expected 350mm.

In case you struggle to find the scale in KeyShot here is how you do.
In the Scenetree select the part or group you want to know the extends of.
Then below the scene tree go to "Properties"
The Values noted as "Size:" are the size of the selected parts bounding box using the current scene unit.

When importing some file formats KeyShot will not be able to see from the file what unit is used in the CAD software.
You therefor need to be sure that the right unit is chosen in the import Dialogs "geometry" settings. This should match the unit used in your CAD software.

If you do not see the "unit" dropdown KeyShot is able to detect the unit used from the file format.

Depending what File format you use that might be the reason for incorrect scaling.

@designgestalt that also applies to .wire files. I suggest the next time you experience this you check the bounding box size in KeyShot for a part you know the scale for to verify the individual KeyShot files are scaled correctly.

My suspicion would be that one of the alias files was modeled in cm and the other in mm.

Let me know if this does not explain the behavior you see.


Title: Re: Import one scene into another - scale goes awry...
Post by: designgestalt on May 06, 2020, 04:31:12 AM
hello Niko,
thanks for going so deeply into detail here !!
there is one specific file that I keep carrying through for at least 5 years now. It is for one specific customer, where I only add to an old collection with some carry-over models. Also a lot of probs I can keep from the old file.
This is always giving me the trouble.

My thought was, that even though passing all the files through Alias it could be that the model in itself still keeps the history from the original CAD file. I sometimes also import files from Alias, that come in 90degrees rotated, although they where orientated correctly in Alias.

I am currently stuck in another project and cannot investigate any deeper timewise, but have to take a look into this project in 1-2 weeks for next years collection! I will check your suggestions and will let you know!!

thanks a bunch so far ...
this was already bucking me for years now and costed a lot of nerves and time, would be great if I finally could solve this!

cheers
designgestalt
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on May 06, 2020, 06:36:18 AM
Quote from: Niko Planke on May 06, 2020, 01:57:36 AM
Hey  jhiker,
I checked the files from what i can see everything behaves as expected.
I suggest you check the scale of the file containing the gauges as far as i can see in the file, they are scaled to only be 2,3 mm high instead of the expected 350mm.
Thanks Niko.
How do  you come to the conclusion that the gauges are scaled to be only 2,3mm high. Scene units are mm - model came out of Alibre at 1:1.
Thanks.
Title: Re: Import one scene into another - scale goes awry...
Post by: Niko Planke on May 06, 2020, 07:21:41 AM
Hey,
you can see the scale in the gauges properties tab.(located under the scene tree next to the position tab).

I hope that helps.
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on May 06, 2020, 07:33:33 AM
Quote from: Niko Planke on May 06, 2020, 07:21:41 AM
Hey,
you can see the scale in the gauges properties tab.(located under the scene tree next to the position tab).

I hope that helps.
Yes - I can see that.
But where did you get the 2,3mm from?
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on May 06, 2020, 07:52:52 AM
I tried a new set-up with two new scenes/models, everything in mm and everything set to 1:1 and it worked as expected.
Title: Re: Import one scene into another - scale goes awry...
Post by: Niko Planke on May 06, 2020, 11:54:36 PM
Hey,

I can see it being a bit hard to find.
I have attached a screenshot for illustrating where you can find the size information.
I must admit that i misread the numbers, the part is actually 8 mm high. But i think that is still smaller than expected?

If you are comfortable with imperial units you can also download the ruler from the Cloud Library: keyshotcloud://get?eyJpZCI6NjgzNywidHlwZSI6NH0%3D
The ruler should come in correctly scaled when adding it to the scene.
I will request a metric version of the ruler to make live easier for those of us not familiar with imperial units.

Note for anyone else reading this: To download the Ruler via the above link you need to have KeyShot 9 or newer installed on your system.
Title: Re: Import one scene into another - scale goes awry...
Post by: jhiker on May 07, 2020, 12:06:33 AM
Hi Niko - that's very useful - thanks.
Title: Re: Import one scene into another - scale goes awry...
Post by: Niko Planke on May 07, 2020, 12:29:45 AM
I am glad we could shed some light on this issue.

Let me know if you experience this issue again.
Title: Re: Import one scene into another - scale goes awry...
Post by: HaroldL on May 08, 2020, 11:53:55 AM
Niko,The link you provided does not work. I tried it both with and without Keyshot 9.3 running.
Title: Re: Import one scene into another - scale goes awry...
Post by: DerekCicero on May 08, 2020, 12:03:52 PM
If you open the Cloud Library (lower left hand corner) and go to the Models tab and search for "Ruler" it will show up.
Title: Re: Import one scene into another - scale goes awry...
Post by: HaroldL on May 10, 2020, 02:01:13 PM
Yup, did that right after I posted the error image here.Thanks.