Sign in to follow this  
AverageJoeSSU

Workflow for Tesselation - Model to Shaders

Recommended Posts

How does one create a Model (character or whatever) to be tesselated?

Do you generate the LOD for the mesh and then the shader goes between the different LODs? how do the tesselation primitives play into this (ie patches).

links to this workflow would be greatly appriciated.

Share this post


Link to post
Share on other sites
What I do is simply making 3 or 4 variants of each model, and then let the CPU decide which one to render based on distance. These distances may also depend for the pass (a cubeMap or water mirror can do with lower LOD versions for example). So basically I first model the high-poly version, then remove details and eventually let it reduce the polygon with some automated tools for each version.

Probably the simplest method, although you may see the model suddenly changing after X meters (this also happens in many other games if you look carefully). But if the distance is big enough and the models not too different, you hardly notice it.


You can do it the advanced way on a GPU with Geometry Shaders as well, although I'm not so sure about the performance. I don't have any experience with them, but even the nVidia papers state that tesselating on the GPU is quite expensive. Anyhow, a geometry shader can take a single primitive and then generate new ones based on distance, with sub-division for example. But the real difficulty is that you need a reference somehow, just making a shape somewhat smoother/rounder is probably not what you want for complex models such a human. Other shapes like a terrain can work with a heightMap; for each new vertex you generate in the GS, you'll pick the corresponding height from that texture.

Rick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this