Archive 17/01/2023.

Mixed primitive types in one model

josuemnb

hello.
i’m trying to mix strip, fan and list of triangles into one model.

what is the best approach?
one custom geometry for each triangle type? Wouldn’t performance slow down?

SirNate0

As someone who is not an expert on graphics by any stretch of the imagination, I would guess the best approach would be to just use an index buffer and handle it all with indexed triangles.

josuemnb

thanks for reply.
but the same kind of indexed order isn’t available.

SirNate0

I’m saying that you should just use an index buffer rather than using lists, strips, and fans. Per the below link, it looks like triangle fans, at least, aren’t actually that beneficial. Perhaps the others might be better, that I can’t speak to (and even the triangle fans one my knowledge only extends to a recent google search) .

josuemnb

i raised this question only because i’m trying to use a 3d model we’re it mixes strip fan and list.
is just for file size performance.
and before i start to transform somehow strip to list, i remember to question it.