Subject:
|
Re: Ldlite for OpenGL and Linux (and uppercase filenames)
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Sat, 22 Jan 2000 01:40:04 GMT
|
Viewed:
|
765 times
|
| |
| |
OK, someone posts a significant improvement/expansion of ldLite,
ported to gcc, running on Windows and Linux, and WHAT do you
people talk about? DOS names? ZIP files?
ldGLite is at an early stage, much like ldLite was at v0.3.
Can those who know OpenGL help with transparency, shading,
speed improvements, and helping Type 2 lines stand out better
in the output?
An algorithm for handling mixed case filenames is:
1) try to open the file with the case specified in the .dat file,
searching the whole LDRAW tree.
2) if that fails, assume case is incorrect. Try the following
in order (the order is optimized in likelyhood of occuring). Try
all in one directory before moving to the next.
(a) Search for the upper-case version of the file.
(b) Search for the file with the first letter capitalized.
(c) Search for the file in lower-case.
(d) Iterate over every file in the directory, convert to lower case,
and compare to the lower-case version of the filename in the .dat file.
The above approach will be faster than trying all 2^11 mixed-case
variants of the files. The first person to code this up should
release it as open-source. It's a shame we can't go back and
fix LDRAW/LEDIT.
Note: The LDLite cache will have to be searched in the same way,
just as if it were a directory in the LDRAW search path.
-gyug
|
|
Message is in Reply To:
| | Re: Ldlite for OpenGL and Linux (and uppercase filenames)
|
| (...) No, but infozipped is. Actually, InfoZip (executables are called zip and unzip) is pkzip compatable, and freely available on Unix, Win32, Mac, VMS, DOS, etc. It can zip / unzip through pipes, and has support for multi-volume or split archives. (...) (25 years ago, 21-Jan-00, to lugnet.cad.dev)
|
40 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|