VRayMat Resampler

3 votes
Version: 
1.2
Date Updated: 
03/04/2014
Author Name: 
Branko Živković

.............................................................................................................................................................. version 1.2

Whit this tool you can easely control subdivision value according to Relection or Reflaction glossiness values.
Idea by John O’Connell

Additional Info: 


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

Version Requirement: 
2010+
Other Software Required: 
VRay2+
AttachmentSize
bga_vraymatresampler_v1.2.ms5.75 KB
bga_vraymatresampler_v1.2.mcr5.86 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
artursamenezes's picture

great!

great!

barigazy's picture

...

fixed code for "VrayFlakesMtl"

bga

barigazy's picture

...

@trixian
Send me test scene. I use same version of max and VRay

bga

trixian's picture

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.

3dwannab's picture

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.

Custom's picture

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

MaximuM's picture

Thx

Thank you

barigazy's picture

...

It's very small fix of Override material nothing more. One of the user sended me PM
to fix variable problem.

bga

MaximuM's picture

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

barigazy's picture

...

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.