Animate part of a mesh [solved]
Animate part of a mesh [solved]
I have a mesh of a wind turbine that I found on the web, and now I want the rotor to rotate. According to the site that I found it on it is not animated, so I have to rotate it myself. Now, the mesh contains 5 meshbuffers according to IMesh::getMeshBufferCount(), and I thinking that one or two or these might be the rotor blades and hub. So now I want to apply an animator to part of the mesh, but dispite trying various things I have not succeded in separating the mesh into two meshes and making them into scene nodes. Any clues how to do this? I have the mesh in both 3ds and obj format.
Last edited by alc on Sun Mar 07, 2010 11:15 pm, edited 1 time in total.
I guess you'll have to split the mesh into 2 seperate meshes with an 3d-editor...
Last edited by Acki on Sun Mar 07, 2010 11:25 pm, edited 1 time in total.
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
2d editor? Probably not... Anyway, if you are sure that a whole meshbuffer is just the rotor you can simply get that meshbuffer and add it to a new SMesh (simply add it, not cloning or anything like that). Do the same for a new SMesh for all the other buffers in order to get rid of the rotor from the base mesh as well. Then add the rotation animator to the first mesh.
If you have a rotor modelled as a flat plane with a 2d texture on it, it would be much simpler by just altering the texture matrix of that meshbuffer.
If you have a rotor modelled as a flat plane with a 2d texture on it, it would be much simpler by just altering the texture matrix of that meshbuffer.
<rofl> just a typo...hybrid wrote:2d editor? Probably not...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java