Objekts in front of others..

Well… so I’ve drawn two objects.
The first is a tower, the second one is a
small cottage-house.

When I rotate the “world” using glRotate
the house (that is located BEHIND the tower)
can be viewed IN FRONT of the tower when it
actually should be behind it.

On the other hand, the tower turns out to
stay at it’s location as it should.

Why can I se the house during rotation, when
it should not be seen?

It’s look like a depth test problem

Try glEnable(GL_DEPTH_TEST)
also make sure you just not rotating the scene wrong.

Originally posted by zenon:
[b]
Well… so I’ve drawn two objects.
The first is a tower, the second one is a
small cottage-house.

When I rotate the “world” using glRotate
the house (that is located BEHIND the tower)
can be viewed IN FRONT of the tower when it
actually should be behind it.

On the other hand, the tower turns out to
stay at it’s location as it should.

Why can I se the house during rotation, when
it should not be seen?[/b]

Thanx… it works now, after calling
the depth test…

=)