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

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
2  
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. – Daniel Nov 24 '11 at 1:57

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.