블렌더 mtl 파일 - beullendeo mtl pail

Asked 8 years, 11 months ago

Viewed 235k times

$\begingroup$

I am new to Blender. I downloaded a .obj file of a plant model. When I unzipped it I found two files (.obj and .mtl). I imported the .obj file and I couldn't do the same with the .mtl to apply the material and the textures.

iKlsR

42.1k12 gold badges148 silver badges183 bronze badges

asked Nov 25, 2013 at 14:42

$\endgroup$

3

$\begingroup$

When you import the .obj file, Blender will also import the associated .mtl file* by default as well which is usually the same name. The colors applied to the model will show in the viewport and to see the texture(s) (if any), enable texture shading with AltZ.

* This is the file that should be generated alongside the obj when it was created and will hold color data and paths to textures if any. Opening the obj file in a text editor should show this near the top.

answered Nov 25, 2013 at 15:12

iKlsRiKlsR

42.1k12 gold badges148 silver badges183 bronze badges

$\endgroup$

2

Blender로 3D 이미지를 obj, mtl 파일로 바꾼 후 js로 converting 하는 방법을 기술한다.

첫번째로 .obj 파일로 export한다.

File -> Export -> Wavefront(.obj) 클릭하면 export 할 수 있다.

이 이후 아래의 사이트에서 convert_obj_three.py 파일을 가지고 js로 변환할 수 있다.

//github.com/timoxley/threejs/blob/master/utils/exporters/obj/convert_obj_three.py

obj, mtl 로 구성된 파일을 같은 폴더에 넣어주고 convert 한다.

ex)

python convert_obj_three.py -i sample.obj -o sample.js

이제 sample.js 파일이 생성되어 있음을 볼 수 있다.

Create an account to follow your favorite communities and start taking part in conversations.

Join Reddit

r/blender

Hello

my friend exported .obj file and a .mtl file from 3D builder for me to make an animation in Blender, but when i imported an obj file the textures were missing. I was trying to fix it for the past 5 hours but couldn't get it to work. I really hope someone can help me. Tell me if i need to provide more information.

Thanks for your answers

level 1

If my understanding is correct, mtl files only reference textures, but doesn’t imbed them. So I think your friend would need to send the textures along as well.

level 2

I got .obj file, .mtl file and 2 .png files he used.

level 1

You may need to open the .mtl file in Notepad (or similar text editor) and change the directory it's looking for the textures and make sure the .png files are in that location, then resave the .mtl file and try again.

level 2

here is what is in the .mtl file

I have a model I must keep in .obj format. It is accompanied by 5 texture maps (Diffuse, Emissive, Normal, occlusion, and metal).

I want to reference these textures in the .mtl file but can't seem to find the syntax for that. As of right now, all I know is that to map the diffuse texture I do:

map_Kd Model_diffuse.png map_Ke Model_emissive.png map_Ka Model_occlusion.png

But I can't find any other keywords for mapping the metal texture type. Any help would be much appreciated!

비슷한 질문과 답변(//ask.clip-studio.com/ko-kr/detail?id=3548)을 찾았으나, 문제가 해결되지 않아 올립니다.

첨부 이미지에서와 같이, Blender에서 만든 obj 파일을 클립스튜디오에 넣으면 전부 하얗게 되어버리는데, 마우스를 올려보면 Material의 영역 구분은 되어있는 듯합니다.(드래그하면 각 부분이 분리됨...) 각 Material의 색이 제대로 불러와지게 하려면 어떻게 해야 할까요? 일단 제가 시도해본 것은...

- .fbx로 익스포트해 넣어보았으나, 이 경우 오히려 영역 구분조차 되지 않고 (통째로 하얗게 되어버림)
- .obj와 짝인 .mtl 파일을 zip파일로 합쳐 넣어보았으나 여전히 하얗습니다.
- 유튜브에서 관련 강좌들을 뒤져봤는데, 이런 문제가 안 보이더라구요??? (다들 그냥 곧바로 색이 적용됨)
- CLIP STUDIO MODELER에서 불러와 그쪽의 Material 설정에서 RGB값을 일일이 조정한 뒤 .cs3o로 만들어 쓰니 색이 구분되기는 하는데, 매번 이렇게 따로 색지정을 할 수는 없는 노릇인지라...

Blender에서 어떻게 설정해야 클립스튜디오에서 바로 색이 구분되어 보일 수 있을까요?? 그것만 돼도 바랄 게 없을 것 같습니다. 아시는 분의 조언을 구해봅니다.

Toplist

최신 우편물

태그