Jump to content

  • Log In with Google      Sign In   
  • Create Account

Anttweakbar direction widget


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 N.I.B.   Members   -  Reputation: 1195

Like
0Likes
Like

Posted 31 August 2014 - 01:44 PM

It seems that by default the widget is in RHS (+Z points toward me). That's kind of a problem, since my framework is LHS. I couldn't find in the documentation a way to define the widget as LHS.

 

Before I dive into the ATB code - anyone knows if there's a way to programmatically define the widget to work in LHS?



Sponsor:

#2 Buckeye   Crossbones+   -  Reputation: 6308

Like
0Likes
Like

Posted 31 August 2014 - 03:06 PM

Left-handed and right-handed systems aren't defined by which direction an axis is relative to the eyepoint.

 

In any case, the TwSimpleDX11 sample uses a left-hand system - i.e., if +X is to the right, and +Z is away from the eyepoint, the +Y axis is up.


Edited by Buckeye, 31 August 2014 - 03:07 PM.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.


#3 Bacterius   Crossbones+   -  Reputation: 9282

Like
1Likes
Like

Posted 31 August 2014 - 07:02 PM

Have you tried the axisx/axisy/axisz variable parameters? In the documentation (here at the bottom) it says:
 

axisx / axisy / axisz

For direction and quaternion variables only.

Change the default coordinate system used to represent quaternion and direction. By default the coordinate system is right-handed with axis x pointing to the right, axis y pointing to the top and axis z pointing to the front (ie., the viewer). If you are using a different coordinate system in your application, use these parameters to permute the axes. n represents the new axis; it is one of the following values: x, -x, y, -y, z or -z.

Example:

TwDefine(" mybar/Rotation axisx=x axisy=y axisz=-z ");  // Permute z axis to get a left-handed coordinate system


The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.

 

- Pessimal Algorithms and Simplexity Analysis


#4 N.I.B.   Members   -  Reputation: 1195

Like
0Likes
Like

Posted 31 August 2014 - 11:03 PM


Have you tried the axisx/axisy/axisz variable parameters?

That works, thanks. I somehow missed the varparam section in the documentation.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS