05-28-2017, 04:19 PM
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:
At first this was giving me the following error:
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:
However, this then throws the following:
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?
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?