Rick Posted July 26, 2010 Share Posted July 26, 2010 Before I would do any testing I was just curious if anyone knows if we can parent a meshes vertices to bodies so that the vert would move with the body causing a distortion of the mesh? Quote Link to comment Share on other sites More sharing options...
darrenc182 Posted July 26, 2010 Share Posted July 26, 2010 I don't see how you could parent a mesh's vertices to a body. I think you would only be able to parent a mesh to a body. Now you could always define a mesh with the vertices that need to get parented to the body. I guess the only other option would be to do it manually. Instead of using ParentEntity and letting the engine do all of the work, you can get the body's matrix and apply it to the vertices every clock cycle or whenever it is needed. Those are my thoughts on the subject. Rick if you don't mind me asking what do you need to do this for? Quote Intel 2nd Generation i5 Quad Core Running at 3.30GHz. 8GB RAM, GeForce GTX 460 1024MB DDR5. Link to comment Share on other sites More sharing options...
Rick Posted July 26, 2010 Author Share Posted July 26, 2010 Was just thinking this could produce some interesting effects. Not sure how efficient it would be, but might lead to some funky stuff. Like if a cube had enough verts in it, and you applied this to it and randomly applied forces to all the bodies but kept their movement to a certain range it could create some kind of blob looking thing. Then if you applied that to a plane it might create some interesting water effects. Quote Link to comment Share on other sites More sharing options...
darrenc182 Posted July 26, 2010 Share Posted July 26, 2010 What about using a shader to do the vertex processing. You could use a vertex displacement mapping shader as a reference. Quote Intel 2nd Generation i5 Quad Core Running at 3.30GHz. 8GB RAM, GeForce GTX 460 1024MB DDR5. Link to comment Share on other sites More sharing options...
Rick Posted July 27, 2010 Author Share Posted July 27, 2010 You wouldn't get physics that way though would you? Quote Link to comment Share on other sites More sharing options...
cocopino Posted July 27, 2010 Share Posted July 27, 2010 You can iterate through the surfaces/vertices to morph your model. But I think you'll need to come up with any physics interaction yourself. Quote desktop: Quad core Q6600 + 4GB + ATI HD4890 + XP laptop: Dual core T6400 + 4 GB + NVidia 9600M GT + Vista 32 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.