Author Topic: Questions about meshes~!  (Read 3629 times)

Offline Mizuki Takase

  • int
  • **
  • Posts: 97
    • View Profile
Questions about meshes~!
« on: September 17, 2006, 12:24:55 pm »
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~!

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Questions about meshes~!
« Reply #1 on: September 18, 2006, 05:13:59 pm »
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.

Offline Mizuki Takase

  • int
  • **
  • Posts: 97
    • View Profile
Questions about meshes~!
« Reply #2 on: September 18, 2006, 06:35:49 pm »
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~?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Questions about meshes~!
« Reply #3 on: September 19, 2006, 11:32:25 pm »
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.