UV Coordinates.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Melssj5
Posts: 27
Joined: Mon Sep 05, 2005 6:05 am

UV Coordinates.

Post by Melssj5 »

how to change the uv coordinates of a mesh using irrlicht?
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

Load the mesh, get the IMesh pointer from it and there you can iterate over the MeshBuffers which give you access to the vertex data, among them the texture coordinates.

See API docs on IMesh, IMeshBuffer and S3DVertex for details and ask if you got a specific problem after studying the docs.
pfo
Posts: 370
Joined: Mon Aug 29, 2005 10:54 pm
Location: http://web.utk.edu/~pfox1

Post by pfo »

Load the mesh, get the IMesh pointer from it and there you can iterate over the MeshBuffers which give you access to the vertex data, among them the texture coordinates.
You would think that would work, wouldn't you? I've tried it, no dice. I think if you do the above BEFORE you attach it to a scene node, the manipulation will take, but after that you can't. At least in my experience. If I'm wrong, please let me know, that was a major limitation on a project I was working on with Irrlicht.
Post Reply