ClipPlanes helpo~

Is it just me or are ClipPlanes kinda broken?
Looks like when you draw with ClipPlanes they ignore the z buffer?
Also tried using Stencils to get around it, didn’t work out



local norm = (self:OBBMaxs() - self:OBBMins()):Normalize()
local dist = norm:Dot(Vector(-1791,-1556,-155))
local bool = render.EnableClipping(true)

render.PushCustomClipPlane(norm,dist)
	
render.SetColorModulation(0,10,0)
self:DrawModel()
render.SetColorModulation(1,1,1)
	
render.PopCustomClipPlane()
render.EnableClipping(bool)

self:DrawModel()


Bumpity?

This is on Gmod 12?

Pretty sure his is an issue with your graphics card/driver, I had the same problem when using a GeForce 8800GTX but then I switched to a Radeon card and now it works just fine.

Dohohoho People have arrived!
Yarg its on gmod 12, and i am on a 8800GTS now that you mention it
Ill check back ina bit after i test it on a diff card

Edit

Gah, looks like your right well thats lame
Thank you for the help. I never would have considered that