Hi, I'm working in a cel-shading renderer for the gp32.
It's almost done, but I'm having a problem when drawing the outlines. If anyone here knows about Opengl can be of a lot of help.
To draw the border I render the same figure in black and with inverted culling. To determine the width of the borders, I move the vertices of the black model by the vertex normal. The normal is the same for each vertex, even if this vertex is shared by more than one polygon.
The problem, as you can see, is that the polygons of the black model don't change their size, only their position.
Any ideas?
It's almost done, but I'm having a problem when drawing the outlines. If anyone here knows about Opengl can be of a lot of help.
To draw the border I render the same figure in black and with inverted culling. To determine the width of the borders, I move the vertices of the black model by the vertex normal. The normal is the same for each vertex, even if this vertex is shared by more than one polygon.
The problem, as you can see, is that the polygons of the black model don't change their size, only their position.
Any ideas?