sergey.pozhidaev Posted October 22, 2014 Share Posted October 22, 2014 hi, can you add translation and scalation core functions like rotation for matrix? Link to comment
necris Posted October 27, 2014 Share Posted October 27, 2014 Hello, SergeyNo, I'm afraid we won't add these variables in the nearest future.You can take the last column from input matrix for translation and main diagonal for scalation matrix.Please check the usage of swizzling for matrix here: https://developer.unigine.com/en/docs/1.0/scripting/language/data_types#swizzling Link to comment
sergey.pozhidaev Posted November 3, 2014 Author Share Posted November 3, 2014 no swizzling in C++ API Link to comment
unclebob Posted November 5, 2014 Share Posted November 5, 2014 Hello there! Let me put my 5 cents: you can use decomposeTransform and composeTransform functions for rotation/translation/scale. This functions are available both in C++ and UnigineScript. Link to comment
sergey.pozhidaev Posted November 6, 2014 Author Share Posted November 6, 2014 i am using this, but i want comfortable core one-string function like rotation Link to comment
ulf.schroeter Posted November 6, 2014 Share Posted November 6, 2014 You can always build your own small utility class for conveniance Link to comment
unclebob Posted November 10, 2014 Share Posted November 10, 2014 Also, you can use mat4::setTranslate, mat4::setRotate, mat4::setScale methods in C++ API. Link to comment
sergey.pozhidaev Posted November 14, 2014 Author Share Posted November 14, 2014 very nice, but i need mat4::getTranslate, mat4::getRotate, mat4::getScale :D Link to comment
silent Posted November 14, 2014 Share Posted November 14, 2014 I will add this suggestion to our internal bug tracker. However, can't promise anything at this moment, sorry. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
silent Posted November 14, 2014 Share Posted November 14, 2014 Good news! New methods will be available with the next SDK update: mat4::getTranslate() mat4::getRotate() mat4::getScale() How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts