• Blurry/Very large 3d2d text drawn?
    1 replies, posted
Hi I'm working on 3d2d stuff and When I draw this text it looks like it's being scaled way past what it should be [CODE] surface.CreateFont( "Nametags", { font = "Helvetica", size = 16, weight = 30, antialias = false, outline = true, }) hook.Add( "PostDrawOpaqueRenderables", "example", function() local trace = LocalPlayer():GetEyeTrace() local trace2 = LocalPlayer():GetAimVector() local angle = trace2:Angle() local rAng = angle:Right():Angle() rAng:RotateAroundAxis( angle:Right(), 90 ) local pos = trace.HitPos + Vector(0,0,10) cam.Start3D2D( trace.HitPos, rAng, 1 ) local w = 10 local h = 5 surface.SetFont( "Nametags" ) surface.SetTextColor( Color( 255,255,255,255 ) ) local text = "Newbrict" local tw, th = surface.GetTextSize( text ) surface.SetTextPos( -tw/2, -th) surface.DrawText( text ) cam.End3D2D() end ) [/CODE] Anyone have experience with this?
Scale down the 3D2D cam and scale up the text and boxes in it.
Sorry, you need to Log In to post a reply to this thread.