set sampler state for trilinear

set sampler state for trilinear

Post by changli_t » Wed, 09 Jun 2004 11:39:07


I have set the trilinear filter in the ATI 9600 driver.
Shall I change the D3DTEXF_LINEAR to D3DTEXF_TRILINEAR to take
the effects? If the code will be video dependented and I do not
know when the trilinear is available. How to solve this dilemma?

pDevice->SetSamplerState( 0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR );
pDevice->SetSamplerState( 0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR );
pDevice->SetSamplerState( 0, D3DSAMP_MIPFILTER, D3DTEXF_LINEAR );
 
 
 

set sampler state for trilinear

Post by legalize+j » Thu, 10 Jun 2004 00:21:33

[Please do not mail me a copy of your followup]

XXXX@XXXXX.COM (Chang LI) spake the secret code
< XXXX@XXXXX.COM > thusly:


There is no "D3DTEXF_TRILINEAR". Generally, "tri-linear" filtering
means linear filtering on min/mag/mip filters as you have in the above
code.

To check for texture filter support on a video card, look at the
TextureCaps member of D3DCAPS9.
--
"The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
< http://www.yqcomputer.com/ ~legalize/book/>
Pilgrimage: Utah's annual demoparty
< http://www.yqcomputer.com/ >

 
 
 

set sampler state for trilinear

Post by legalize+j » Thu, 10 Jun 2004 00:21:55

[Please do not mail me a copy of your followup]

Oops, I mean TextureFilterCaps member of D3DCAPS9.
--
"The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
< http://www.yqcomputer.com/ ~legalize/book/>
Pilgrimage: Utah's annual demoparty
< http://www.yqcomputer.com/ >