|
In lugnet.cad, Elroy Davis wrote:
|
Ive made a few attempts to use this, but Im not having much luck. Ive
installed Perl, and I think Im using the command line correctly. I keep
getting the following though:
You do not have LDRAWDIR defined. This must be defined in order to run
img2sticker
Any ideas on what I might be doing wrong? Im attempting to run this from
the command line of a Windows XP machine.
|
LDRAWDIR is an environment variable which must be set to run the program. I
assume img2sticker.pl uses the colours defined in ldconfig.ldr in that
directory. To set it in XP:
- In Control Panel, choose System
- On the Advanced tab, click Environment Variables
- Click New and in the dialog box enter LDRAWDIR for the name, and your LDraw diresctory for the value. Your Ldraw directory is the directory containing the LDraw program, along with ldconfig.ldr.
HTH
ROSCO
|
|
|
In lugnet.cad, Ross Crawford wrote:
|
LDRAWDIR is an environment variable which must be set to run the program. I
assume img2sticker.pl uses the colours defined in ldconfig.ldr in that
directory. To set it in XP:
- In Control Panel, choose System
- On the Advanced tab, click Environment Variables
- Click New and in the dialog box enter LDRAWDIR for the name, and your LDraw diresctory for the value. Your Ldraw directory is the directory containing the LDraw program, along with ldconfig.ldr.
HTH
ROSCO
|
Thanks, that took care of it. Im still having trouble though. Everything I
convert, including the ghanlogo.bmp that came with the download, comes out messy
triangles. Nothing really recognizable. I may have to play with this while Im
more awake.
-Elroy
|
|
|
|
Thanks, that took care of it. Im still having trouble though. Everything I
convert, including the ghanlogo.bmp that came with the download, comes out
messy triangles. Nothing really recognizable. I may have to play with this
while Im more awake.
-Elroy
|
The problem is that the triangulation routine is not very good. It can usually
be tricked to find a triangulation at some point but basically it is just not
very good at it. If I ever get around to finishing the C++ version it will do a
much better job as it uses a proper routine.
To get the Ghan logo to work, reverse the colours (ie, use white as a background
and red as a foreground). This trick often works as the code has real troubles
finding triangulation around holes.
Sorry about that.
Tim
|
|
|