set display mode desktop width(),desktop height(),32,1,3,0
Sync On
Sync Rate 60
Hide Mouse
Backdrop On
Color Backdrop 0
Autocam Off
Set Camera Range 0.5, 32768
Position Camera 1000, 55, 1000
Set Dir "files"
Load Object "sky.x", 1
Scale Object 1, 32768, 32768, 32768
Position Object 1, 1000, 0, 1000
Load Image "ground.bmp", 1,1
Make Matrix 1, 2000, 2000, 64, 64
Prepare Matrix Texture 1, 1, 2, 2
` Set Matrix 1, 0, 1, 0, 0, 0, 0, 0
Set Matrix Trim 1, 1.0/512, 1.0/512
Update Matrix 1
Notice the first line to set the display mode. The 5th parameter is for multisampling-- I used a value of 3.
Also, when you load the image, you have to have the 3rd parameter as a 1 to preserve the quality.... Not sure why DBP doesn't do that anyway..?
That change made it work for me. Try it out.
The fastest code is the code never written.