Wireframe bug in 0.51?

BlitzMax Forums/MiniB3D Module/Wireframe bug in 0.51?

deps(Posted 2008) [#1]
Hello,
Playing around a bit with the new BMax 1.30 and minib3d 0.51.
If I turn on wireframe and use EntityFX on a entity, that entity ignores the wireframe setting.
I wanted to turn on full bright, and disable backface culling, and suddenly my model was solid again.

Or might this be a driver issue?
I run the latest Omega drivers (3.8.442, updated it a couple of days ago) in WinXP and my graphics card is a Radeon X550/X700 according to Dxdiag.

Short example to demonstrate the problem:
Import sidesign.minib3d

Graphics3D 640,480

cam = CreateCamera()
PositionEntity cam, 0,0,-10

c1 = CreateCube()
PositionEntity c1, -5,0,0

c2 = CreateCube()
EntityFX c2,16 
PositionEntity c2,  5,0,0

Wireframe True

While Not KeyHit( KEY_ESCAPE )
	UpdateWorld()
	RenderWorld()	
	Flip
Wend



plash(Posted 2008) [#2]
Same here! (Radeon HD 2600 XT)

Does it happen in 1.28?


deps(Posted 2008) [#3]
Don't know. Uninstalled it after downloading 1.30. :)


Volker(Posted 2008) [#4]
Same here (NVidia 8600 GTS) with Blitzmax 1.28.


deps(Posted 2008) [#5]
I did some experiments on this, and I think I found the problem.
When turning off the back face culling, the faces that is facing the camera is still drawn correctly, but the ones facing away is drawn filled.


klepto2(Posted 2008) [#6]
Could you try to change the Wireframe function in TGLobal.bmx to this:

Function Wireframe(enable)
	
		If enable
			glPolygonMode(GL_FRONT_AND_BACK,GL_LINE)
		Else
			glPolygonMode(GL_FRONT_AND_BACK,GL_FILL)
		EndIf

	End Function



deps(Posted 2008) [#7]
Works like a charm! Thanks a lot klepto2! :D

Now, the B3D docs says that driver support is a bit patchy, but since this is using OpenGL can I assume it will work on most computers? (as long as they do have OpenGL support, of course)