How to import Generic Models in Prescan to work with PBS (physics based sensors), Prescan Viewer and Prescan UnrealViewer
Introduction
PBS (physics based sensors) need a <modelname>.ps3d file
Prescan Viewer need <modelname>.osgb file
UnrealViewer need <modelname>.psscene + Assets folder
Details
1) Load as New the <modelname>.dae file in the Prescan Model Preparation Tool. Save the model in the Prescan Generic Models folder: this will generate among others <modelname>.osgb
2) PBS (physics based sensors) use .ps3d
Go to the Prescan Generic Models folder/<modelname>
In MATLAB: !pexconv <modelname>.osgb <modelname>.ps3d
In the Prescan shell: pexconv <modelname>.osgb <modelname>.ps3d
3) Prescan Viewer uses osgb => no need to do extra generations
4) World Viewer (Unreal) uses Prescan Asset model: .psscene + .psdb + Assets folder
Go to the Prescan Generic Models folder/<modelname>
In MATLAB: !pexconv <modelname>.osgb Assets\<modelname>.psscene -convertonly
In Prescan shell: pexconv <modelname>.osgb Assets\<modelname>.psscene -convertonly
Troubleshooting
If you get an error in MATLAB like: Error in node:Line559 Only uniform scales are allowed
In the model drawing take care that all the objects have/use the same scale factor.