Jump to content
  • Advertisement
Sign in to follow this  
ucfchuck

interpolation issues

This topic is 3501 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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??

Share this post


Link to post
Share on other sites
Advertisement
Interpolation only works within triangles. To get nice looking joins between triangles adjacent triangles need to share texture coordinates.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!