Skip to main content
gamedev.net
🔒 Locked

Texturing Problem -edge-

Started by CastorX Apr 5, 2005 at 8:44 AM 0 replies 450+ views
Original Post
CastorX
CastorX
Hy! I'm new here and in the D3D. My, english 'grammatic' is wrong. Excluse me! My Problem is: If i render an object with sharp edges -the angle betveen two faces is less then 90~100°-, the D3D puts some white pixels onto the "edge sections" of te renderet object. In this case in OpenGL i used the GLTetureWarpS(...) and other functions. But what can i do now? (please help me, and answer only with basic words :) Thanx!
Evil Steve
Evil Steve
I think you want to set the texture wrapping mode. Look into IDirect3DDevice9::SetSamplerState, in particular D3DSAMP_ADDRESSU and D3DSAMP_ADDRESSV.

For example:
pDevice->SetSamplerState(0,D3DSAMP_ADDRESSU,D3DTADDRESS_CLAMP);
pDevice->SetSamplerState(0,D3DSAMP_ADDRESSV,D3DTADDRESS_CLAMP);

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.