To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 13360
Subject: 
Re: img2sticker: Convert images into .ldr stickers
Newsgroups: 
lugnet.cad
Date: 
Fri, 7 Oct 2005 05:44:13 GMT
Viewed: 
2177 times
  
In lugnet.cad, Elroy Davis wrote:
  
I’ve made a few attempts to use this, but I’m not having much luck. I’ve installed Perl, and I think I’m 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? I’m 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:
  1. In Control Panel, choose “System”
  2. On the Advanced tab, click “Environment Variables”
  3. 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


Subject: 
Re: img2sticker: Convert images into .ldr stickers
Newsgroups: 
lugnet.cad
Date: 
Fri, 7 Oct 2005 06:28:58 GMT
Viewed: 
2288 times
  
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:
  1. In Control Panel, choose “System”
  2. On the Advanced tab, click “Environment Variables”
  3. 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. I’m 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 I’m more awake.

-Elroy


Subject: 
Re: img2sticker: Convert images into .ldr stickers
Newsgroups: 
lugnet.cad
Date: 
Fri, 7 Oct 2005 10:10:13 GMT
Viewed: 
2639 times
  
  
Thanks, that took care of it. I’m 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 I’m 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


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR