Subject:
|
Re: LPub Rotation Step angle woes
|
Newsgroups:
|
lugnet.cad.dev.mac
|
Date:
|
Thu, 6 Nov 2008 06:16:03 GMT
|
Viewed:
|
11664 times
|
| |
| |
In lugnet.cad.dev.mac, Jim DeVona wrote:
|
In lugnet.cad.dev.mac, Allen Smith wrote:
|
Im working on rotation steps, and Im not seeing LPub do what I expect it
to do.
I have the following file:
1 2 0 0 0 1 0 0 0 1 0 0 0 1 3865.dat
0 ROTSTEP 0 0 0 ABS
1 4 -150 -24 70 1 0 0 0 1 0 0 0 1 3005.dat
0 ROTSTEP 0 0 0 REL
|
|
That should give me:
- A step with a front view
- A step with the default 3D angle.
|
|
snip
|
|
Am I completely missing something here? My output is not oriented the same
way the pictures Jim posted in his tutorial were.
I am using LPub 4.0.0.1 with LDView 3.2.
Allen
|
Hi, Allen.
Heres what I see when I open your example in LPub 4.0.0.1:
|
Alas. That is what Im supposed to see, not what I actually do see. Something is
convinced that the 0,0,0 rotation is actually equal to the default 3D angle,
which causes requests for the real default 3D angle to be over-rotated.
|
Im not sure why the difference, but Ill list some possible factors.
- Side effects of other LPub options, e.g. to hide PLI
- LDView version (I use a 4.0 Pre-Alpha version from SourceForge/Travis)
- Assembly image cache - try clearing it (from the Tools menu) and clicking the Redraw button
|
Well, its definitely not #1 or #3. Kevin or Travis, do you have any idea what
is going on here?
|
A confession: I never use ROTSTEP ABS (Im just in the habit of using REL),
so Im not very familiar with its behavior. I rotate things relative to the
default view.
I probably misuse ROTSTEP, too (but I put it to good misuse). I usually put
ROTSTEPs immediately after STEP commands (at the top of the file, for the
first step) and before the parts I intend to rotate. So, my version of the
file might look like this:
0 ROTSTEP 0 0 0 ABS
1 2 0 0 0 1 0 0 0 1 0 0 0 1 3865.dat
0 STEP
0 ROTSTEP 0 0 0 REL
1 4 -150 -24 70 1 0 0 0 1 0 0 0 1 3005.dat
|
|
Or, in the case of LPub multi steps, I put the ROTSTEP immediately after the
multi step begin statement (which goes immediately after multi step end,
which goes immediately after the STEP...).
Hopefully someone else can STEP in and clarify. Im afraid I use a lot of
voodoo to insert these commands.
Jim
|
As Kevin wrote, the form I posted is the correct one. This was a fairly recent
epiphany on my part, which is why Bricksmith currently leads you astray in where
it is putting step commands. 0 STEP/ROTSTEP is supposed to come after the
parts in the step, not before. And ROTSTEP replaces STEP. I intend to fix this
behavior in the next release of Bricksmith.
Allen
|
|
Message has 2 Replies: | | Re: LPub Rotation Step angle woes
|
| (...) Please note that instead of "0 ROTSTEP 0 0 0 REL", the preferred meta command is "0 ROTSTEP END". (...) There are 4 kinds of ROTSTEPS: REL, ABS, ADD, END For REL, you add the angles from the ROTSTEP meta to the default viewing angle to get the (...) (16 years ago, 6-Nov-08, to lugnet.cad.dev.mac, FTX)
|
Message is in Reply To:
| | Re: LPub Rotation Step angle woes
|
| (...) Hi, Allen. Here's what I see when I open your example in LPub 4.0.0.1: (2 URLs) I'm not sure why the difference, but I'll list some possible factors. Side effects of other LPub options, e.g. to hide PLI LDView version (I use a "4.0 Pre-Alpha" (...) (16 years ago, 3-Nov-08, to lugnet.cad.dev.mac, FTX)
|
12 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
|
|
|
|