Please help with aliasing

BlitzMax Forums/BlitzMax Programming/Please help with aliasing

Proger(Posted 2006) [#1]
Hello! Several months ago Indiepath posted the DrawTexturedPoly function
for BMax 1.10, I think. Look at this shot (DX7):



And look at this shot, which was compiled on BMax 1.14 (DX7):



Please help) How to antialias the boxes?
P.S: BMax 1.14 (OpenGL) works fine


Proger(Posted 2006) [#2]
Method DrawTexturedPoly( frame:TD3D7ImageFrame,xyuv#[],handlex#,handley#,tx#,ty# )
       If islost Return
       If xyuv.length<6 Or (xyuv.length&1) Return
       Local segs=xyuv.length/2
       Local uv#[] = New Float[segs*10] '10 
       Local ii:Int = 0
       For Local i=0 Until Len(xyuv) Step 4
        Local x# =  xyuv[i+0]+handlex
        Local y# =  xyuv[i+1]+handley
        uv[ii+0] =  x*ix+y*iy+tx
        uv[ii+1] =  x*jx+y*jy+ty 
        uv[ii+2] =  0  ' *********** THIS IS THE Z-COORDINATE
        uv[ii+3] =  xyuv[i+2]
        uv[ii+4] =  xyuv[i+3]
        ii:+5
       Next
       SetActiveFrame frame
       device.DrawPrimitive(D3DPT_TRIANGLEFAN,D3DFVF_XYZ|D3DFVF_TEX1,uv,segs,0) 
End Method



tonyg(Posted 2006) [#3]
Wasn't there some issues on 1.14 image quality solved by a syncmods before Xmas?