Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Mohammadreza Mohseni

Pages: [1] 2 3 ... 8
Gallery / Re: A modern villa
« on: 2021-07-19, 13:17:32 »
very nice renders and design

for any sort of class conversion to work in 3ds max, you need those classes to be recognized. to do that there is a need for a plugin to define those classes. (there is no need for those classes to have functionality just defining the class and its parameters would be enough).
so for example, if there is no plugin to define the vraybitmap class it would not be possible to pinpoint that and convert it because it is undefined and pops the missing plugin window.

it would be awesome if we could have just one (or many) plugins (optional during installer so the user can choose to install or not) to define those vray classes without any functionality just to do the conversion. same for the vray users to have a defining class plugin so there would be no need to install both at the same time.

so +1 for me too

one of my tests on new physical material. awesome sheen layer.

Gallery / Spellbound Sound
« on: 2021-06-23, 15:44:48 »
Spellbound Sound

Trying the new Corona 7 physical material and its sheen layer.
I like it very much.

the model is not mine it is just material testing.

view it on Art Station:

view it on Behance:

Spellbound Sound by Mohammadreza Mohseni, on Flickr

Spellbound Sound 4 by Mohammadreza Mohseni, on Flickr

Spellbound Sound 3 by Mohammadreza Mohseni, on Flickr

Spellbound Sound 2 by Mohammadreza Mohseni, on Flickr


I have some info here, since this appears to be an important issue:

The way IOR mapping currently works (and always worked) is this:
- if the value is above 1, it is directly applied as IOR (e.g. value 1.5 = IOR 1.5)
- if the value is below 1, it is converted into 1/IOR (e.g. value 0.5 = 1/0.5 = 2)

really???? wow. that's is strange behavior. really not expecting it.
personally, I always used EXR for it so not expected it to behave like that for 8 bits.

IOR generated from something like substance painter for corona would really look strange with this current behavior. I would expect this to be in the tooltip so if someone generated a map from substance ecosystem or other texturing applications to at least know about this and only generate 16 or 32-bit exr to use in corona.
I think at least more than half of those who use substance painter and corona use this incorrectly with the wrong exporting format.

Like this:

If the value is above 1, it is applied directly as IOR override (exactly as right now).
If the value is below 1, it will directly map as fraction of existing material IOR. Example value 0.5 will halve the reflectance of material IOR 1.52 (so something like 1.333 I don't know the math from head).

Did I miss something, looks ok to me but I also have brutal migraine right now..

thats something that we can imagine really easily and it works really well

It would be great if the converter has the option to choose between physical or legacy material for the conversion.

I do not care about the tonemapper either (absolutely understand the people's frustration though), but the development still is slow. we can call v7 something like v6.5 not that big release.
corona as a part of the chaos group ecosystem (still no news on vantage or cosmos support for corona either) can surely use their already new metallic/roughness workflow concept with the exact layers like coat and sheen (thank you for the nice touches on this like specular/ior switch and conversion). it seems really long time to just get this already solved feature, plus, a really bad converter (personally I replace the 1.45version every time I install a new corona daily build). I hope Ondra still working on Corona.

hope to see way more exciting new features in future releases.

thanks corona team for developing this awesome render engine

Convert Specular to IOR
Hi all, I am here with another free tool that I have created and wanted to share with you guys. It may be useful for somebody.

What does it do?
This little command-line program makes it easy to convert Specular to IOR using a well-known formula that has been used in the CGI community and apps through these years.

How to use it?
This is a portable stand-alone program. so just run the converter EXE file. Then, select the specular map you want and let the conversion process complete.
The output IOR texture will be saved in the same directory of the Specular map with the same resolution and same file type as well.


Thank you so much. I thought that there was no support from quixel to 3ds max 2022. You helped me so much. Do you know by any chance how to make it so that when I import material from bridge, its bump value is not 99 but 1?
you are welcome.

easy. they set it up this way. you may change this behaviour by just change one line of the setting file for corona vray or etc.
simply open "" using a text editor. (I am using notepad++)
then find "MAT_NODE_NAME.mapamountBump" and change the value to whatever you may need. save the file and close it. open the 3ds max and bridge and use megascans.

in the file, I have mentioned there are some settings you may change to your desired values.

I recently installed the 3ds Max 2022 which is super awesome but I found some strange problem with the bridge 3dsMax plugin. so I fix it. Hope it useful for somebody.

the zip file contains 3 files and a pdf as a guide. read it before doing anything.

Hotfix for:

bridge issue with 3ds Max 2022 (issue caused by calling the wrong function for creating toolbar in 3ds Max – fixed by Mohammadreza Mohseni with adding one simple line of code in py)

Corona displacement issue (fixed by Quixel team - shared on Corona Renderer forum)

here is the link to files you may need:

  • Make sure 3ds Max is closed then Download the 3ds Max plugin using Quixel Bridge
    Copy and replace both two file in “fix” Folder provided < and > form below link to:
    < [ Quixel Bridge Library Address ]\support\plugins\max\5.0\MSLiveLink >
  • Open < > with notepad and replace [Library Path] with the actual bridge library path.
    For example: python.ExecuteFile @"G:\Megascans\support\plugins\max\5.0\MSLiveLink\"
  • Copy < > file to startup user script folder which is usually:
    < %localappdata%\Autodesk\3dsMax\2022 - 64bit\ENU\scripts\startup >
  • Start the 3ds Max and use bridge like always.

just downloaded and tested around with it, its amazing, thanks. The only thing I am stuck on is there a way to add fog to the background? as to fake Arial perceptive?
thanks for the kind words.
And, yes it is possible to add fake aerial using 3ds Max native fog (not quite as good though). or using corona volume fog which is slow compared to aerial perspective. the other option would be using a custom shader for this which may take a while for me to write it (I know OSL and can write the shader, it is not that complicated but it not my specialty so I am a little slow in it)

Thanks mohamadreza
great Script
Thanks Omid.

Wow thanks a lot !!

EDIT: I made a little donation afterwards, I forgot to do it at first download ;)

Thanks, Nicolas, it is kind of you. appreciate it.

🔰This script has been updated to version 1.30

🟠 more info and download link:

also, the first post has been updated with the download link.

## Version 1.30
- 04/06/2021

### Added

- Compatibility with Corona Renderer 7, 6, and 5.
- Tested on 3dsMax 2022 and 2021.
- New Setup using MZP package file.

### Fixed

- Converting long path to short path for config files. (the issue that causes error and compatibility issue with corona 5 and above)

### Updated

- Now no need to define a config file. You may add 2,1 or even no config file.

### Note

- In previous versions, you need to define both LightMix or Post Process config files even if those were the same.

I have edited the script and now is fully functional with newer versions of Corna (up until the recent corona 7 daily builds).
the issue was very simple, the corona image editor cmd does not accept long names with space in it for the config file. you can set output and input files without issue but the config file would not accept the normal file paths. which is really weird and messed up, especially it is not easy to convert a long path to 8.3 dos format for a short path using maxscript or even .Net API. I do not know why the Corona team does change these. it would be very inconvenient for users even in a command-line environment to convert the path every single time that want to use the corona image editor command-line tool.

Why change something that works to something with lots of issues?

anyway, I will upload the newer version of the script today on my website and share it here too.

Pages: [1] 2 3 ... 8