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 / 8109
8108  |  8110
Subject: 
Re: pictures at tracker
Newsgroups: 
lugnet.cad
Date: 
Tue, 4 Jun 2002 17:25:23 GMT
Viewed: 
743 times
  
In lugnet.cad, Steve Bliss writes:
In lugnet.cad, Don Heyse wrote:
If you want to do some testing I just built a preliminary version of
ldglite 0.9.6 on ldraw.org that supports -MSfilepath to change where
the picture file goes.  I figured since -MS (case sensitive) says to
produce pics using the offscreen rendering, I might as well get more
mileage out of it by following it with an optional filename.  Hmmm,
I'm starting to warm up to that = sign though...  Maybe with the =
sign it'll go to a specific filename, without it filepath will just
be a directory.  I'll have to think some more on that one.

As some may have noticed (did I mention it already?  I don't remember
now), there are now images for some files on the tracker.  An example
is at <http://www.ldraw.org/cgi-bin/ptdetail.cgi?f=parts/30387.dat>.

I'm having a problem -- ldglite sometimes saves the image, and
sometimes it doesn't.  And it's not giving me any reason why not.
Below is part of the output from my 'build.all.images' script.  Notice
that there's no "Write PNG..." message for the first file, but there
is for the second.

Any thoughts on why this is happening?

======================================================================
Generating file 48: parts/s/973ps7a.dat...
command: /home/dheyse/ldglite.0.9.6/ldglite/ldglite -s.85 -l3 -Q -i1 -MS/home/httpd/www.ldraw.org/files/library/unofficial/images/parts/s/973ps7a.png parts/s/973ps7a.dat

Hmmm, it seems to skip the "Write PNG" message if I pass it an empty DAT
file.  Checking the source, it appears to silently fail if it doesn't
find any pixels to save a picture of.  It'll report "bmpsize = something"
before writing (or skipping) the png file if you turn on debugging with
the -g command line switch.

I think I know the problem.  Ldglite calculates the extents of the image
based only on the edges and the conditional lines (for speed?).  I'll
have to patch it up to also use quads and triangles in that calculation.

By the way, what sort of weirdness is going on with the LDRAWDIR path
that you need to specifically include the parts directory as part of
the path to the dat file?

Don



Message has 2 Replies:
  Re: pictures at tracker
 
(...) Ok I patched it. Give it a try now. Don (22 years ago, 4-Jun-02, to lugnet.cad)
  Re: pictures at tracker
 
(...) Ah. I think that makes sense - the missing files I'm sure of are all subpart files, that are unlikely to have edges. (...) Heh. *That* library isn't actually the LDRAWDIR. Well, it is and it isn't. In order to render correctly, I've (...) (22 years ago, 4-Jun-02, to lugnet.cad)

Message is in Reply To:
  Re: pictures at tracker
 
(...) As some may have noticed (did I mention it already? I don't remember now), there are now images for some files on the tracker. An example is at (URL). I'm having a problem -- ldglite sometimes saves the image, and sometimes it doesn't. And (...) (22 years ago, 4-Jun-02, to lugnet.cad)

77 Messages in This Thread:



















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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