Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualmhagain

Posted 13 October 2012 - 06:09 PM

The better choice is the one that best meets the objectives you wish to achieve. If you want limbs blown off then you will have to compromise.

One potential compromise is a layout that allows the mesh to be contained in a single buffer, and drawn with a single call, but with which components of the mesh also have their own separate ranges within that buffer. So, for example, elements 0...127 of the buffer may be a left leg, 128...256 a right leg, and so on. That would let you draw either the entire mesh or individual components as you wish, but at a cost of some vertex duplication.

As always, there is no absolute right answer to this. You pick the solution that does what you need.

#1mhagain

Posted 13 October 2012 - 06:09 PM

The better choice is the one that best meets the objectives you wish to achieve. If you want limbs blown off then you will have to compromise.

One potential compromise is a layout that allows the mesh to be contained in a single buffer, and drawn with a single call, but with which components of the mesh also have their own separate ranges within that buffer. So, for example, elements 0...127 of the buffer may be a left leg, 128...256 a right leg, and so on. That would let you draw either the entire mesh or individual components as you wish, but at a cost of some vertex duplication.

As always, there is no absolute right answer to this. You pick the solution that what you need.

PARTNERS