cinetec_tech Posted December 4, 2014 Share Posted December 4, 2014 hi I saw the getNormal is removed from the objectmeshdynamic. So how to workaround to get the normal? thanks Link to comment
silent Posted December 4, 2014 Share Posted December 4, 2014 Hi, According to the migration guide you should use quat getTangent() instead. 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
cinetec_tech Posted December 4, 2014 Author Share Posted December 4, 2014 hi Silent: Could you send me a sample how to use getTangent for the normal? also any reason remove the getnormal? Link to comment
sebastianbah Posted December 8, 2014 Share Posted December 8, 2014 Hi,You can use the following piece of code as an example: forloop(int i = 0; mesh.getNumVertex()) { quat q = mesh.getTangent(i); log.message("%s\n",typeinfo(q.normal)); } Also, we'll add getNormal function in future releases. Link to comment
cinetec_tech Posted December 9, 2014 Author Share Posted December 9, 2014 thanks Sebastian Link to comment
cinetec_tech Posted February 27, 2015 Author Share Posted February 27, 2015 Is that possible to do setNormal as well? Link to comment
silent Posted February 27, 2015 Share Posted February 27, 2015 Hi, According to the Migration guide setNormal() was replaced with setTangent(). Thanks! 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
cinetec_tech Posted February 28, 2015 Author Share Posted February 28, 2015 Hi, According to the Migration guide setNormal() was replaced with setTangent(). Thanks! yes. i know the setTangent function. Could you send me a sample how to convert a normal to tangent so I could use setTangent in my case? I only know the normal the vertex. thanks Link to comment
Recommended Posts