Sign in to follow this  
Arangol

Wall Disappearance

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

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