• Advertisement
Sign in to follow this  

Wall Disappearance

This topic is 4168 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

So I have this *coughgamecough*, I can load in it obj files, I have input and all that stuff for a beginner game. No I ran into a problem, when I move away from the 3d objects on the screen, they will disappear when I am about 20 meters away from them. What should I do? Here is my InitGL()

int InitGL(GLvoid)										
{
    
    if (!LoadGLTextures())								
	{
		return FALSE;									
	}

	glEnable(GL_TEXTURE_2D);							
	glShadeModel(GL_SMOOTH);							
	glClearColor(0.5f, 0.5f, 1.0f, 0.5f);				// 
	glClearDepth(1.0f);									
	glEnable(GL_DEPTH_TEST);							
	glDepthFunc(GL_LEQUAL);		
    glBlendFunc(GL_SRC_ALPHA,GL_ONE);						
	glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);	
	glEnable(GL_CULL_FACE);
    cout<<"InitGl completed\n";

	BuildFont();
    			               
    Init_Character();
    Init_Landscape();


	return TRUE;									
}


Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement