Hello. I have a problem with accessing to a vehicle mesh wheels. I have a obj vehicle file which should have wheels as children and I can't access them f. ex. to rotate the wheels. In other engine there was an example of accessing wheels by getting children nodes of the mesh. In Irrlicht getJointCount() or getChildren().getSize() returns 0. How can I access those wheels?
Here's the example in min3D engine based on open GL ES:
http://www.rozengain.com/blog/2010/05/1 ... r-android/
It's the same mesh.
How to get access to wheels in vehicle model
-
- Posts: 149
- Joined: Wed Sep 09, 2009 4:57 pm
- Contact:
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
- Posts: 149
- Joined: Wed Sep 09, 2009 4:57 pm
- Contact:
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
- Posts: 149
- Joined: Wed Sep 09, 2009 4:57 pm
- Contact:
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Well, usually things are put into groups when exported to .obj. Since the loader seems to ingore the groups for now, you could set the scene parameter such that the groups are correctly loaded into separate mesh buffers. If there are even no groups in the file, you're completely lost with this mesh.
Even if you only have one texture, you can still use texture matrix, as it works per mesh buffer. But separate meshbuffers are a must.
Even if you only have one texture, you can still use texture matrix, as it works per mesh buffer. But separate meshbuffers are a must.
Even better would be to make the tires and the rims separate meshes. Parent the rims to the
car and the tires to the rims then have your tires rotate fast in one direction and your rims
rotate slow in the opposite direction. And wahala your gangster with spinners!!!! lol
And cue the music...
http://www.youtube.com/watch?v=ip0vsLelVYY
car and the tires to the rims then have your tires rotate fast in one direction and your rims
rotate slow in the opposite direction. And wahala your gangster with spinners!!!! lol
And cue the music...
http://www.youtube.com/watch?v=ip0vsLelVYY