THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/05/2009 at 08:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.0
Platform: Windows ;
Language(s) : C++ ;
---------
Hi there,
I'm trying to read the phongnormals of a polygonobject, but the Vectors are always (0.0,0.0,0.0). I tried different objects with Phong-tags on them..
Here is the code:
if (po->GetTag(Tphong)) {
Vector *phongNormals = po->CreatePhongNormals();
for (LONG iNormal = 0; iNormal < po->GetPolygonCount()*4; iNormal++)
{
Vector *phongVec = phongNormals[iNormal];
GePrint("phongnormal: " + RealToString(phongVec->x) + " " + RealToString(phongVec->z) + " " + RealToString(phongVec->y));
}
GeFree(phongNormals);
}
Any ideas what I am doing wrong??
Thx