well i started to play around with 3D2D today, but i wanted todo some clipping so that things don’t get drawn where they shouldn’t
its abit odd but from what it looks like
it draws on screen like a vgui panel but clips in world…
looking at the pictures again… it doesn’t even look like its doing the clipping i want… its just kinda like breaking it
it was kinda hard to take pics…
its a black rectangle in top left
Pics!
http://img59.imageshack.us/img59/7726/rpdowntownv20011.jpg
^ What i want
http://img225.imageshack.us/img225/4081/rpdowntownv20010.jpg
^ what im testing with
v what happend
http://img13.imageshack.us/img13/9200/rpdowntownv20009.jpg
http://img825.imageshack.us/img825/7871/rpdowntownv20008.jpg
http://img37.imageshack.us/img37/5853/rpdowntownv20012f.jpg
http://img198.imageshack.us/img198/6522/rpdowntownv20014.jpg
http://img13.imageshack.us/img13/5783/rpdowntownv20015q.jpg
Codez
function CamTest()
cam.Start3D(EyePos(), EyeAngles())
cam.Start3D2D(Vector(-1063,-1321,312),Angle(0, 270, 90),1)
surface.SetDrawColor(Color(0,0,0,255))
render.SetScissorRect(0,0,222,116,true)
surface.DrawRect(0,0,2220,116)
render.SetScissorRect(0,0,222,116,false)
cam.End3D2D()
cam.End3D()
end
hook.Add("RenderScreenspaceEffects","CamTest",CamTest)
i also tryed hooking HUDPaint, no change
ideas anyone?