Category : texture-mapping

ive followed opengl tutorial at leranOpengl.com and i have problem with drawing nanosuit model my appliction use opengl and lefthanded the result image : wrong nanosuit model and while it should be like this correct one my assimp importer flags is const aiScene* scene = importer.ReadFile(path, aiProcess_Triangulate | aiProcess_JoinIdenticalVertices | aiProcess_CalcTangentSpace | aiProcess_GenNormals | aiProcess_MakeLeftHanded ..

Read more

i’d like to know how to apply color and shading to an object in c++ (using maya-api map a 2D texture), Here is my code: MString MNEUT_FILE("G:/repos_cpp/data/eye_base.obj"); MGlobal::executeCommand(MString("file -import -namespace "EYETemp" -mergeNamespacesOnClash true") + """ + MNEUT_FILE + """); MGlobal::executeCommand(MString("select "EYETemp:*"")); MGlobal::executeCommand(MString("rename ") + "eyeNeutral"); stat = MGlobal::executeCommand(MString("shadingNode -asShader lambert -name eyeball")); stat = MGlobal::executeCommand(MString("sets ..

Read more