DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Rotation on 2 axis doesn't give expected result

Started by altair, March 05, 2014, 01:43:26 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

magic

Hi Sam,

Oh bliss, Auchentoshan, my favorite.  :) ;) :D ;D
It's a kind of magic!




prl

#46
Sam,

Thanks for letting me play around with this.   I was wondering how the rendering program would handle improper planes.  The slightly skewed and mangled book cover has a bent ear on the top right corner.  An improper plane with an out of plane corner.

Oh yes, the book, an oldie.  DesignCAD 3d BasicCAD ver 4.0

Great things go together, especially during cold winters.

prl

And getting back to the topic at hand,  I was curious about your cone theory approach.  So I added it to the two planes model.

samdavo

#48
Great effort with the Tutorial there prl !!
I'm guessing magic would fly over to join you.

I'll look into the cone thing.
In the meantime ( not sure why lol) I decided to have a go at drawing a stiletto-heeled shoe.  (to be honest I gooogled "shoe pictures", and this was the best one to work with).

In short, it's amazing how rough you can draw the shoe, and then surface-map a picture onto it .

Pathetic effort, but still surface-texturing is fairly forgiving 
(the first jpeg is an actual shoe, the others are just lumps of virtual wood, and roughly carved at that).
cheers

prl

Quote from: samdavo on March 08, 2014, 06:00:18 AM
In short, it's amazing how rough you can draw the shoe, and then surface-map a picture onto it .

Nice, you're right. I'm surprised too.  The future of plastic surgery. "You look marvelous" as Billy Crystal would say.

samdavo

#50
Here's the dcd - strictly for interest - not suggesting anyone "goes there".

How does that Monty Python song go again?  This critique from wikipedia :-
Quote"I cut down trees, I skip and jump, I like to press wild flowers, I put on women's clothing, and hang around in bars", which both distresses the girl and disturbs the confused Mounties, who continue to repeat and chorus his lines, albeit with increasing hesitance. The last straw comes when he mentions that he wears "high heels, suspenders, and a bra," and some of the Mounties stop repeating his lines

Must be someone else's turn to draw the bra - or maybe the suspenders.  (then again, maybe DT would not be impressed on his return next week).   

QuoteAt the end of the version in Flying Circus, a letter written by an enraged viewer (voiced by John Cleese) is shown to complain about the portrayal of lumberjacks in the sketch. The letter reads: "Dear Sir, I wish to complain in the strongest possible terms about the song which you have just broadcast about the lumberjack who wears women's clothes. Many of my best friends are lumberjacks, and only a few of them are transvestites. Yours faithfully, Brigadier Sir Charles Arthur Strong (Mrs.)" It then cuts to (Graham Chapman) complaining about the inappropriateness of "all this sex on the television," exclaiming, "I keep falling off!"

PS, you realise prl that you are teasing us with that reflection capability.   What is the cheapest way to get something like that I wonder (?)  Not that I would use it in my line of business to be honest.    - Does SU do that?

prl

#51
Quote from: samdavo on March 08, 2014, 06:10:45 AM
you realise prl that you are teasing us with that reflection capability.

Yes, SU and maybe a $100 bucks for a render-er.

samdavo

#52
thanks prl
Quote from: samdavo on March 07, 2014, 03:23:16 PM
ok - here's another riddle.  It involves the fact that when you go to isometric, and you look at the view toolbar, you note that LEFT-RIGHT of 45 deg, and UP-DOWN of 35.26 deg.

[If you do this manually, -45 about y and 35 about x you get the same as isometric but in FRONT view; but vice versa, you get a different answer].

YET (second half of this riddle/trick), if you set the view angles to 45 and 35 (near enough to 35.26), it makes no difference which order you set them. 

And likewise with shadows, H = 30 and V= 0 can be set in either sequence.
I'm gonna answer my own question here :)
But one starts to appreciate the simplicity of a coordinate system that is defined simply by what-I-imagine-artillerymen-use eg "compass bearing" and "elevation".  ;   

a) Mathematical angle or Geographical angle (it matters not) to the projection of a line onto one plane (usually XY, but probably XZ in DCAD), and
b) the elevation to the line from that projection of the line.

This definition of a line's direction can be "constructed" in either sequence.  i.e. set the Barrel of the gun to the correct elevation, then swing it to the correct bearing - or vice versa.  Either way gets the correct direction in 3D (2 cents)

edit - If you rotate 35 about x (barrel elevation), and then slew about y by -45 (bearing) you get the right answer.

If you rotate -45 about y first (slewing the barrel), and then rotate about x  , that is not the same as "elevation".   the x axis is not the "strike direction" about which you need to rotate to get elevation - in fact it is now 45 degrees away, and will give you the wrong answer. (2 cents)

samdavo

Just for fun - adding shadows. (and I note that shadows can be cast on a surface that is texture mapped, eg the second shoe)

samdavo

and you can give your shoes a spraypaint in a flash.
Anyone remember Imelda Marcos?

samdavo

#55
Quote from: samdavo on March 08, 2014, 07:01:27 AM
the x axis is not the "strike direction" about which you need to rotate to get elevation
Here's the concept of strike and dip - for anyone not familiar with it. (geology stuff)
http://en.wikipedia.org/wiki/Strike_and_dip

THis sketch taken from wikipedia.
IMO, I don't like the way they show angle A twice, and the second ( dip) is inaccurate or at least/best confusing (2 cents)

PS the second jpeg is clearer.  - or rather -
the first shows strike (brg from north); 
the second shows dip (slope down the geological stratum)

samdavo

Sorry to labour this - what I'm really saying I guess is that, in a similar manner, bearing and elevation define a 3D direction from a point with 2 bits of info.  (Whereas angles to x and z axes, eg 70 and 60, also 2 bits of info, is still ambiguous until you define which quadrant).

As for defining a line,
The simplest I guess is (x1,y1,z1)  and (x2,y2,z2) = 6 bits of info.

Another set of 6 bits of info :-
the point where the vector starts (x1, y1, z1)
then the bearing of the projection on the XY plane from that point ( A degrees)
the slope from that point (B degrees,  either +ve or negative),
and the length (L);
making (again) a total of 6 bits of info to define a line.
(2 cents)

PS I post the jpeg only to show that angles to 2 axes is ambiguous and insufficient to pin down the direction)

prl

Quote from: samdavo on March 08, 2014, 10:55:03 PM
Sorry to labour this

Isn't that what we do here . . .  .

The bearing and elevation system is a spherical system.  In the graphic below, the tilt is measured from the vertical rather than horizontal but same thing.


prl

#58
And if you think about it, the spherical approach only works for Guy's example because his object is a cylinder.  It the 3d object had an odd shape, that system would be insufficient to describe it in 3d space.  We would need to add the "roll" angle about the final vector.





Most associate this with aircraft but I'm thinking CNC equipment uses this too.  Maybe 3d mice too.

samdavo

#59
prl
re your last two posts :-
yep and yep, 
spot on - the angle to the z axis especially (similar to but arguably better/easier to define than dip or elevation - for the general DCD case anyway). 
cheers
sam

PS You also introduce an interesting riddle or two when you mention pitch and roll.
Suppose a rectangular boat is moored with ropes fore and aft, effectively aligned perpendicular  to the shore.

Suppose there is a roll of 12 degrees and a pitch of 6 degrees.
How do you combine these?

Let's assume pitch roll (and yaw) are always measured about the model axes rather than the world axes.
Do you get the same result/alignment  if you first apply the roll, then the pitch;  as you do if you reverse the sequence? ( I believe not).

What about if pitch and roll are about world axes (again I believe not). 

What is the correct alignment/orientation of a boat with concurrent roll of 12 degrees, and pitch of 6 degrees?

What I would have said, until I ran into this thread anyway, lol, would be to say
a) that rotation about x was 12 degrees, 
b) rotation about z was 6 degrees, (ok ok , about Y would be more normal) ; and
c) the vector sum was 13.4 degrees about some combined axis. 
Does this stand close scrutiny?  Is this unambiguous without further clarification?
I doubt it :) )

PS THe enclosed jpeg and dcd assume  Roll and Pitch make that  Pitch and Roll are about Model Axes (and in that order).

(edit apologies - I note that I have drawn this , first stab, with 12 deg pitch (not 6), and 12 deg roll.  I will repost that sketch and drawing).

edit I enclose revised drawing, including the comparison of Pitch then Roll, with Roll then Pitch, - and even with model axes, I get different final positions in space (?)  Hope I'm correct, but I have gotten the same result twice, so I think I must be right.
cheers