Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualPsychopathetica

Posted 09 February 2013 - 12:51 PM

I created a Nintendo Emulator using DirectX. And how I plotted the pixels was to create a texture using D3DXCreateTexture so I don't use a file, locked the texture, copied the array to the texture and unlocked. Just one problem. When I created the texture using D3DXCreateTexture, I had no choice but to make the size 256 x 256 since the NES's resolution is 256x240. Any bigger and I'll end up seeing weird anomalies such as double screen squashed up on top. Now as for the polygon size, it's perfect at 256 x 256, 512x512, etc. but if I make it any other size, it stretches the pixels weird and doesn't look right. Like a pixelated atari version of Mario. Ive messed with other NES emulators where stretching was perfect no matter what size and was wondering if I'm lacking a certain filter or setting to where it'll be perfect no matter what I stretch it to. Thanks in advance.

 

Also note I'm only currently using this:

 

    Device.SetTextureStageState 0, D3DTSS_MINFILTER, D3DTEXF_POINT
    Device.SetTextureStageState 0, D3DTSS_MAGFILTER, D3DTEXF_POINT


#2Psychopathetica

Posted 09 February 2013 - 12:44 PM

I created a Nintendo Emulator using DirectX. And how I plotted the pixels was to create a texture using D3DXCreateTexture so I don't use a file, locked the texture, copied the array to the texture and unlocked. Just one problem. When I created the texture using D3DXCreateTexture, I had no choice but to make the size 256 x 256 since the NES's resolution is 256x240. Any bigger and I'll end up seeing weird anomalies such as double screen squashed up on top. Now as for the polygon size, it's perfect at 256 x 256, 512x512, etc. but if I make it any other size, it stretches the pixels weird and doesn't look right. Like a pixelated atari version of Mario. Ive messed with other NES emulators where stretching was perfect no matter what size and was wondering if I'm lacking a certain filter or setting to where it'll be perfect no matter what I stretch it to. Thanks in advance.


#1Psychopathetica

Posted 09 February 2013 - 12:43 PM

I created a Nintendo Emulator using DirectX. And how I plotted the pixels was to create a texture using D3DXCreateTexture so I don't use a file, locked the texture, copied the array to the texture and unlocked. Just one problem. When I created the texture using D3DXCreateTexture, I had no choice but to make the size 256 x 256 since the NES's resolution is 256x240. Any bigger and I'll end up seeing weird anomalies such as double screen squashed up on top. Now as for the polygon size, it's perfect at 256 x 256 but if I make it any other size, it stretches the pixels weird and doesn't look right. Like a pixelated atari version of Mario. Ive messed with other NES emulators where stretching was perfect no matter what size and was wondering if I'm lacking a certain filter or setting to where it'll be perfect no matter what I stretch it to. Thanks in advance.


PARTNERS