Re: rewrite glRotate?




Do it yourself and just put the matrix into OpenGL with
glLoadMatrix. The matrix stack and everything else still works,
but as you already figured out it gives you the advantage in
haing the matrix already hat hand when you need it.

Also all matrix functions of OpenGL are not HW accelerated
anyway, so you can actually gain some performance if you do
reimplement them yourself.

Works fine. One problem:
The order I stored the glRotate calls before, was reverse order.

Assume you have a pointer pointing towards (+)z-axis.
Then:
glRotate(90, -1,0,0)
makes it point to (+)y axis. Fine.

Now I want to rotate "this" thing arount z axis:
glRotate(90, 0,0,-1)
should make it rotate pointing to x axis.
But OpenGL is the other way round.

My brain is too small to understand "why" the reverse order?




.



Relevant Pages

  • Re: Series order in a chart legend.
    ... Select the axis of the data that you want to change- by clicking on the ... This brings up a pop-up form, ... reverse order. ... Pim ...
    (microsoft.public.excel.charting)
  • Re: How to reverse the order of bars in Bar Clustered chart?
    ... Double click the category axis and on the scale tab check both ... - Categories in reverse order ... When I use Bar Clustered to plot it, it puts the 10 above the 5, like ... reversed the oder of two cells. ...
    (microsoft.public.excel.misc)
  • Re: X-axis should read 20,000 years to 0 in intervals of 5,000
    ... If you're not happy with a line chart, double click on the axis, and on the Scale tab, check the Values in Reverse Order box, and perhaps also the Value Axis Crosses at Maximum Value. ...
    (microsoft.public.excel.charting)
  • Re: Plot command wont display line
    ... Why can't I get the x axis to reverse order, ... legend('Monte Carlo Integration','pi'); ... xlabel; ylabel; axis tight; ...
    (comp.soft-sys.matlab)