hello,
I have a lot of trouble to learn geometry shader, I work in cg and i haven't find any tutorial or usefull documentation about it.
from now i have read the nvdia's book: http://http.developer.nvidia.com/CgTutorial/cg_tutorial_chapter01.html, and implemented sucessfully nice looking lightning (with normal map, specular map, etc) and some animation.
but for geometry i only found some sample from nvida not commented and in ASM and some article about the concept and the purpose of it.
it took me a day to actually get a working simple pass through hello world:
TRIANGLE
void mainG(AttribArray<float4> position : POSITION)
{
emitVertex(position[0] : POSITION, float4(1,0,0,1) : COLOR);
emitVertex(position[1] : POSITION, float4(0,1,0,1) : COLOR);
emitVertex(position[2] : POSITION, float4(0,0,1,1) : COLOR);
}