• ClipPlanes helpo~
    4 replies, posted
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 [Code] 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() [/Code] [IMG]http://i.imgur.com/kUrEAh.jpg[/IMG] [IMG]http://i.imgur.com/J8hdqh.jpg[/IMG] [IMG]http://i.imgur.com/RCUzfh.jpg[/IMG]
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 [b]*Edit*[/b] Gah, looks like your right well thats lame Thank you for the help. I never would have considered that
Sorry, you need to Log In to post a reply to this thread.