Sign in to follow this  
adasko007

Problem with ms3d

Recommended Posts

Hi! I have a problem with ms3d model drawing... I' ve done all as in lesson 31 on Nehe, and I've imported model to my project (fish model) - and I've done the operating for this fish... So that fish can turn left, right, go forward, back... And now i want to give to the scene another one model (plant) and that plant shoul stay in one place... But I don't know how make it... :/ When I'm trying:
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);	// Clear The Screen And The Depth Buffer   

    glColor4f(1,.8,.8,1);
    glLoadIdentity();
    glTranslatef(0,-1,-3);

	

    glRotatef(zprot*15,0,0,0.5f);
    //glRotatef(-Speed,1,0,0);
	glRotatef(-90, 0.2f, 0.8f, 1);
	glBindTexture(GL_TEXTURE_2D, texture[5]);
    glEnable(GL_LIGHTING);
    pModel->draw();		
    glDisable(GL_LIGHTING);
    glLoadIdentity();
    plantModel->draw();
plant model is moving with fish model... What should I do to stop plantModel?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this