Jump to content
  • Advertisement
Sign in to follow this  
J81

Dynamic addition of verticies to model

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

I see (in the docs) one can use the tessellator to add vertices to a mesh does this use CPU or GPU to do the interpolation? How does one use the GPU to add extra vertices to a model. For example if you were drawing a series of lines how do you get the GPU to interpolate 3 input vertices to 30 output vertices to go into the VS? (It seems a waste to do the interpolation on the CPU side in a dynamic VB and then pass all that data over to the GPU). Can it be done in HLSL or using the DirectX interface to the tessellator?

Share this post


Link to post
Share on other sites
Advertisement
No, you cannot use custom tesselators like that. The API has support for some stuff like that (ie n-patch tesselators), but hardware doesn't support it very well (ie there is no support at all, or its wicked slow).

The response to this has been the development of many techniques such as normal mapping and parallax mapping that add details to models without actually adding vertices. However, it doesn't sound like this is what you are really going for.

Theoretically, when DX10 rolls around, you could use geometry shaders for this. For tesselating a line, like you mentioned, it might be able to handle it. However, don't count on the performance being there for any type of realtime or dynamic tesselation of any magnitude.

Share this post


Link to post
Share on other sites
Thanks circlesoft, if the tesselator is going to be slow and wont run on most cards then I will do it another way. Expect there is some fast way of doing this using the instancing API but again the hardware support is lacking. Will have to ask Mr CPU if he has time to do this :-)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!