cinetec_tech Posted December 4, 2014 Posted December 4, 2014 hi I saw the getNormal is removed from the objectmeshdynamic. So how to workaround to get the normal? thanks
silent Posted December 4, 2014 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
cinetec_tech Posted December 4, 2014 Author 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?
sebastianbah Posted December 8, 2014 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.
cinetec_tech Posted February 27, 2015 Author Posted February 27, 2015 Is that possible to do setNormal as well?
silent Posted February 27, 2015 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
cinetec_tech Posted February 28, 2015 Author 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
Recommended Posts