1 Attachment(s)
Viewport stretching in DX8
Hello everyone,
I'm working on a retro-style RPG that runs in resolution 320x240 (windowed). Since this would be too small to play I'm rendering the scene into a 640x480 sized PictureBox. The problem is that DirectX automatically applies some smoothing filter and the whole picture looks unsharp (see attachment). How can I turn this off?
Next step would be to apply a SAL filter or something, is there a dll I can easily use?
Thanks,
Fox
Re: Viewport stretching in DX8
No one ever stumbled into this? There must be a way to deactivate that "feature"...
Re: Viewport stretching in DX8
So, you're looking for a quick way to sharpen it? Since its directX, I'm not too familiar with how you would do it that way, but you could use GetDIBits/SetDIBits to apply a sharpen filter? Would that be adequate? Not too sure how fast it would be on a picturebox that size...probably not fast enough for a game..
chem
Re: Viewport stretching in DX8
Not exactly, basically I want to prevent the filtering (smoothing).
And after that, yes, I want to apply my own filter. But this will only work on squared pixels, not on the yet blurred output.
1 Attachment(s)
Re: Viewport stretching in DX8
Yet the only way I found to avoid the stretching is:
- setup the buffer in correct size
- still do the rendering for 320x240
- multiply each coordinate by 2
The result is about 20% slower than DX's auto-strech-smooth but at least it's working.. if anyone finds a better way please let me know!
Fox