Questions about meshes~!

Started by Mizuki Takase, September 17, 2006, 12:24:55 PM

Previous topic - Next topic

Mizuki Takase

Is there any way to get some sort of rows or columns data for meshes? I am still trying to make a cloth simulator and a lot of algorithms that I have found seem to depend on a concept of rows and columns... Personally I think that the answer to the question is no, but I wanted to make sure. I wonder if there are any other ways to do  cloth simulation without the knowledge of rows and columns... Oh well... I sort of feel like ranting... Thanks again~!

EgonOlsen

Yes and no...There's no method that does it for you, but you should be able to create such a grid based on the mesh's data yourself quite easily by using an IVertexController that reads the vertex data, applies a virtual grid to it and associate the vertices with the cells.

Mizuki Takase

I think that my real problem is that I do not know how to find out where the neighbors of a particular vertex are. I do not understand much about cloth simulation algorithms but I wanted to be able to apply a cloth effect onto a mesh. Many algorithms assumed the cloth to be shaped as a flat square, however, I would like the cloth to be anything, whether it is a sphere or some hat. In other words, I just realized that making a grid would probably not be a good idea. What do you think~?

EgonOlsen

I would start with what the tuts do (a flat square) and extend that later on. Should be much easier once you understand the basics.