Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a mesh loaded from a file, like a tiger mesh. At the first time it locates at A position, then if I press a left key, it will moves to B position but the problem is if I press a left key one more time, it will move from B position to C position. It means that the amount I want to move the mesh will base on the current position instead of the first time rendering position.

I can do it if I have a array vertices then I just update the vertex buffer, but a mesh loaded from a file does not have an array vertices, so how to do it?

Anybody help me, please?

share|improve this question

closed as unclear what you're asking by Anko, Sean Middleditch, bummzack, Byte56 Feb 27 '14 at 6:10

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

I'm sorry, but the described behaviour seems to be desirable. Could you perhaps draw a diagram to better illustrate intended/desired behaviour? – Jordaan Mylonas Nov 23 '11 at 3:30
Are you talking about updating vertices to move an object? If so, please look at matrix transforms and the gfx pipeline. – dcousens Nov 24 '11 at 1:57

Browse other questions tagged or ask your own question.