Tuesday, July 17, 2007

Passenger Perspectives

I've started changing the 3D engine I use for Passenger from JOGL to JMonkeyEngine. Unfortunately, I seem to be having trouble with my perspective:-

It seems to be drawing the closest objects first (and even the closest parts of the cloest objects first), which are getting over-drawn by objects that are further away. Still, it all moves at a good speed, and as soon I sort this out it should make the game a lot better. Maybe I could use this new feature for a psychadelic 3D puzzle game?

4 comments:

Anonymous said...

Actually it looks more like you got the backface culling wrong.

Steve said...

Unfortunately, I've turned off all the culling and it still happens. It's really getting on my nerves now!

Renanse said...

Looks like you are not setting up a zbuffer state.

Steve said...

I have finally got it working now. It was a missing updateGeometricState() call after adding the skyscrapers. Thanks for all the input though!