[Solved]How to set 3d model part position?

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
tank202
Competition winner
Posts: 40
Joined: Mon Jan 21, 2013 8:34 pm
Location: Lithuania, Kaunas

[Solved]How to set 3d model part position?

Post by tank202 »

Hi,
Well this is quite plain :D How to modify Position/Rotation/Scale atributes for each non-solid 3d model part?

Code: Select all

// This is what I want in pseudocode :D
Mesh->getMeshPart(0)->setPosition(vector3df);
Last edited by tank202 on Thu Jul 04, 2013 8:47 pm, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: How to set 3d model part position?

Post by hybrid »

You cannot change meshbuffer positions easily. You can use the geometry manipulator, where you can apply transformations to the vertices, either global or per meshbuffer. However, this will iterate through all vertices and thus take some time. And it will affect all mesh nodes sharing this mesh.
tank202
Competition winner
Posts: 40
Joined: Mon Jan 21, 2013 8:34 pm
Location: Lithuania, Kaunas

Re: How to set 3d model part position?

Post by tank202 »

Well, this seems to be quite a challenge for me :P but I'll try. In worst case scenario I will rip those models apart :D
tank202
Competition winner
Posts: 40
Joined: Mon Jan 21, 2013 8:34 pm
Location: Lithuania, Kaunas

Re: How to set 3d model part position?

Post by tank202 »

It was a piece of cake :D I've added bones to model and managed to place the probrlematic parts where I want them.
Post Reply