To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 5523
5522  |  5524
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: Searching for parts
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 7 Nov 2000 14:27:14 GMT
Viewed: 
3192 times
  
In lugnet.cad.dev, Lars C. Hassing wrote:

I'm noticing a difference between the way L3Lab renders and the way LDLite
renders.  I've got a multi-file model in a subdirectory, but there are some
files with the same name in the ldraw/models/ directory.  L3Lab renders the
way I want it to :) , but LDLite doesn't. :(

The very first place to look is inside the model-MPD...

Yeah, I realized (after posting my message), that it was a problem with
LDLite handling a subfile which was an MPD.  I changed to the equivalent
DAT, and everything's fine now.

The FAQ could be updated to:

LDraw/LEdit MUST be started in the LDraw directory. They search for files in:
1. P
2. PARTS
3. MODELS
4. .

Modern programs should search in:
1. Inside the document if it is an MPD
2. The document's directory
3. %LDRAWDIR%\P
4. %LDRAWDIR%\PARTS
5. %LDRAWDIR%\MODELS
where LDRAWDIR is the LDraw directory.

Good point.

Your "1. Inside the document if it is an MPD" reminds me: how do renderers
handle caching of submodels inside an MPD?  Are these files visible outside
of the MPD, or do they lose scope?

With the following files, how will C.DAT render?  Will 'some stuff' be
drawn twice, or will we see 'some stuff' and 'some other stuff'?

A.MPD:
0 FILE A.DAT
1 16 0 0 0 1 0 0 0 1 0 0 0 1 B.DAT
0
0 FILE B.DAT
some stuff
0

B.DAT:
some other stuff
0

C.DAT:
1 16 0 0 0 1 0 0 0 1 0 0 0 1 A.MPD
1 16 0 48 0 1 0 0 0 1 0 0 0 1 B.DAT
0

Steve



Message has 1 Reply:
  Re: Searching for parts
 
(...) I'm glad you agree. (...) L3P/L3Lab will draw 'some stuff' twice. The file B.DAT is never loaded, as the subfile B.DAT was loaded during reading A.MPD. It doesn't matter whether subfile A.DAT references B.DAT or not. An MPD should be regarded (...) (24 years ago, 7-Nov-00, to lugnet.cad.dev)

Message is in Reply To:
  Re: Searching for parts
 
(...) Really! (...) The very first place to look is inside the model-MPD... (...) Indeed, but we've just learned that P, PARTS and MODELS come first. So step 1 is not the first step, but comes after step 4. (...) It happens automatically, I simply (...) (24 years ago, 7-Nov-00, to lugnet.cad.dev)

10 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