flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > [solved]direct3d9, textures seam

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Siekmanski



Joined: 18 Jun 2006
Posts: 12
Location: The Netherlands

Look at the "InitD3DImage" proc in the 2D_Image_loader_saver.Asm file.
And change these values to your need:

coinvoke g_pD3DDevice,IDirect3DDevice9,SetSamplerState,0,D3DSAMP_MINFILTER,D3DTEXF_LINEAR
coinvoke g_pD3DDevice,IDirect3DDevice9,SetSamplerState,0,D3DSAMP_MAGFILTER,D3DTEXF_LINEAR
coinvoke g_pD3DDevice,IDirect3DDevice9,SetSamplerState,0,D3DSAMP_ADDRESSU,D3DTADDRESS_CLAMP
coinvoke g_pD3DDevice,IDirect3DDevice9,SetSamplerState,0,D3DSAMP_ADDRESSV,D3DTADDRESS_CLAMP
coinvoke g_pD3DDevice,IDirect3DDevice9,SetTextureStageState,0,D3DTSS_COLOROP,D3DTOP_MODULATE
coinvoke g_pD3DDevice,IDirect3DDevice9,SetTextureStageState,0,D3DTSS_COLORARG1,D3DTA_TEXTURE
coinvoke g_pD3DDevice,IDirect3DDevice9,SetTextureStageState,0,D3DTSS_COLORARG2,D3DTA_DIFFUSE
Post 28 Mar 2018, 13:18
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 396

>it's not exactly the same as the original, but seems a little blurred.

Maybe this will help:

https://msdn.microsoft.com/en-us/library/windows/desktop/bb219690(v=vs.85).aspx

"Directly Mapping Texels to Pixels"
Post 31 Mar 2018, 10:53
View user's profile Send private message Reply with quote
Hrstka



Joined: 05 May 2008
Posts: 12
Location: Czech republic

Thank you vivik, shifting the x and y coordinates by -0.5 solved the problem.
Post 06 Apr 2018, 20:54
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.