Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Depth buffer problem

egydevegydev Posts: 1Member
[b]HI ALL
PLEASE I DRAWN A SIMPLE CBE USING SEX QUADS PRIMITIVES WITH THE NORMAL KNOWN COMMAND GLBEGIN(GL_QUADS)

OK WHEN I ROTATE WITH MY FIRST PERSON CAMERA AROUND THE CUBE
WHEN LOOKING TO IT FROM THE REVERSE SIDE SO THE BACK OF THE CUBE APPEAR INFRONT OF THE FRONT SIDE :d YOU KNOW IN THE ORIGINAL LOOK AT DIRECTION FRONT SIDE APPEARS INFRONT OF BACK SIDE
BUT WHEN I CHANGE CAMERA POSITION BACK SIDE IS IN FRONT OF FRONT SIDES
DETP BUFFER TEST IS ENABLED
I THINK I UNDERSTAND THE REASON IS THAT IN CODE I DRAW FACE OF THE CUBE BEFORE ANOTHER FACE SO WHAT EVER WAS THE DIPOSITION OF THE CAMERA THE FIRST DRAWN FACE WILL BE DRAWED TO SCREEN FIRST



PLEASE I REALY WANT TO FIND A SOLUTION BECAUSE IAM BUILDING A CITY OF PRIMITIVES AND WITH THIS WAY BUILDINGS GO INSIDE EACH OTHER AS I LOOK TO THEM FROM DIFFRENT SIDES
THANKS IN ADVANCE[/b]
Sign In or Register to comment.