Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by 7th_zorro. 04/20/24 07:29
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, henrybane, flink, Edgar_Herrera), 758 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
angle/vector conversion question #466058
05/23/17 12:47
05/23/17 12:47
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hey,

Does someone here know what the formula is from pan+roll to pan+tilt, while keeping the angle's direction?

So in other words, the angle is facing the right direction but I want to let it use the tilt value and not the roll value.

It probably has something to do with cosinus and sinus but my brain failing me in my math calculations. grin

Last edited by Reconnoiter; 05/23/17 12:47.
Re: angle/vector conversion question [Re: Reconnoiter] #466075
05/24/17 08:33
05/24/17 08:33
Joined: Aug 2003
Posts: 118
Deutschland
E
Ezzett Offline
Member
Ezzett  Offline
Member
E

Joined: Aug 2003
Posts: 118
Deutschland
You need at least three values to describe an orientation in three dimensional space.

For arbitrary values you can't convert pan+roll to pan+tilt.

But for just looking to the right direction the pan value alone should be enough. Or what do you mean with "facing right"? Do you have any constraints for your angles? Maybe you could also change the orientation of a model in MED so you could rotate it in your game via pan+tilt instead of pan+roll.

Re: angle/vector conversion question [Re: Ezzett] #466077
05/24/17 09:36
05/24/17 09:36
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Yeah sorry, I mean pan + roll + 0 tilt to pan + tilt + 0 roll. With facing the right direction I mean including looking up or down at specific angles.

Re: angle/vector conversion question [Re: Reconnoiter] #466083
05/24/17 11:42
05/24/17 11:42
Joined: Aug 2003
Posts: 118
Deutschland
E
Ezzett Offline
Member
Ezzett  Offline
Member
E

Joined: Aug 2003
Posts: 118
Deutschland
Ok, you are using roll to look up and down (that was not clear to me) and now you want to change this to tilt.

Did you already try to convert the pan-roll-angle to a vector via vec_for_angle and back to a pan-tilt-angle via vec_to_angle?

Re: angle/vector conversion question [Re: Ezzett] #466086
05/24/17 14:00
05/24/17 14:00
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Originally Posted By: Ezzett
Maybe you could also change the orientation of a model in MED so you could rotate it in your game via pan+tilt instead of pan+roll.

That is the only way indeed.

A direction vector is fully described by pan and tilt. Roll is the rotation around that vector, a non described property in a direction vector, so you have not made yourself understood. Be more specific, please.

Re: angle/vector conversion question [Re: txesmi] #466087
05/24/17 14:10
05/24/17 14:10
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Originally Posted By: Ezzett
Did you already try to convert the pan-roll-angle to a vector via vec_for_angle and back to a pan-tilt-angle via vec_to_angle?
, thanks

Originally Posted By: txesmi
A direction vector is fully described by pan and tilt. Roll is the rotation around that vector, a non described property in a direction vector, so you have not made yourself understood. Be more specific, please.
, I already said I was sry for the confusion wink , what more do you want me to say?

Re: angle/vector conversion question [Re: Reconnoiter] #466126
05/26/17 04:30
05/26/17 04:30
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Sorry my curtness. I was not scolding you. I just wanted to understand.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1