Hello all,
I've been dabbing at some 3D stuff using OpenGL, and came across this MS webpage :
https://learn.microsoft.com/en-us/windows/win32/opengl/glloadmatrixf
The embedded image, and with it its "column first" remark, is less than helpfull/clear to me :
Where should I imagine that the X,Y,Z coordinates are at ? At the bottom row (a3,7,11,15) or at the rightmost column (a12,13,14,15) ?
If it's supposed to be at the rightmost column (X at the top, Y and Z below it), how is it than different, especially for the above function, from a row-first notation ?
Regards,
Rudy Wieser
...Where should I imagine that the X,Y,Z coordinates are at ? At the
bottom
row (a3,7,11,15) or at the rightmost column (a12,13,14,15) ?
There's a wiki, something about how they're stored in memory
https://en.wikipedia.org/wiki/Row-_and_column-major_order
Paul,
...Where should I imagine that the X,Y,Z coordinates are at ? At the
bottom
row (a3,7,11,15) or at the rightmost column (a12,13,14,15) ?
There's a wiki, something about how they're stored in memory
https://en.wikipedia.org/wiki/Row-_and_column-major_order
The row- and colum-first ordering of the arrays is rather self-explanatory.
What I do not know is how - or even if - they, used as 3D matrices, are different from each other.
Assuming that the row-major matrix has the coordinates at the bottom and the column-major matrix has them on the right than the way both are stored in memory is exactly the same, and *presentation wise* the matrices are just mirrored over the top-left, bottom-right diagonal.
In that case and as far as I can tell even the matrix-multiplication is the same, just with the two input-matrices swapped.
Maybe I asked/started with the wrong question :
I know that a row-major matrix has the coordinates in the bottom row.
Where does a column-major matrix have them ?
Regards,
Rudy Wieser
For the first article we used, it's best to view that in a modern
browser (which I wasn't using at the time). Depending on your
browser, some of decorations render better in a good browser.
Paul,
For the first article we used, it's best to view that in a modern
browser (which I wasn't using at the time). Depending on your
browser, some of decorations render better in a good browser.
I have *no* idea why you are bringing that up. Really. No idea.
Maybe don't post OT stuff in an inappropriate forum,
must be plenty of places where you can ask on-topic questions
about openGL or graphics matrix manipulations.
Like stackoverflow.
Chris,
Maybe don't post OT stuff in an inappropriate forum,
I didn't. I posted in a few newsgroups.
must be plenty of places where you can ask on-topic questions
Its always remarkable that people complain, but somehow "forget" to supply a better way to do something. In this case, a better newsgroup.
about openGL or graphics matrix manipulations.
You have not understood the question. Although I've mentioned using OpenGL, its absolutily not specific to it.
Like stackoverflow.
I rather dislike making one-off accounts.
But now you mention SO, while googleling for the answer (before even thinking of posting a question here) I got a number of links to webpages presumably having to do something with my question.
But as I wrote to Paul, I first need to know where the coordinates are at. SO and so many others didn't.
After that I would have liked a (possible) explanation of what really makes them different - beyond what I already mentioned that is.
Complaining is easy. Trying to answer a question is a lot harder.
And by the way : Answers on SO and most like it are often rather language-specific. *C{something}* language specific even. Guess what : I'm not using C{something}.
Maybe don't post OT stuff in an inappropriate forum,
I didn't. I posted in a few newsgroups.
None of which are on-topic. You knew this hence your [OT?] subject.
must be plenty of places where you can ask on-topic questions
It's not for me to do your job for you,
If you can't be bothered to identify the most appropriate ng,
why should anyone else?
Well then, don't complain when you don't get the best answers.
Complaining is easy. Trying to answer a question is a lot harder.
Apparently, writing an on-topic post is hardest of all.
And? Improve your search criteria.
This sounds ideal for a chatgpt or claude conversation. It's actually very good for helping on technical topics when you're not quite sure how to
frame the question.
Besides, you, again, have no idea if I did not already put my question thru >one-or-more of those AIs, and could not care less. All you want to do is to >complain, an complain you shall. :-)
Besides, you, again, have no idea if I did not already put my question >>thru
one-or-more of those AIs, and could not care less. All you want to do is >>to
complain, an complain you shall. :-)
that doesn't matter. If you don't know where to ask your questions
that's not a good excuse to post your questions in this newsgroup.
Ask your questions in a search engine
and leave this newsgroup for windows7 related questions.
You are to one who don't understand it
and Chris has the right to complain about your off-topic questions.
You mean*noone* in the Windows7 ng writes programs or has some maths education that included matrices ? And you know that ...how ?
You need to investigate Multi-Dimensional arrays to do any 3D programming.
For example in C# you can write something like this:
If you have any specific C/C++ GL programming then try posting on:
With your OT questions you are driving people crazy on Windows newsgroups!
You need to investigate Multi-Dimensional arrays to do any 3D programming. >I did better than that : I read up on Matrices, specifically the 4x4 ones.
My first question is simple enough: where are the coordinates located in a >column-major matrix ? Can you answer that ?
As I mentioned to Chris, if you know of a better ng to post my question in >than by all means do tell.
You need to investigate Multi-Dimensional arrays to do any 3DI did better than that : I read up on Matrices, specifically the 4x4 ones.
programming.
yeah, just reading. Other people spend time learning and understand
matrices.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 64 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 492937:50:55 |
| Calls: | 842 |
| Files: | 1,304 |
| Messages: | 261,666 |