Skip to main content
15 events
when toggle format what by license comment
Dec 24, 2013 at 20:03 answer added Anton timeline score: 1
Dec 20, 2013 at 9:56 history tweeted twitter.com/#!/StackGameDev/status/413971036838035456
Dec 20, 2013 at 7:37 comment added Sean Middleditch Instead of or in addition to pictures, post some small code samples. There's a bazillion simple explanations for differing output from similar input.
Dec 20, 2013 at 6:58 comment added Nathan Reed @Anton There are row-vector vs column-vector definitions, but I don't think switching between those would cause these results (and besides, it'd be very unusual for a vector math lib to switch between row-vector and column-vector - they usually pick one and stick to it). I think this is likely to be a code bug rather than a definitions issue.
Dec 20, 2013 at 5:43 comment added Anton @NathanReed I came to the exact same conclusion as you. Which made me wonder if there were multiple valid definitions for how the transformations are defined
Dec 20, 2013 at 5:42 comment added Anton @PieterGeerkens glMatrix does not give me an option for prepend or append
Dec 20, 2013 at 5:33 comment added Nathan Reed Looks like possibly in the previous version, the second translate (150, 0, 0) was happening in the rotated coordinate system, i.e. the x-translate would be along the world space y-axis, but now the translate is being applied in world coordinates, so the x-translate is along the x-axis. That is strange, though - with the normal way of combining transforms by multiplying matrices, you would expect the former, i.e. the v0.9.5 behavior seems more correct.
Dec 20, 2013 at 5:32 comment added Pieter Geerkens When you concatenate a transformation to the existing matrix, is there an option to prepend or append the new operation? You seem to be executing the final two transformations in the opposite order.
Dec 20, 2013 at 5:27 history edited Anton CC BY-SA 3.0
added 28 characters in body
Dec 20, 2013 at 5:12 comment added Anton I added images of what is going on. Thank you for the interest and help
Dec 20, 2013 at 5:10 history edited Anton CC BY-SA 3.0
added 620 characters in body
Dec 20, 2013 at 4:49 comment added Seth Battin Would you edit your question to include your input, the operations, and the different output?
Dec 20, 2013 at 4:28 comment added Anton I'm fairly certain they are not swapped. I'm doing a translate, rotate, translate, and rotate to the square and I'm getting a different result with the new version of glMatrix. But if I just do a translate and then a rotate then both versions of glMatrix give the same result.
Dec 20, 2013 at 4:24 comment added Seth Battin Are the columns and rows swapped in your two different examples? If so, that's not really a change to the way the matrix works, but rather a change of order of operations. Sort of.
Dec 20, 2013 at 4:22 history asked Anton CC BY-SA 3.0