Depth buffer problem - Programmers Heaven

Howdy, Stranger!

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

Categories

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.