Gildor's Forums

Author Topic: Importing materials into blender?  (Read 554 times)
Faby
Newbie
*
Posts: 13


View Profile
Importing materials into blender?
« on: April 18, 2020, 14:34 »

When I extract models with umodel, for materials I get .mat files and .props.txt files. Is it possible to import these into blender somehow?

So far I've always just used the extracted textures and plugged them into my own materials.
Logged
Blenux
Moderator
Hero Member
*****
Posts: 778


Welcome to Gildor Land.


View Profile
Re: Importing materials into blender?
« Reply #1 on: April 19, 2020, 06:14 »

.mat are for 3ds Max, for Blender you have to set them up manually.
Logged

Blender User.
Rip Game Content to learn stuff.
Like to help people in general.
Faby
Newbie
*
Posts: 13


View Profile
Re: Importing materials into blender?
« Reply #2 on: April 19, 2020, 17:41 »

Yeah that's why I was asking if there was some way to import them anyways, or maybe umodel could be made to output in a material format that blender can use?

As it stands, I think I can write a python addon for blender to interpret the props.txt files that are also generated to automatically build materials from them.
« Last Edit: April 19, 2020, 19:51 by Faby » Logged
Gildor
Administrator
Hero Member
*****
Posts: 7763



View Profile WWW
Re: Importing materials into blender?
« Reply #3 on: April 19, 2020, 22:12 »

It's better to interpret .mat, if you want "generic" material support. However if you want to import a particular game's materials, interpreting .props may be better (but it won't work with other games, because these parameter names are absolutely non-standard).
Logged
Faby
Newbie
*
Posts: 13


View Profile
Re: Importing materials into blender?
« Reply #4 on: April 19, 2020, 22:28 »

Well I have no idea how I would handle .mat files, but since props.txt are in plaintext, I can work with that in python pretty easily
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7763



View Profile WWW
Re: Importing materials into blender?
« Reply #5 on: April 19, 2020, 22:43 »

Man, did you ever look into .mat files??
Logged
Faby
Newbie
*
Posts: 13


View Profile
Re: Importing materials into blender?
« Reply #6 on: April 19, 2020, 22:49 »

I could not find any info on how they would be interpreted, no
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7763



View Profile WWW
Re: Importing materials into blender?
« Reply #7 on: April 19, 2020, 22:52 »

"Open with Notepad" would be enough. I didn't expect that having a non-txt file extension may confuse people so much.
Logged
Faby
Newbie
*
Posts: 13


View Profile
Re: Importing materials into blender?
« Reply #8 on: April 19, 2020, 22:56 »

I swear I have opened a .mat file as text before and it looked like encoded gibberish so I never tried again.
Logged
Faby
Newbie
*
Posts: 13


View Profile
Re: Importing materials into blender?
« Reply #9 on: April 19, 2020, 23:03 »

but thank you. That looks pretty straightfoward, unfortunately it appears to be missing ORM maps and other stuff.
Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS