Convert Normal Maps

7 votes
Version: 
v1.7
Date Updated: 
04/14/2017
Author Name: 
Branko Živković


Version 1.7
Simple script that converts any NormalBump map to VRayNormalMap and vice versa.

Additional Info: 

This tool works on any object in the scene with assigned VRay material.
Requested here: http://www.scriptspot.com/forums/3ds-max/scripts-wanted/switch-maps-text...
>>> Update v1.4 (max2010+):
- affect only selected objects or convert all scene materials
- preserve instances
- optimized code
>>> Update v1.5 (max2014+):
- added support for gamma override (works in max2014 and up)
- optimized code
>>> Update v1.6 (max2014+):
- optimized code
- fixed some bugs requested by TwilightZoney
NOTE: script will close MEditor before start converting process.
>>> Update v1.7 :
- rewritten code from scratch
- supports max 2017 and vray 3+
NOTE: all new parameters of VRay NormalMap will be converted to standard normal map and vice versa. Also make sure to save the scene before use this tool ;)

Version Requirement: 
max2014+ vray 2+ vray 3+
AttachmentSize
bga_convertnormalmaps_v1.4.ms1.75 KB
bga_convertnormalmaps_v1.5.ms2.33 KB
bga_convertnormalmaps_v1.6.ms2.69 KB
bga_convertnormalmaps_v1.7.ms2.95 KB
bga_convertnormalmaps_v1.7.mcr3.05 KB

Comments

Comment viewing options

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

Blend Materials

Now if only there was a capacity to convert standard blend materials to vrayblendmtl, since from version 3.3 of vray standard blend materials are no longer supported...

MaximuM's picture

Doesn't work as expected

Hi,

Thank you for this great idea but unfortunately it doesn't work as I expected.
Once I ran the script, all the NormalBump maps have been replaced with a single VRayNormalMap instanced in all the slots.
Please see the screenshot:

AttachmentSize
normalbump_script.jpg 441.84 KB
obaida's picture

Thanks

Very important script thank you "Branko" for making it ,
I just want to ask you if you can make it global (i mean replacing Normal Map with Vray Normal Map) wherever it was (in my case it was in Mix Map not directly in Bump Slot) .
Thank you in advanced.

AttachmentSize
2015-09-06_175203.jpg 141.77 KB
NeoHaus's picture

Error on Material with a lot of multi-sub materials

Hi,

First of all, this script help me a lot, it is much easier than looking for materials one by one. And it is working for me 99% of times.

But I am having a problem, I have some Vray proxies (a car in that case) that have a lot of materials (Multi/Sub-Object), 47 to be precise. And after I run the script, it gets its bump slots all with the same map.

Attached some prints that shows the problem.

Any ideas whats happening, and how to fixed it?

Thanks!

Sorry my bad english...

AttachmentSize
car_after_script.jpg 42.06 KB
car_materials.jpg 162.29 KB
car_original.jpg 34.16 KB
mustafa mamdouh's picture

Everything is working GREAT NOW!

Thanks Branko,
I can now confirm it's working great with V-Ray 3 and also on complex scenes ..
No more crashes or weird artifacts .. You saved us precious time!

P.S: anyone had crashes before with multiscatter plugin or even random crashes caused by normal bump map .. You should try this script!

thanks to scriptspot community

barigazy's picture

...

Thanks guys :)

bga

pixamoon's picture

+1

Great idea :) great time saver !

obbboo's picture

It works perfectly. Thank

It works perfectly.
Thank you.

barigazy's picture

...

@mustafa
I test this tool with max2014 and vray 2.4.
Probably works fine with vray3.0 ;)

bga

barigazy's picture

...

Thanks *obbboo* for test scene. I fixed and optimized both version of this tool.
Can you try it again on complex scene? Please let me know how work new version.
Cheers!

bga

Comment viewing options

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