Wings 3D Development Forum
OBJ files exported from Wings3D do not load in Sweet Home 3D - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: OBJ files exported from Wings3D do not load in Sweet Home 3D (/showthread.php?tid=865)



OBJ files exported from Wings3D do not load in Sweet Home 3D - psycholinguist - 08-29-2014

I have been having problems when exporting a file from Wings3D to the OBJ format and importing it in Sweet Home 3D. Sweet Home says "the format of the chosen model is not supported", although Sweet Home normally supports importing OBJ files.

I posted on the Sweet Home 3D forum, and was told by the developper that the Wings3D OBJ files look different from what he is used to (see the thread here). In particular, he wrote:
Quote:The OBJ file uses a way to describe faces I've never seen before.
Blender accepts it but not Sweet Home 3D and probably other software. If you look at OBJ file, you'll see lines starting by f and followed by vertices numbers and // like:
Code:
f 1// 33// 34// 2//

Normally, this line should be written:
Code:
f 1 33 34 2

// should occur only if followed by texture coordinates index.

He suggested I report the problem here. Of course, it is possible that this issue has been fixed in more recent versions. I am stuck with 1.4.1 because I do not want to update my Mac's operating system, which is 10.6.8 at the moment. In this case, please disregard this bug report.

I am attaching an archive with a .wings file and an exported OBJ file with which the problem occurs.


RE: OBJ files exported from Wings3D do not load in Sweet Home 3D - micheus - 08-30-2014

No one has reported that before. I have other applications that are able to import your file without any problem. I think they manage that better.

The "//" came from this reference (OBJ file specification):
Quote:Using v, vt, and vn to represent geometric vertices, texture vertices,
and vertex normals, the statement would read:

f v/vt/vn v/vt/vn v/vt/vn v/vt/vn

If there are only vertices and vertex normals for a face element (no
texture vertices), you would enter two slashes (//). For example, to
specify only the vertex and vertex normal reference numbers, you would
enter:

f 1//1 2//2 3//3 4//4
or from this other

In the export dialog you can set Export normals/smoothing group and your file will contain something like this:
Quote:...
g coupelle4b_Coupelles
usemtl Coupelles
s 1
f 129//129 161//161 162//162 130//130
f 129//129 321//321 352//352 160//160
...
and you probably will not have problem importing it again.
Or, you can try to use the DAE and 3DS exporters, since they are accepted by Sweet Home 3D too.