Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#ActualVolgogradetzzz

Posted 08 April 2012 - 05:02 AM

I'm flash programmer and new stage3D API require me to pass vertex buffer (can be several) and index buffer. And each index corresponds to single vertex. So I'm very confused about this phrase (I repeate it again):

For example take 1-st vertex - and we can see that this vertex can share data 1//1 and also 1//496!!!

How I understand this: take first vertex and take first normal for this face index. And take first vertex and take 496-th normal for this face index (second case).
But it's impossible in actionScript to tell GPU to use 1-st normal for 1-st vertex as wel as 496-th normal for the same 1-st vertex. Please correct me if I wrong.

Upd.: I rephrase my question. In the link to obj model array in face instructions points to the same vertex, but different normals. Is it ok that vertext have 2 normals?

#1Volgogradetzzz

Posted 08 April 2012 - 04:58 AM

I'm flash programmer and new stage3D API require me to pass vertex buffer (can be several) and index buffer. And each index corresponds to single vertex. So I'm very confused about this phrase (I repeate it again):

For example take 1-st vertex - and we can see that this vertex can share data 1//1 and also 1//496!!!

How I understand this: take first vertex and take first normal for this face index. And take first vertex and take 496-th normal for this face index (second case).
But it's impossible in actionScript to tell GPU to use 1-st normal for 1-st vertex as wel as 496-th normal for the same 1-st vertex. Please correct me if I wrong.

PARTNERS