Z-Ordering FUBAR?

BlitzMax Forums/MiniB3D Module/Z-Ordering FUBAR?

jamesmintram(Posted 2008) [#1]
Hi, I am using minib3d under linux, Ubuntu 8.04 and I seem to have an issue.

I am using the proprietry NVIDIA drivers (latest) and have desktop effects disabled.

Here is a screenshot explaining my problem.

[IMG ]

When I am looking down the 1 vector, everything is fine, its when looking down Number 2 that its totally messed up.

Im not relly sure how to describe my problem!! Here is the code that creates the cubes:

For Local t:Int = 0 To 5
For Local y:Int = 0 To 5
cube = CreateCube ()

EntityTexture ( cube, text )
PositionEntity ( cube, t * 3, 0, y * 3 )
Next
Next
End Method


And here is my drawing code:

Method Draw()
Cls
EndMax2D ()

UpdateWorld ()
RenderWorld ()

BeginMax2D ()

End Method


jamesmintram(Posted 2008) [#2]
Ive done a bit of experimentation. It seems the objects created first are always "on top" of objects created later.

Does this mean the Z-Buffer has been disabled? I don't have much knowledge with regard to all things 3D!!

Cheers

James


simonh(Posted 2008) [#3]
Does this still happen if you take out the EndMax2D/BeginMax2D lines? Might be a Linux driver issue.


jamesmintram(Posted 2008) [#4]
Ive solved the problem (feel a bit sheepish!).

I was using Grey Aliens framework so it didn't occur to me that the window was created with graphics and not graphics 3d!

Changed it and it now works like a charm.