using blender

Started by
1 comment, last by kirenemook12 12 years, 11 months ago
hello everyone.
I am trying to make a 3D model and use it in DirectX. I am using Blender.
The problem is that wen i export the model as a .obj, the texture coordinates are missing.
So, my question is: how do i get the texture coordinates in the .obj file?
i am using Blender 2.57B.

if I open the .obj file, is see this:

# Blender v2.57 (sub 1) OBJ File: ''
# www.blender.org
mtllib untitled.mtl
o Cube
v 1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 -1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 1.000000 1.000000 -1.000000
v 0.999999 1.000000 1.000001
v -1.000000 1.000000 1.000000
v -1.000000 1.000000 -1.000000
usemtl Material
s off
f 1 2 3 4
f 5 8 7 6
f 1 5 6 2
f 2 6 7 3
f 3 7 8 4
f 5 1 4 8

but i want to see:


# Blender v2.57 (sub 1) OBJ File: ''
# www.blender.org
mtllib untitled.mtl
o Cube
v 1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 -1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 1.000000 1.000000 -1.000000
v 0.999999 1.000000 1.000001
v -1.000000 1.000000 1.000000
v -1.000000 1.000000 -1.000000

vt (texture coordinates)(texture coordinates)
vt (texture coordinates)(texture coordinates)
vt (texture coordinates)(texture coordinates)
vt (texture coordinates)(texture coordinates)
vt (texture coordinates)(texture coordinates)
vt (texture coordinates)(texture coordinates)

usemtl Material
s off
f 1 2 3 4
f 5 8 7 6
f 1 5 6 2
f 2 6 7 3
f 3 7 8 4
f 5 1 4 8
Advertisement
Make sure you've UV unwrapped the model properly, and checked the UV export box in the .obj export options.
thanks, that worked.

This topic is closed to new replies.

Advertisement