Setting MFnMesh UVs -- No Error, but do not appear

Setting MFnMesh UVs -- No Error, but do not appear

Anonymous
Not applicable
602 Views
1 Reply
Message 1 of 2

Setting MFnMesh UVs -- No Error, but do not appear

Anonymous
Not applicable

So I have done the following:

 

fnMesh.create(uniquePositionsList->Count, mesh->Triangles->Count, mPointArray, polygonCounts, polygonConnects, meshTransformObj, &status);

MString setName = "UVSet";
fnMesh.createUVSet(setName);
fnMesh.setCurrentUVSetName(setName);
if (fnMesh.clearUVs(&setName) == MStatus::kFailure) { cerr << "clearUVs Error" << endl; } if (fnMesh.setUVs(uArray, vArray, &setName) == MStatus::kFailure) { cerr << "setUVs Error" << endl; } if (fnMesh.assignUVs(polygonCounts, uvIDs, &setName) == MStatus::kFailure) { cerr << "AssignUVs Error" << endl; }

 

No errors are coming up -- but when I click on the created mesh -- and open the UV editor -- it is completely empty?

 

I do see the name "UVSet" selected however.

 

0 Likes
Accepted solutions (1)
603 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

My uvIDs were not correct. Did not realize it was per triangle vertex specific

0 Likes