Closed GoogleCodeExporter closed 8 years ago
getOpenGLMatrix requires the pointer to be 16 byte aligned.
Try using this:
ATTRIBUTE_ALIGNED16(glm::value_ptr v(worldTrans));
objTrans.getOpenGLMatrix(v);
Original comment by erwin.coumans
on 11 Sep 2013 at 12:01
I'm having this problem as well. And adding the ATTRIBUTE_ALIGNED16 didn't help
me. Can anyone speak to what's going on
Original comment by ryanbart...@gmail.com
on 29 Dec 2013 at 11:55
It now worked but I would like to not have to Align it everytime I want
something. Is there a way not to do this?
Original comment by ryanbart...@gmail.com
on 29 Dec 2013 at 11:59
You either align the data, or disable all SSE and suffer some performance. SSE
requires alignment, it is a hardware requirement. It is only necessary in a few
cases.
Original comment by erwin.coumans
on 30 Dec 2013 at 3:34
Thanks so much for the help.
Original comment by ryanbart...@gmail.com
on 30 Dec 2013 at 5:04
solved by aligning the glm matrix , not the pointer to it
glm::mat4 ATTRIBUTE_ALIGNED16(worldTrans);
btTransform objTrans;
objTrans.setIdentity();
objTrans.getOpenGLMatrix(glm::value_ptr(worldTrans));
Original comment by omai...@gmail.com
on 29 Jan 2014 at 10:59
thanks for reporting back, I'm glad it works for you.
Original comment by erwin.coumans
on 29 Jan 2014 at 11:06
Many Thanks.
Original comment by omai...@gmail.com
on 29 Jan 2014 at 11:09
Original issue reported on code.google.com by
omai...@gmail.com
on 16 Feb 2013 at 5:32