I want to draw a triangle shape over a 3d head model.
I have tried with drawing the triangle on the texture and applied it over the 3d model. But it will not help completely. When texture render on the 3d model, it get stretch.
CC3MeshNode *tnode = [avatar getMeshNodeNamed:@"polySurface1-submesh0"]; tnode.material.isOpaque=YES; //set alpha value tnode.material.sourceBlend=GL_SRC_ALPHA; tnode.material.destinationBlend=GL_ONE_MINUS_SRC_ALPHA; CC3Texture *texture = nil; texture = [[CC3Texture alloc] initFromFile:@"hairbuilder.png"]; //create texture image that added with the shape. [tnode.material addTexture:texture]; [texture release];
Is there any way to draw shape directly over the 3d model