Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Cube axels
Topic Started: Jul 1 2006, 08:19 AM (348 Views)
57E
Member Avatar
Forum Leader
[ *  *  *  *  * ]
Should the cube's rotation axels be positioned like in the right, instead of left, cube in the picture bellow.

EDIT: (Sorry, thumbnail didn't work, so here is the link.)
http://img303.imageshack.us/my.php?image=example5bv.png

Because now cube didn't stay in same location if it rotates around any of the axels.
If this is only my error i like to know how fix it. Otherwise i be glad if it is fixed in next version, becouse it causes me serious problems.
Thank you.

Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
You have to set the variables originx and originy so origin of the cube is in the center. So...
Code:
 
originy = 1/2

I think that should help.
Offline Profile Quote Post Goto Top
 
57E
Member Avatar
Forum Leader
[ *  *  *  *  * ]
No change.

Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
57E
Jul 1 2006, 10:45 AM
No change.

Hmm, maybe that's just for billboard 2D graphics.
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
@ Despellanion
Yes, that works only for billboards.

@ 57E
It is meant to be how it's in the left picture. If you want to handle a cube as in the right picture you can use a bit trigonometry to reach this. You would pass the desired coordinates of the center of the cube and then it would set up x, y and z dependent on these coordinates, the dimensions of the cube and it's transformation (rotx, roty, rotz, scalx, scaly, scalz). I may write a script which does that lateron (if noone else does ;) ).
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply