HOME | DD

zareef — Fix transparent meshes all at once in 3DS Max

#3ds #3dsmax #fix #max #transparency #transparent #tutorial #tutorials
Published: 2015-03-07 11:41:07 +0000 UTC; Views: 13889; Favourites: 107; Downloads: 249
Redirect to original
Description When you export a model from XNALara to 3DS Max, some meshes that should be transparent such as hair require you to edit their materials and add Opacity maps.
I’m sure all of you know all this and know how to fix the transparency. What I’m offering here is a method to fix the transparency of these meshes all at one time. This is very useful especially if you have many materials to go through. To do this, I created a simple script to automate the process.


Other details:
The script does the following for the selected material(s):
1. Sets the diffuse and ambient colors to black (RGB: 0, 0, 0).
2. Creates opacity map by copying the diffuse map texture to the opacity slot in the material.
3. Sets the following opacity map parameters:
    - Mono channel output: Alpha.
    - Alpha source: Image alpha.
    - Premultiplied alpha: off.
4. Turns on "Show shaded material in viewport" option.


Here is the script:
www.mediafire.com/download/7k8…
Related content
Comments: 45

AnonymousQuote [2019-11-16 19:14:51 +0000 UTC]

Hey there, thanks so much for the tutorial and the script ^^
I'm actually having trouble with my model being *too* transparent when rendering after importing an ascii with mariokart64n's tool and relinking the bitmaps for the materials. Do you have any pointers? 

Thanks ^^

👍: 0 ⏩: 1

zareef In reply to AnonymousQuote [2019-11-16 23:45:44 +0000 UTC]

The model looks fine in the viewport, it's transparent where it should be, so.. I guess the problem is with the renderer you are using, I have never seen that "Radeon ProRender". Try another one, if only to test the model, for example the default Scanline renderer.

👍: 0 ⏩: 1

AnonymousQuote In reply to zareef [2019-11-17 00:35:07 +0000 UTC]

Thanks for the response! That was my first thought as well, but the scanline result is really scary lol

👍: 0 ⏩: 1

zareef In reply to AnonymousQuote [2019-11-17 21:17:15 +0000 UTC]

Do you have "Force 2-Sided" on in render options ? it should be off.

I don't use Mario's script to import models, the results were weird in all the models I tested.

👍: 0 ⏩: 1

AnonymousQuote In reply to zareef [2019-11-17 21:34:42 +0000 UTC]

I'll test that out and look into other ways of getting these models into 3ds max with bones and mats intact ^^
Thanks so much for your help
Quick edit, booted up 3DS max to check on the render settings -- force 2-Sided was off!

👍: 0 ⏩: 1

zareef In reply to AnonymousQuote [2019-11-17 21:41:37 +0000 UTC]

No problem..

I suggest you try to import the model in Blender using JohnZero7's xps tools (Link: JohnZero7 ), then export it from Blender in FBX format, which can be imported easily to 3ds Max. It may work.

👍: 0 ⏩: 0

havietdung1995 [2018-09-05 14:38:35 +0000 UTC]

Sir, I run script but i can find it in Customize User Interface ( Toolbars )  . I use max 2018. Thanks. 

👍: 0 ⏩: 1

zareef In reply to havietdung1995 [2018-09-07 00:59:00 +0000 UTC]

I don't have Max 2018, but that shouldn't be a problem.

Does it work ? How do you run it ? Does it give any error ?

👍: 0 ⏩: 1

havietdung1995 In reply to zareef [2018-09-09 04:39:11 +0000 UTC]

yeah, actually after i run that script i had a problem, some parts of the model in max has been disappeared, I had to renew the NEU folder in C://... to run max again. But i think might i had another problem, i'm not sure. 

👍: 0 ⏩: 1

zareef In reply to havietdung1995 [2018-09-13 10:16:42 +0000 UTC]

That's.. weird

It's a very simple script. There must be another problem.

OK, open the script file in any text editor and copy all text, then go to Max -> "Scripting" menu -> "MAXScript Editor" and paste the text there, then select the meshes and go to "Tools" menu -> "Evaluate All" (hotkey: Ctrl+E).

I suggest you open "MAXScript listener" so you know if an error occurs. It may give you a hint where the problem may be.

Btw the script doesn't work on multimaterials.

👍: 0 ⏩: 0

Doateku [2015-08-05 22:09:18 +0000 UTC]

This is awesome great stuff !

👍: 0 ⏩: 1

zareef In reply to Doateku [2015-08-05 22:14:49 +0000 UTC]

Thank you

👍: 0 ⏩: 0

Ditster [2015-06-27 17:42:49 +0000 UTC]

i wonder how to fix the eyes when imported to 3ds max? its all white even after rendered, could you help me?

👍: 0 ⏩: 1

zareef In reply to Ditster [2015-06-28 13:54:39 +0000 UTC]

What is wrong with the eyes in your model ?

👍: 0 ⏩: 1

Ditster In reply to zareef [2015-07-07 21:29:38 +0000 UTC]

nevermind, i resolved the problem. Thanks for the tut here, i was really helped..  

👍: 0 ⏩: 1

Horossaur In reply to Ditster [2015-09-20 23:42:24 +0000 UTC]

Sorry to bump it, but how do you solved it? ;w;

👍: 0 ⏩: 1

Ditster In reply to Horossaur [2015-09-21 00:11:51 +0000 UTC]

i'm using this max script:
ditster.deviantart.com/art/Lof…
u can change the hair transparent and make it shines in once...

👍: 0 ⏩: 1

Horossaur In reply to Ditster [2015-09-21 00:36:54 +0000 UTC]

I'm using that too, but my eyes fail miserably even using that.

👍: 0 ⏩: 1

Ditster In reply to Horossaur [2015-09-21 00:43:24 +0000 UTC]

did u use it to the eyes material?
i usually use the maxscript to eyeshadow material, not the eyes.

👍: 0 ⏩: 1

Horossaur In reply to Ditster [2015-09-21 03:06:46 +0000 UTC]

I'll see about that.
Thanks for the feedback. xD Can I send you a note next time if something goes horribly wrong?

👍: 0 ⏩: 1

Ditster In reply to Horossaur [2015-09-21 03:08:20 +0000 UTC]

yes of course,
glad i can help u...

👍: 0 ⏩: 0

ibelwang [2015-05-04 01:44:32 +0000 UTC]

Very useful, thanks !

👍: 0 ⏩: 1

zareef In reply to ibelwang [2015-05-04 17:50:00 +0000 UTC]

You are welcome

👍: 0 ⏩: 0

nexus-2 [2015-03-15 18:25:11 +0000 UTC]

So useful, thanks a lot!

👍: 0 ⏩: 1

zareef In reply to nexus-2 [2015-03-16 00:20:46 +0000 UTC]

You are welcome

👍: 0 ⏩: 0

BedRoomBullyX [2015-03-11 23:37:36 +0000 UTC]

Just curious, out of your experience what do you think works better, blender or 3ds max?

👍: 0 ⏩: 1

zareef In reply to BedRoomBullyX [2015-03-12 22:23:26 +0000 UTC]

3DS Max, no doubt. It's more powerful in every aspect.
For porting models, Blender is easier.. although I use Max for that too.

👍: 0 ⏩: 0

LifeArcAngel [2015-03-09 20:05:06 +0000 UTC]

Walk trying to learn the max 3d

👍: 0 ⏩: 1

zareef In reply to LifeArcAngel [2015-03-12 22:24:35 +0000 UTC]

You do that. It's awesome.

👍: 0 ⏩: 0

dnxpunk [2015-03-09 03:53:23 +0000 UTC]

What an incredibly helpful script     

👍: 0 ⏩: 1

zareef In reply to dnxpunk [2015-03-12 22:24:07 +0000 UTC]

  

👍: 0 ⏩: 0

kosmoslove [2015-03-08 01:01:55 +0000 UTC]

sir you are amazing thx.

👍: 0 ⏩: 1

zareef In reply to kosmoslove [2015-03-08 01:41:24 +0000 UTC]

You are welcome.. thanks

👍: 0 ⏩: 0

dk10086 [2015-03-07 18:05:32 +0000 UTC]

Interesting, I would like to try it.
Thank you very much!

👍: 0 ⏩: 1

zareef In reply to dk10086 [2015-03-08 01:40:30 +0000 UTC]

You are welcome

👍: 0 ⏩: 0

smogass [2015-03-07 17:23:19 +0000 UTC]

super useful, thanks !

👍: 0 ⏩: 1

zareef In reply to smogass [2015-03-08 01:40:04 +0000 UTC]

You are welcome
I'm glad it helps

👍: 0 ⏩: 0

KelluArts [2015-03-07 12:57:48 +0000 UTC]

Many thanks for this absolutely awesome script !

👍: 0 ⏩: 1

zareef In reply to KelluArts [2015-03-07 13:26:24 +0000 UTC]

You are welcome

👍: 0 ⏩: 0

Dangel-Deviliono [2015-03-07 12:23:50 +0000 UTC]

 Thank you  

👍: 0 ⏩: 1

zareef In reply to Dangel-Deviliono [2015-03-07 12:40:18 +0000 UTC]

You are welcome

👍: 0 ⏩: 1

Dangel-Deviliono In reply to zareef [2015-03-07 13:10:18 +0000 UTC]

Yosh!

👍: 0 ⏩: 0

SSPD077 [2015-03-07 12:10:12 +0000 UTC]

thank u so much for this ^0^

👍: 0 ⏩: 1

zareef In reply to SSPD077 [2015-03-07 12:16:08 +0000 UTC]

You're welcome

👍: 0 ⏩: 1

SSPD077 In reply to zareef [2015-03-07 12:19:27 +0000 UTC]

 

👍: 0 ⏩: 0