Skip to main content
gamedev.net
🔒 Locked

interpolation issues

Started by ucfchuck Dec 18, 2008 at 5:20 PM 1 replies 900+ views
Original Post
ucfchuck
ucfchuck
interpolation issues im having issues getting the interpolation to work across triangles. as you can see. ive tried all the sampler state interpolation options and this picture was done using this configuration. SamplerState samLinear { Filter = MIN_MAG_MIP_LINEAR;//ANISOTROPIC;//MIN_MAG_MIP_POINT; AddressU = Wrap; AddressV = Wrap; }; how do i get the interpolation to cross over the triangle boundaries??
Adam_42
Adam_42
Interpolation only works within triangles. To get nice looking joins between triangles adjacent triangles need to share texture coordinates.
ucfchuck
ucfchuck
the triangles do share adjacent texture coordinates, each of those lines is a 1d color array of 8 bits in the texture, and each adjacent triangle shares the same 1d line down the sides. these are technically quads that you are seeing made up of two triangles. this example is a little harsh as one of the triangles dissappears as two of its vertices share the same point. but here is another example where the quads are more regular. but the interpolation isnt that grreat.
Photobucket

you can still see the edges of the quads and easily make out data points.
is there any way to write my own that would be over 2 or 3 triangles?

Topic Locked

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

Sign in to reply to this topic.