Wings 3D Development Forum
Convert obj to wrl from command line (wings_convert escript) - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Interface & Usage (https://www.wings3d.com/forum/forumdisplay.php?fid=3)
+--- Thread: Convert obj to wrl from command line (wings_convert escript) (/showthread.php?tid=2531)



Convert obj to wrl from command line (wings_convert escript) - TimAyres - 05-28-2017

Hi,

I am trying to use Wings 3D to convert from obj format to wrl (VRML) format on the command line. Searching has revealed some previous threads (one and two) that indicate that this should be possible using the wings_convert escript included with the Wings 3D source, however I haven't been able to get this to work.

System: I'm running 64 bit Windows 10

Downloads: I've downloaded & installed the following software versions:
Erlang/OTP 19.3 64-bit
Wings 3D 2.1.5 64-bit stable release
Wings 3D 2.1.5 source

wings_convert is located under the src folder in the source download.

I have tried running the script with the following command:

Code:
"C:\Program Files\erl8.3\bin\escript.exe" wings_convert

At first this was giving me the following error:

Code:
**** Error:  Compiled wings files not found
             use 'set WINGS_DIR=c:PATH_TO_WINGS_INSTALL

The WINGS_DIR can be set by changing line 14 in wings_convert or setting an environment variable, however I'm not sure what the correct directory is. Also, apparently only fwd slashes work in the path. Through some trial and error, setting line 14 to the below seems to resolve the error:

Code:
-define(WINGS_DIR, "C:/Program Files/wings3d_2.1.5/lib/wings-2.1.5").

However, this then throws the following:

Code:
escript: exception error: bad argument
  in function  ets:lookup/2
     called as ets:lookup(wpc_kerky,dialogs)
  in call from wpc_kerky:get_var/1 (c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, line 2076)
  in call from wpc_kerky:maybe_append/3 (c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, line 121)
  in call from wings_convert_escript__escript__1495__986551__301000__9:'-scan_format/1-fun-0-'/2 (wings_convert, line 98)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from wings_convert_escript__escript__1495__986551__301000__9:scan_format/1 (wings_convert, line 113)
  in call from wings_convert_escript__escript__1495__986551__301000__9:main/1 (wings_convert, line 45)

Any help for where to go from here would be greatly appreciated. I have not modified my PATH or set any other environmental variables, although I found some hints that I may need to set ERL_LIBS as well.

In addition, the script is reporting that it only supports .ndo and .wings formats for input and output. Is this acurate, or is this only because I haven't got it working yet? I.e., can this actually be used to convert from obj to wrl?


RE: Convert obj to wrl from command line (wings_convert escript) - dgud - 05-29-2017

Oh I have probably broken that script in many different ways.
I thought I was the only one who used that and have not needed it for a while..

The script (when is was working) could convert between to all export formats that wings handled.

Maybe it works if you try an older release, 1.5 ?


RE: Convert obj to wrl from command line (wings_convert escript) - TimAyres - 05-29-2017

Thanks, I will try an older version and report back. Will I need to use an older version of Erlang too?

Any chance that this script could be updated to work with the latest version? The ability to script Wings 3D from the command line certainly seems like a useful feature, even if you're the only one who's even gotten it to work!


RE: Convert obj to wrl from command line (wings_convert escript) - dgud - 05-30-2017

Most often newer erlang versions should work with older code, we try very hard to keep it that way,
but I have not tested and things not tested doesn't work.

If I have time I will take a look at it.


RE: Convert obj to wrl from command line (wings_convert escript) - TimAyres - 06-02-2017

I tested version 1.5.4-64 and received the exact same error message, which is interesting. It also seems strange that the error message is pointing to the path c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, which doesn't exist on my machine. Any ideas on how to troubleshoot? Unfortunately I'm not really familiar with Erlang at all.

I can also test with older versions and with 32 bit versions. Do you know what the last version or time was when this script was known to be working?


RE: Convert obj to wrl from command line (wings_convert escript) - dgud - 06-05-2017

The path comes from my machine, i.e. the build path of the module.

Start normal wings and disable the plugins you don't need i.e all the yafray/kerkythea/povray...
In Edit/PluginManager/Render


RE: Convert obj to wrl from command line (wings_convert escript) - TimAyres - 06-09-2017

Using v2.1.5, I disabled the plugins you recommended, and confirmed that they were still disabled when Wings was quit and restarted. Unfortunately this did not seem to have any effect on the script; I presume that the script is not checking the plugin preferences.

I got a bit more methodical and tested 17 different versions, going back to v1.3.1 when wings_convert appears to have been first introduced. If I can get any version working that would meet my needs for now!

Unfortunately I was unsuccessful in converting an obj file to wrl with any version tested. This does make me wonder if this functionality has actually ever worked at any point, or if there is still something wrong in my setup? I did have some success converting a wings file to wrl in the 1.5 series, but unfortunately this is only half of the problem.

I tested both 32 and 64 bit releases in some versions, but noticed no difference in output in the ones tested.

Summary of error messages:
  • 2.0.5 - 2.1.5: exception error: bad argument
  • 2.0 - 2.0.4: Import crashed: badarg On file: "sphere_2_tex(1Y).obj". Fails with a similar error using wings file as import.
  • 1.5.1 - 1.5.4: Import crashed: function_clause On file: "sphere_2_tex(1Y).obj". Works with wings file as import!
  • 1.3.1 - 1.4.1: Failed to load perlin_noise_drv, Driver compiled with incorrect version of erl_driver.h

Possibly relevant commits:
2014-04-15 (600fb8a): "wings_convert script didn't work." Change appears to have been released in v1.5.4
2010-01-25 (70ccc1c): "Added import of formats other than wings and nendo."

Attached is the sample file I used to test: "sphere_2_tex(1Y).obj". It is a simple sphere with two associated textures. I also tried some simpler obj files with no color or texture, but had the same results.

.zip   sphere_2_tex(1Y).zip (Size: 15.64 KB / Downloads: 0)

Below are the details of the tests I ran and the error messages, in case anyone wants to reproduce.


Code:
cd "c:\path\to\test\files"

## Wings 3D 2.1.5 x64
set WINGS_DIR=c:/Program Files/wings3d_2.1.5/lib/wings-2.1.5
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.1.5\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
escript: exception error: bad argument
  in function  ets:lookup/2
     called as ets:lookup(wpc_kerky,dialogs)
  in call from wpc_kerky:get_var/1 (c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, line 2076)
  in call from wpc_kerky:maybe_append/3 (c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, line 121)
  in call from wings_convert__escript__1496__894370__894000__9:'-scan_format/1-fun-0-'/2 (D:\shared\software\3D\wings-2.1.5\src\wings_convert, line 94)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from wings_convert__escript__1496__894370__894000__9:scan_format/1 (D:\shared\software\3D\wings-2.1.5\src\wings_convert, line 109)
  in call from wings_convert__escript__1496__894370__894000__9:main/1 (D:\shared\software\3D\wings-2.1.5\src\wings_convert, line 41)


## Wings 3D 2.1.5 x32
set WINGS_DIR=c:/Program Files (x86)/wings3d_2.1.5/lib/wings-2.1.5
"C:\Program Files (x86)\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.1.5\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
escript: exception error: bad argument
  in function  ets:lookup/2
     called as ets:lookup(wpc_kerky,dialogs)
  in call from wpc_kerky:get_var/1 (c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, line 2076)
  in call from wpc_kerky:maybe_append/3 (c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, line 121)
  in call from wings_convert__escript__1496__897241__546000__2:'-scan_format/1-fun-0-'/2 (D:\shared\software\3D\wings-2.1.5\src\wings_convert, line 94)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from wings_convert__escript__1496__897241__546000__2:scan_format/1 (D:\shared\software\3D\wings-2.1.5\src\wings_convert, line 109)
  in call from wings_convert__escript__1496__897241__546000__2:main/1 (D:\shared\software\3D\wings-2.1.5\src\wings_convert, line 41)


## Wings 3D 2.1 x64
set WINGS_DIR=c:/Program Files/wings3d_2.1/lib/wings-2.1
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.1\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
escript: exception error: bad argument
  in function  ets:lookup/2
     called as ets:lookup(wpc_kerky,dialogs)
  in call from wpc_kerky:get_var/1 (c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, line 2076)
  in call from wpc_kerky:maybe_append/3 (c:/Users/familjen/src/wings/plugins_src/import_export/wpc_kerky.erl, line 121)
  in call from wings_convert__escript__1496__973975__868000__6:'-scan_format/1-fun-0-'/2 (D:\shared\software\3D\wings-2.1\src\wings_convert, line 93)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from wings_convert__escript__1496__973975__868000__6:scan_format/1 (D:\shared\software\3D\wings-2.1\src\wings_convert, line 108)
  in call from wings_convert__escript__1496__973975__868000__6:main/1 (D:\shared\software\3D\wings-2.1\src\wings_convert, line 40)


## Wings 3D 2.0.5 x64
set WINGS_DIR=c:/Program Files/wings3d_2.0.5/lib/wings-2.0.5
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.0.5\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
escript: exception error: bad argument
  in function  ets:lookup/2
     called as ets:lookup(wpc_kerky,dialogs)
  in call from wpc_kerky:get_var/1 (c:/Users/uabdgud/src/wings/plugins_src/import_export/wpc_kerky.erl, line 2077)
  in call from wpc_kerky:maybe_append/3 (c:/Users/uabdgud/src/wings/plugins_src/import_export/wpc_kerky.erl, line 121)
  in call from wings_convert__escript__1496__973930__415000__7:'-scan_format/1-fun-0-'/2 (D:\shared\software\3D\wings-2.0.5\src\wings_convert, line 93)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from wings_convert__escript__1496__973930__415000__7:scan_format/1 (D:\shared\software\3D\wings-2.0.5\src\wings_convert, line 108)
  in call from wings_convert__escript__1496__973930__415000__7:main/1 (D:\shared\software\3D\wings-2.0.5\src\wings_convert, line 40)


## Wings 3D 2.0.4 x64
set WINGS_DIR=c:/Program Files/wings3d_2.0.4/lib/wings-2.0.4
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.0.4\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: badarg On file: "sphere_2_tex(1Y).obj"

Debug info: [{wx_object,cast,2,[{file,"wx_object.erl"},{line,312}]},
             {wpa,do_import,3,
                 [{file,"c:/Users/uabdgud/src/wings/src/wpa.erl"},{line,128}]},
             {wpa,'-import/3-fun-0-',3,
                 [{file,"c:/Users/uabdgud/src/wings/src/wpa.erl"},{line,118}]},
             {wings_convert__escript__1496__978366__893000__7,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.4\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__978366__893000__7,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.4\\src\\wings_convert"},
                  {line,84}]},
             {wings_convert__escript__1496__978366__893000__7,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.4\\src\\wings_convert"},
                  {line,84}]},
             {escript,run,2,[{file,"escript.erl"},{line,760}]},
             {escript,start,1,[{file,"escript.erl"},{line,277}]}]

"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.0.4\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).wings"

# Error message:
sphere_2_tex(1Y).wings => **** Import crashed: badarg On file: "sphere_2_tex(1Y).wings"

Debug info: [{wx_object,cast,2,[{file,"wx_object.erl"},{line,312}]},
             {wings_ff_wings,import,2,
                 [{file,"c:/Users/uabdgud/src/wings/src/wings_ff_wings.erl"},
                  {line,27}]},
             {wings_convert__escript__1497__14477__897000__7,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.4\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1497__14477__897000__7,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.4\\src\\wings_convert"},
                  {line,84}]},
             {wings_convert__escript__1497__14477__897000__7,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.4\\src\\wings_convert"},
                  {line,84}]},
             {escript,run,2,[{file,"escript.erl"},{line,760}]},
             {escript,start,1,[{file,"escript.erl"},{line,277}]},
             {init,start_em,1,[{file,"init.erl"},{line,1076}]}]


## Wings 3D 2.0.3 x64
set WINGS_DIR=c:/Program Files/wings3d_2.0.3/lib/wings-2.0.3
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.0.3\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: badarg On file: "sphere_2_tex(1Y).obj"

Debug info: [{wx_object,cast,2,[{file,"wx_object.erl"},{line,312}]},
             {wpa,do_import,3,
                 [{file,"c:/Users/uabdgud/src/wings/src/wpa.erl"},{line,128}]},
             {wpa,'-import/3-fun-0-',3,
                 [{file,"c:/Users/uabdgud/src/wings/src/wpa.erl"},{line,118}]},
             {wings_convert__escript__1496__978356__477000__9,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.3\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__978356__477000__9,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.3\\src\\wings_convert"},
                  {line,84}]},
             {wings_convert__escript__1496__978356__477000__9,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.3\\src\\wings_convert"},
                  {line,84}]},
             {escript,run,2,[{file,"escript.erl"},{line,760}]},
             {escript,start,1,[{file,"escript.erl"},{line,277}]}]


## Wings 3D 2.0.2 x64
set WINGS_DIR=c:/Program Files/wings3d_2.0.2/lib/wings-2.0.2
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.0.2\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: badarg On file: "sphere_2_tex(1Y).obj"

Debug info: [{wx_object,cast,2,[{file,"wx_object.erl"},{line,312}]},
             {wpa,do_import,3,
                 [{file,"c:/Users/uabdgud/src/wings/src/wpa.erl"},{line,128}]},
             {wpa,'-import/3-fun-0-',3,
                 [{file,"c:/Users/uabdgud/src/wings/src/wpa.erl"},{line,118}]},
             {wings_convert__escript__1496__978336__604000__9,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.2\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__978336__604000__9,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.2\\src\\wings_convert"},
                  {line,84}]},
             {wings_convert__escript__1496__978336__604000__9,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.2\\src\\wings_convert"},
                  {line,84}]},
             {escript,run,2,[{file,"escript.erl"},{line,760}]},
             {escript,start,1,[{file,"escript.erl"},{line,277}]}]


## Wings 3D 2.0.1 x64
set WINGS_DIR=c:/Program Files/wings3d_2.0.1/lib/wings-2.0.1
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.0.1\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: badarg On file: "sphere_2_tex(1Y).obj"

Debug info: [{wx_object,cast,2,[{file,"wx_object.erl"},{line,312}]},
             {wpa,do_import,3,[{file,"wpa.erl"},{line,120}]},
             {wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
             {wings_convert__escript__1496__978316__720000__8,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.1\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__978316__720000__8,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.1\\src\\wings_convert"},
                  {line,84}]},
             {wings_convert__escript__1496__978316__720000__8,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0.1\\src\\wings_convert"},
                  {line,84}]},
             {escript,run,2,[{file,"escript.erl"},{line,760}]},
             {escript,start,1,[{file,"escript.erl"},{line,277}]}]


## Wings 3D 2.0 x64
set WINGS_DIR=c:/Program Files/wings3d_2.0/lib/wings-2.0
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.0\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: badarg On file: "sphere_2_tex(1Y).obj"

Debug info: [{wx_object,cast,2,[{file,"wx_object.erl"},{line,312}]},
             {wpa,do_import,3,[{file,"wpa.erl"},{line,120}]},
             {wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
             {wings_convert__escript__1496__973861__474000__8,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__973861__474000__8,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0\\src\\wings_convert"},
                  {line,84}]},
             {wings_convert__escript__1496__973861__474000__8,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0\\src\\wings_convert"},
                  {line,84}]},
             {escript,run,2,[{file,"escript.erl"},{line,760}]},
             {escript,start,1,[{file,"escript.erl"},{line,277}]}]

"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-2.0\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).wings"

# Error message:
sphere_2_tex(1Y).wings => **** Import crashed: badarg On file: "sphere_2_tex(1Y).wings"

Debug info: [{wx_object,cast,2,[{file,"wx_object.erl"},{line,312}]},
             {wings_ff_wings,import,2,[{file,"wings_ff_wings.erl"},{line,27}]},
             {wings_convert__escript__1497__14608__319000__6,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1497__14608__319000__6,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0\\src\\wings_convert"},
                  {line,84}]},
             {wings_convert__escript__1497__14608__319000__6,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-2.0\\src\\wings_convert"},
                  {line,84}]},
             {escript,run,2,[{file,"escript.erl"},{line,760}]},
             {escript,start,1,[{file,"escript.erl"},{line,277}]},
             {init,start_em,1,[{file,"init.erl"},{line,1076}]}]


## Wings 3D 1.5.4 x64
set WINGS_DIR=c:/Program Files/wings3d_1.5.4/lib/wings-1.5.4
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.5.4\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: function_clause On file: "sphere_2_tex(1Y).obj"

Debug info: [{gb_trees,get_1,
                 [wings_shape,nil],
                 [{file,"gb_trees.erl"},{line,243}]},
             {wings_shape,new,3,[{file,"wings_shape.erl"},{line,56}]},
             {wings_import,translate_objects,7,
                 [{file,"wings_import.erl"},{line,46}]},
             {wings_import,import,2,[{file,"wings_import.erl"},{line,31}]},
             {wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
             {wings_convert__escript__1496__896364__134000__9,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.4\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__896364__134000__9,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.4\\src\\wings_convert"},
                  {line,84}]},
             {wings_convert__escript__1496__896364__134000__9,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.4\\src\\wings_convert"},
                  {line,84}]}]

"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.5.4\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).wings"
# This successfully converted the wings file to wrl!


## Wings 3D 1.5.3 x64
set WINGS_DIR=c:/Program Files/wings3d_1.5.3/lib/wings-1.5.3
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.5.3\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: function_clause On file: "sphere_2_tex(1Y).obj"

Debug info: [{gb_trees,get_1,
                 [wings_shape,nil],
                 [{file,"gb_trees.erl"},{line,243}]},
             {wings_shape,new,3,[{file,"wings_shape.erl"},{line,56}]},
             {wings_import,translate_objects,7,
                 [{file,"wings_import.erl"},{line,46}]},
             {wings_import,import,2,[{file,"wings_import.erl"},{line,31}]},
             {wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
             {wings_convert__escript__1496__895409__665000__2,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.3\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__895409__665000__2,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.3\\src\\wings_convert"},
                  {line,83}]},
             {wings_convert__escript__1496__895409__665000__2,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.3\\src\\wings_convert"},
                  {line,83}]}]


## Wings 3D 1.5.3 x32
set WINGS_DIR=c:/Program Files (x86)/wings3d_1.5.3/lib/wings-1.5.3
"C:\Program Files (x86)\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.5.3\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: function_clause On file: "sphere_2_tex(1Y).obj"

Debug info: [{gb_trees,get_1,
                 [wings_shape,nil],
                 [{file,"gb_trees.erl"},{line,243}]},
             {wings_shape,new,3,[{file,"wings_shape.erl"},{line,56}]},
             {wings_import,translate_objects,7,
                 [{file,"wings_import.erl"},{line,46}]},
             {wings_import,import,2,[{file,"wings_import.erl"},{line,31}]},
             {wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
             {wings_convert__escript__1496__895709__363000__9,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.3\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__895709__363000__9,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.3\\src\\wings_convert"},
                  {line,83}]},
             {wings_convert__escript__1496__895709__363000__9,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.3\\src\\wings_convert"},
                  {line,83}]}]


## Wings 3D 1.5.2 x64
set WINGS_DIR=c:/Program Files/wings3d_1.5.2/lib/wings-1.5.2
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.5.2\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: function_clause On file: "sphere_2_tex(1Y).obj"

Debug info: [{gb_trees,get_1,
                 [wings_shape,nil],
                 [{file,"gb_trees.erl"},{line,243}]},
             {wings_shape,new,3,[{file,"wings_shape.erl"},{line,56}]},
             {wings_import,translate_objects,7,
                 [{file,"wings_import.erl"},{line,46}]},
             {wings_import,import,2,[{file,"wings_import.erl"},{line,31}]},
             {wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
             {wings_convert__escript__1496__896020__183000__6,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.2\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__896020__183000__6,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.2\\src\\wings_convert"},
                  {line,83}]},
             {wings_convert__escript__1496__896020__183000__6,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.2\\src\\wings_convert"},
                  {line,83}]}]


## Wings 3D 1.5.1 x64
set WINGS_DIR=c:/Program Files/wings3d_1.5.1/lib/wings-1.5.1
"C:\Program Files\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.5.1\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: function_clause On file: "sphere_2_tex(1Y).obj"

Debug info: [{gb_trees,get_1,
                 [wings_shape,nil],
                 [{file,"gb_trees.erl"},{line,243}]},
             {wings_shape,new,3,[{file,"wings_shape.erl"},{line,56}]},
             {wings_import,translate_objects,7,
                 [{file,"wings_import.erl"},{line,46}]},
             {wings_import,import,2,[{file,"wings_import.erl"},{line,31}]},
             {wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
             {wings_convert__escript__1496__896164__753000__8,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.1\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__896164__753000__8,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.1\\src\\wings_convert"},
                  {line,83}]},
             {wings_convert__escript__1496__896164__753000__8,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.1\\src\\wings_convert"},
                  {line,83}]}]


## Wings 3D 1.5.1 x32
set WINGS_DIR=c:/Program Files (x86)/wings3d_1.5.1/lib/wings-1.5.1
"C:\Program Files (x86)\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.5.1\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
sphere_2_tex(1Y).obj => **** Import crashed: function_clause On file: "sphere_2_tex(1Y).obj"

Debug info: [{gb_trees,get_1,
                 [wings_shape,nil],
                 [{file,"gb_trees.erl"},{line,243}]},
             {wings_shape,new,3,[{file,"wings_shape.erl"},{line,56}]},
             {wings_import,translate_objects,7,
                 [{file,"wings_import.erl"},{line,46}]},
             {wings_import,import,2,[{file,"wings_import.erl"},{line,31}]},
             {wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
             {wings_convert__escript__1496__896264__37000__8,import_file,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.1\\src\\wings_convert"},
                  {line,208}]},
             {wings_convert__escript__1496__896264__37000__8,
                 '-convert/2-lc$^0/1-0-',2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.1\\src\\wings_convert"},
                  {line,83}]},
             {wings_convert__escript__1496__896264__37000__8,convert,2,
                 [{file,
                      "D:\\shared\\software\\3D\\wings-1.5.1\\src\\wings_convert"},
                  {line,83}]}]


## Wings 3D 1.4.1 x32
set WINGS_DIR=c:/Program Files (x86)/wings3d_1.4.1/lib/wings-1.4.1
"C:\Program Files (x86)\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.4.1\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
Failed to load perlin_noise_drv in c:/Program Files (x86)/wings3d_1.4.1/lib/wings-1.4.1/plugins/accel
Driver compiled with incorrect version of erl_driver.h
wpc_pnoise:init/0 bad return value: {'EXIT',
                                     {startup_fault,
                                      [{pnoise,start,0,[]},
                                       {wpc_pnoise,init,0,[]},
                                       {wings_plugin,init_plugin,2,[]},
                                       {wings_plugin,init_plugins,1,[]},
                                       {wings_plugin,init,0,[]},
                                       {wings_convert__escript__1496__894894__402000__2,
                                        convert,2,
                                        [{file,
                                          "D:\\shared\\software\\3D\\wings-1.4.1\\src\\wings_convert"},
                                         {line,82}]},
                                       {escript,run,2,
                                        [{file,"escript.erl"},{line,760}]},
                                       {escript,start,1,
                                        [{file,[...]},{line,...}]}]}}
Failed to load wings_pick_drv in c:/Program Files (x86)/wings3d_1.4.1/lib/wings-1.4.1/plugins/accel
Driver compiled with incorrect version of erl_driver.h


## Wings 3D 1.3.1 x32
set WINGS_DIR=c:/Program Files (x86)/wings3d_1.3.1/lib/wings-1.3.1
"C:\Program Files (x86)\erl8.3\bin\escript.exe" "D:\shared\software\3D\wings-1.3.1\src\wings_convert" -f wrl -v "sphere_2_tex(1Y).obj"

# Error message:
Failed to load perlin_noise_drv in c:/Program Files (x86)/wings3d_1.3.1/lib/wings-1.3.1/plugins/accel
Driver compiled with incorrect version of erl_driver.h
wpc_pnoise:init/0 bad return value: {'EXIT',
                                     {startup_fault,
                                      [{pnoise,start,0,[]},
                                       {wpc_pnoise,init,0,[]},
                                       {wings_plugin,init_plugin,2,[]},
                                       {wings_plugin,init_plugins,1,[]},
                                       {wings_plugin,init,0,[]},
                                       {wings_convert__escript__1496__897396__813000__8,
                                        convert,2,
                                        [{file,
                                          "D:\\shared\\software\\3D\\wings-1.3.1\\src\\wings_convert"},
                                         {line,82}]},
                                       {escript,run,2,
                                        [{file,"escript.erl"},{line,760}]},
                                       {escript,start,1,
                                        [{file,[...]},{line,...}]}]}}
Failed to load wings_pick_drv in c:/Program Files (x86)/wings3d_1.3.1/lib/wings-1.3.1/plugins/accel
Driver compiled with incorrect version of erl_driver.h

Update: filed on Github as Issue #262.