VRayMat Resampler
.............................................................................................................................................................. version 1.2
Whit this tool you can easely control subdivision value according to Relection or Reflaction glossiness values.
Idea by John O’Connell
Support materials which are considered in resampling process:
* VRay2SidedMtl
* Shellac
* VrayMtlWrapper
* VRayBlendMtl
* VrayOverrideMtl
* VrayCarPaintMtl
* VrayFastSSS2
* VrayFlakesMtl
* Multimaterial
* CompositeMaterial
* Blend
* TopBottom
* Shell_Material
Resampling can be done on Scene Materials, Selected Objects Materials
or Material Editor Materials separately.
...Update v1.1
- user can now choose which material property want to be considered in
resampling process. (requested by ice-boy)
...Update v1.2
- fixed some minor bugs
Attachment | Size |
---|---|
bga_vraymatresampler_v1.2.ms | 5.75 KB |
bga_vraymatresampler_v1.2.mcr | 5.86 KB |
Comments
great!
great!
...
fixed code for "VrayFlakesMtl"
bga
...
@trixian
Send me test scene. I use same version of max and VRay
bga
Getting an error
This is under W7, 3ds max Design 2014 (latest updates), VRay 2.40.04.
Running the script directly (.ms) or via my menu (.mcr) throws this error:
--Unknown property: "flake_subdivs" in Material #83:VRayFlakesMtl
So obviously the script is not handling the VrayFlakesMtl properly.
Save settings as default option?
Hi, Just what I was looking for, thank you so much. Just wondering if you could incorporate save default settings in the script.
EDIT: It's okay, I just modified the line to:
local minSmpl = 8, difference = 64, defVals = clalcVals minSmpl difference
EDIT: Is it possible to affect materials in the slate material editor window or even better yet a .mat file? I'm just going round checking all my material libraries. Thanks.
Tested 1.2
Hello again. It's my report caused 1.2 release :)
Today I tried "crazy multiplying" when counters hits 1000 and beyond. Max hangs for two minutes in good case, but much more often it hangs for forever, leaving me no other choice but to kill the process. CPU load during this is 40-50% on i7 2700k. No other tasks on the machine at this time except browser and skype. I've tested reflection & refraction only and scene materials only.
Yes, there is limit of 1000subdivs in settings, but user can multiply to thousands by mistake. Maybe there should be a limiter of 1000 directly in script...
(All described is about .ms version)
vray 2.4 , max 2012 x64, win 7
Thx
Thank you
...
It's very small fix of Override material nothing more. One of the user sended me PM
to fix variable problem.
bga
List of fixed bugs in 1.2 ?
Hi Barigazy,
Where can a list of fixed bugs in 1.2 version can be found please ?
Thank you
...
Quality of texture and contrast value affect also on quality of glossines.
But this tool can't predict different pixel color value of texture assigned in map slot. I was planned to add feature which will find average pixel color value and based on that define other parameters. But this will be very long ei. slow calculation. Maxscript is not good for that chalange.
bga