Topic locked

How can I to customize a model

December 29, 2014 - 12:18am #1

Hi,everyone.I'm using the latest version of the SDK, I modified the code. Display a custom model, but not as I want it, how do I want to put the pot into a beautiful girl.

 const  char *textureFilenames[]=
    {
         "gril.png",
    };

 

How can I to customize a model

January 4, 2015 - 6:35am #3

closing.

 

How can I to customize a model

December 29, 2014 - 5:26pm #2

oh!!I found a solution. The following code can be modified.

 glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)grilVerts);
            glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)grilNormals);
            glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)grilTexCoords);

 

Topic locked