Game Development Community

Max export Stripper causing problem in cartoon outline rendering

by Samme Ng · in Torque Game Engine · 11/07/2008 (12:41 am) · 0 replies

I am using the resource in TGE forum to render cartoon outline.
The method is simple:
0. draw your model as normal
1. set the draw black line, with width 2 or more
2. cull front polygon
3. so draw the model again, only the outline can be drew, other removed by Z-test

It should be a good method to draw the outline, however, I found unexpected line segments on the model!

After tracing the drawing polygon, I found the problem in the strip (If I set to useTriangle, those unexpected line disappear, but it is extremely slow!). Normally the index will generate triangle list, however, sometime, for some reason, it will generate a single line "triangle"!

Trying to show it by typing:
2 ___4
   /|\  |
  / | \ |
 /__|__\|
0   1   3
The problem is the #5 and #6 index:

#6 index will be the same as #4, making a triangle in a line, and this "triangle" will appear opposite direction to other polygon, causing this LINE appear during cull front drawing.

7
        |\
        6 \
    2___4__  
   /|\  |  /
  / | \ | /
 /__|__\|/                       
0   1    3
It seems to be a U-turn strip! To make strip coninue.

/>>>>>>>>
    \<<<<<<<<\ 
    >>>>>>>>>/

Do anyone know how to make exporter don't export such "smart" strip? Using NV_STRIP or removing QUICK_STRIP will help or not?

Thanks!