Jump to content
  • Advertisement
Sign in to follow this  
akira32

Can I group the points in a texture with shader 4.0.

This topic is 3699 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

Can I group the points in a texture with shader 4.0. The grouping likes k-means clustering. Can the shader 4.0 implement k-means clustering or other grouping algorithms? [Edited by - akira32 on July 4, 2008 5:05:07 AM]

Share this post


Link to post
Share on other sites
Advertisement
By 'grouping' do you mean a many:one mapping? It's quite common to have a pixel shader that gathers a group of neighbouring pixels and processes them to get a single output.

The big limitation with pixel shaders is the scatter-write where you'd want to write to arbitrary pixels in the output (currently the PS only provides this as read-only information). If the algorithms you have in mind require so called scatter-writes then you'll have trouble - not necessarily impossible, but definitely not intuitive [wink]

hth
Jack

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!