Jump to content

Cross Vector on Box


Recommended Posts

Hey all, interesting little math dilemmna here.  The problem is refining cross product  alignment on a simple 6 primitive box (see attached).  

Basically here is where I am at.  Im doing some work on quaternion based rotation systems.   Got a neat rig in place for geometry with well designed uvs-- 6- stacked quaternions for 3 axis--pitch, roll, and yaw, using vectors @N, @up, and v@cross - respectively. 

I thought I had a really solid system in place, until I test it on.......a box........:wacko:.   

 

The issue is the cross product itself.  The cross products are aligning themselves sequentially-- basically wrapping around the box (see scene visualizer: "cross").   I mean it makes sense, but for the purpose of this scene,  I need to have all of the cross products pointing

1) towards the y axis, and

2) away from the object itself, and I want to do it procedurally.  

Any trig solutions solutions to this?  

12517_matrix_upld.hipnc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...