Hello,
I have a question regarding loading bitmaps over a network. During the Corona times, we are working remotely and all our stuff are on company servers. However, our main issue what we currently have are large bitmaps references in all max files. When opening any max file, it takes x minutes to get the scene open until all large bitmaps are pulled to max cache in native resolution.
Is there any way how to force 3dsmax to ignore loading all bitmaps/ load only last mip or relink all bitmaps to a local repository? Load a max file without bitmap and then using local stored bitmaps would be the best solution I think.
I was checking maxscript but the <boolean>loadMaxFile <filename_string> [useFileUnits:<bool>] [quiet:<bool>] does not provide any handler to operate with before actual pulling bitmaps.
I was checking as well Bitmap proxies but it seems that is only relevant with actual offline rendering.
Thank you for any suggestion.
Replies
More info here:
http://cganimator.com/3dsmax-tips-1-3dsmax-ini-setting-for-file-load-save-speed-up/
I tried also resaving the max scene with the new max INI settings. Didn't help.
I have also tried to remove some asset metadata from max scene and assign a new array without any bitmaps. However, the setMAXFileAssetMetadata somehow is ignoring my adjusted array and not letting me override it even the function returns true.
Results are good. From 6min of loading one max file, it is around 12s instead. (In case all necessary textures are already cached)
Script steps:
1. Get all bitmap streams from a max file which I want to open / operate with.
2. Find matching bitmap cached in the local repository.
3. If referenced bitmaps is not found -> copy the bitmap from NAS to the local folder.
4. Replace bitmap stream in max file to reference bitmaps stored in the local folder.
5. Open max file with new reference paths.
There are callbacks for PreLoad and PostSave. PostSave will revert all stream values back that from the max point of view, it will look like that I opened the file actually with network paths.
For curiosity, You can grap the script from the attachment. Feel free to use it/ modify it if you are having similar issues. There are bugs and code is ugly but for now, it has enough functionality for our needs.
And thank you for your tips!