Jump to content

  • Log In with Google      Sign In   
  • Create Account

ccppuser

Member Since 18 Dec 2012
Offline Last Active Dec 22 2012 01:44 AM

Topics I've Started

any idea skipping some vertices with DrawIndexedPrimitive()

18 December 2012 - 08:37 AM

Hi.

I'm using DirectX9.

Thanks for reading.

I want to skip some vertices drawing mesh with DrawIndexedPrimitive() func.

Original mesh (with one DrawIndexedPrimitive() call):
┌─┬─┬─┐
│/│/│/│
├─┼─┼─┤
│/│/│/│
├─┼─┼─┤
│/│/│/│
└─┴─┴─┘

and I want to make the mesh like this:

┌─┬─┬─┐
│/│/│/│
├─┴─┼─┤
│/ │/│
│ * ├─┤
/│/│
──┴─┘


(the vertex marked as * <- is skipped one.)

Of course it can be achived with DrawPrimitive() func, but
DrawPrimitive() is very inefficient for some reasons such that memory efficiency or many draw call.

It seems quiet difficult problem to me.
Anyone tried to do this?
It'll be appreciate for any ideas.

PARTNERS