Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


#Actualgchris6810

Posted 03 November 2013 - 06:25 AM

Sorry, L. Spiro I don't really understand what you mean, are you saying that you use the indices to build the vertex array something like this:

 

EDIT: Don't worry I am only using COLLADA for interchange to my engine.

// This probably wouldn't work in practice but you get the idea
for( size_t i = 0; i < faces.size( ); i++ )
{
  newArray[i].x = initialArray[faces[i]].x;
  newArray[i].y = initialArray[faces[i]].y;
  newArray[i].z = initialArray[faces[i]].z;
}

#1gchris6810

Posted 03 November 2013 - 06:18 AM

Sorry, L. Spiro I don't really understand what you mean, are you saying that you use the indices to build the vertex array something like this:

// This probably wouldn't work in practice but you get the idea
for( size_t i = 0; i < faces.size( ); i++ )
{
  newArray[i].x = initialArray[faces[i]].x;
  newArray[i].y = initialArray[faces[i]].y;
  newArray[i].z = initialArray[faces[i]].z;
}

PARTNERS