Jump to content
  • Advertisement
Sign in to follow this  
adasko007

Problem with ms3d

This topic is 4502 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!