www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Mizuki Takase on September 17, 2006, 12:24:55 pm

Title: Questions about meshes~!
Post by: Mizuki Takase 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~!
Title: Questions about meshes~!
Post by: EgonOlsen 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.
Title: Questions about meshes~!
Post by: Mizuki Takase 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~?
Title: Questions about meshes~!
Post by: EgonOlsen 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.