Special:
|
[DAT] (requires LDraw-compatible viewer)
|
Subject:
|
Re: Previous step color scaling
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Tue, 16 Oct 2007 20:41:58 GMT
|
Viewed:
|
6117 times
|
| |
| |
In lugnet.cad, Jim DeVona wrote:
> &tIn lugnet.cad, Jaco van der Molen wrote:
> > In lugnet.cad, Jim DeVona wrote:
> > > In lugnet.cad, Kevin L. Clague wrote:
> > >
> > > > LPub could instead, do this in the step-dats with hexidecimal coloring, but
> > > > I've not gotten that done (yet?)
> > >
> > > Yeah, that's a workable strategy. It's what I did here:
> > >
> > > http://news.lugnet.com/cad/?n=14903 ;
> > > I assume LPub makes it easier for the user by coming up with the scaled colors
> > > automatically.
> > >
> > > Jim
> >
> > Wow. That looks nice.
> > Can I do this too?
>
> Sure, you will be able to. I used a modified version of PreL3P, my little tool
> for replacing color codes. I'll post version 1.3 which will include this ability
> (loading different configurations partway through a model) soon, once I take
> care of any other bugs that come up. I'll post more details on the technique at
> that time, too.
Thank you! I will eagerly await and try it.
> > You mentioned creating separate files for each cumulative
> > step in the model - as Bricksmith exports. Isn't Bricksmith Mac software?
> > I have a PC with MLCad...
>
> Yes, Bricksmith is Mac software, but I just mentioned it as a familiar example.
> The idea is that PreL3P diddles with colors but doesn't know anything about
> steps or submodels. So, if you want to use it to highlight the current step in a
> sequence of images, you'll need to provide it with copies of the model up to
> each step somehow. That's what the Bricksmith export does, and I think that's
> basically how LPub works, too.
>
> Jim
MLCad is able to export every step, but it exports steps without information at
which line the previous step ends and were the next step begins.
For example when I export the CAR (still a great model :-) you get this:
CAR_00001.ldr
0 Car
0 Name: CAR.DAT
0 Author: James Jessiman
0 Original LDraw Model - LDraw beta 0.27 Archive
0 Car
1 0 0 0 -90 1 0 0 0 1 0 0 0 1 4315.DAT
1 7 0 0 -60 1 0 0 0 1 0 0 0 1 4600.DAT
1 0 0 0 0 1 0 0 0 1 0 0 0 1 3031.DAT
1 7 0 0 60 1 0 0 0 1 0 0 0 1 4600.DAT
1 0 0 0 90 -1 0 0 0 1 0 0 0 -1 4315.DAT
CAR_00002.ldr
0 Car
0 Name: CAR.DAT
0 Author: James Jessiman
0 Original LDraw Model - LDraw beta 0.27 Archive
0 Car
1 0 0 0 -90 1 0 0 0 1 0 0 0 1 4315.DAT
1 7 0 0 -60 1 0 0 0 1 0 0 0 1 4600.DAT
1 0 0 0 0 1 0 0 0 1 0 0 0 1 3031.DAT
1 7 0 0 60 1 0 0 0 1 0 0 0 1 4600.DAT
1 0 0 0 90 -1 0 0 0 1 0 0 0 -1 4315.DAT
1 46 30 -8 -90 1 0 0 0 1 0 0 0 1 3024.DAT
1 46 -30 -8 -90 1 0 0 0 1 0 0 0 1 3024.DAT
1 4 0 -8 -60 0 0 1 0 1 0 -1 0 0 3020.DAT
1 4 30 -8 -10 0 0 1 0 1 0 -1 0 0 3623.DAT
1 4 -30 -8 -10 0 0 1 0 1 0 -1 0 0 3623.DAT
1 4 30 -8 30 1 0 0 0 1 0 0 0 1 3024.DAT
1 4 -30 -8 30 1 0 0 0 1 0 0 0 1 3024.DAT
1 4 0 -8 50 0 0 1 0 1 0 -1 0 0 3021.DAT
1 4 0 -8 90 1 0 0 0 1 0 0 0 1 3710.DAT
1 1 0 -8 0 1 0 0 0 1 0 0 0 1 4079.DAT
Etcetera.
What you basicly want is some code after this line:
1 0 0 0 90 -1 0 0 0 1 0 0 0 -1 4315.DAT
to indicate that all previous parts including this one should have faded colors
and following parts are fully colored.
Jaco
|
|
Message has 1 Reply: | | Re: Previous step color scaling [DAT]
|
| (...) Correct. Technically, the prel3p commands affect color substitution on following lines, so you'll need to insert code in two places: once at the beginning of the model to use the "faded" colors, and again at whatever point you wish to restore (...) (17 years ago, 17-Oct-07, to lugnet.cad)
|
Message is in Reply To:
| | Re: Previous step color scaling
|
| (...) Sure, you will be able to. I used a modified version of PreL3P, my little tool for replacing color codes. I'll post version 1.3 which will include this ability (loading different configurations partway through a model) soon, once I take care (...) (17 years ago, 16-Oct-07, to lugnet.cad)
|
34 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
|
|
|
|