2024年5月2日 星期四

11160933_week11

 1. new file week11-1_TRT_again

copy last week10-1

add TRT in BODY and ARM

2.add float and angle and glutIdleFunc(display);


3.opencv and set compiler

C:\OpenCV2.1\include

C:\OpenCV2.1\lib

cv210 cxcore210 highgui210

reopen codeblocks


4.copy week09-1 rename 11-2

5.open Maya

import gundam

left right arm

export all obj

6.add GLM

GLMmodel * handA = NULL;

GLMmodel * handB = NULL;

GLMmodel * pmodel = NULL;


void drawhandA(void)

{

    if (!handA) {

    handA = glmReadOBJ("data/handA.obj");

    if (!handA) exit(0);

    glmUnitize(handA);

    glmFacetNormals(handA);

    glmVertexNormals(handA, 90.0);

    }

    glmDraw(handA, GLM_SMOOTH | GLM_TEXTURE);

}

7.add cube


























沒有留言:

張貼留言