To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.macOpen lugnet.cad.dev.mac in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Macintosh / 1006
1005  |  1007
Subject: 
Re: LPub Rotation Step angle woes
Newsgroups: 
lugnet.cad.dev.mac
Date: 
Thu, 6 Nov 2008 06:16:03 GMT
Viewed: 
11174 times
  
In lugnet.cad.dev.mac, Jim DeVona wrote:
   In lugnet.cad.dev.mac, Allen Smith wrote:
   I’m working on rotation steps, and I’m 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:
  1. A step with a front view
  2. 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.

Here’s what I see when I open your example in LPub 4.0.0.1:



Alas. That is what I’m 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.

  
I’m not sure why the difference, but I’ll list some possible factors.
  1. Side effects of other LPub options, e.g. to hide PLI
  2. LDView version (I use a “4.0 Pre-Alpha” version from SourceForge/Travis)
  3. Assembly image cache - try clearing it (from the Tools menu) and clicking the Redraw button

Well, it’s 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 (I’m just in the habit of using REL), so I’m 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. I’m 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
 
(...) The more I think about it, the more I suspect that LDView 3.2 on the Mac is to blame. I sent Allen an email with a link to an LDView 4 test build. --Travis (16 years ago, 6-Nov-08, to lugnet.cad.dev.mac, FTX)
  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
    

Custom Search

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