• Advertisement
Sign in to follow this  

the quad seems broken when the Camera position changed

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

First Picture:(it's ok) http://tk.files.storage.msn.com/x1pgliP38XxBL1cVYQD_oLd5lF7aO4C8Pu9vL8QWDSDPEQddPGTmRc2jmlI1cxorfOqK94P8xC6wYg3V1OSn43YRSxOrfhCbHNbHPaG0bv7w3WFWxFvCi0oGLw9LIKgz1hXT4Z_lrMga4XWwFCQOQpNWYzlXuam_aOD and then,I slightly move my camera(whatever left,right,forward,backward,or even rotate it),I get the Second Picture:(plz pay attention to the cloth on the ground) http://tk.files.storage.msn.com/x1pgliP38XxBL1cVYQD_oLd5lF7aO4C8Pu9vL8QWDSDPETCQbMXIBo84qSo-2VKWxBkIQfLCojtAXHDps8AmkaHzf3fgc9NT8p5YmrZEbiM3cCmogWZ-MYt8eiQI1JbLAmIMEJoPj980a85xL8yR3qs0Ej_wyQqeo53 the cloth seems partly broken. I don't know what caused this I have tried something like glDepthFunc(GL_LESS) or glHint(GL_PERSPECTIVE_....) but it doesn't work. can you help me? best regards.

Share this post


Link to post
Share on other sites
Advertisement
looks like z fighting, make your near z depth value 10x larger
eg gluperspective( x,x, near*10, x );

Share this post


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

  • Advertisement