Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Cloth is too Big [Dark Physics]

Author
Message
Codger
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 27th Dec 2006 07:13 Edited at: 27th Dec 2006 07:14
When I create a cloth it is larger than the dimensions that I give any ideas?



Is this a bug with the create cloth command or am I doing something wrong

Thanks in advance

Codger

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
Kendor
21
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 27th Dec 2006 10:42 Edited at: 27th Dec 2006 10:42
It appears that the cloth is divided into segments, and for an unknown reason, it thinks that 4 segments are not enough to reach the required dimension so it adds another segment. Strange, if you ask me, as the size of the segment should be calculated on the original dimensions.

Don't know if it is a bug, most probably it is.

An easy workaround is to set the dimensions at a slightly lower value than required:



Home computers are being called upon to perform many new functions, including the consumption of homework formerly eaten by the dog.
Codger
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 28th Dec 2006 06:44
Kendor
That certainly fixed the issue although I am still confused about how making the cloth dimensions 3.99 x 1.99 x 1.0 is 20% smaller than the original 4 x 2 x 1

thanks again
Codger

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem
Kendor
21
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 28th Dec 2006 13:03 Edited at: 28th Dec 2006 13:09
I'll try to explain better

The cloth is build according to the segment size i.e. the depth parameter in the phy set cloth dimensions command. In this case the segment size is 1, therefore it should create a 4x2 cloth.

From the help files on the phy set cloth dimensions command, there is this part:

Quote: "The number of vertices that comprise the mesh is defined as ( ( width / depth ) + 1 ) * ( height / depth ) + 1 ). "


Working using this formula, will get ( ( 4/1) + 1 ) x (2/1) + 1) = 5 x 3 cloth



So in order to get the size you want, you reduce your dimensions. Actually, using a depth of 1, there is no difference in the cloth size between phy set cloth dimensions MyCloth,3,1,1 and phy set cloth dimensions MyCloth,3.9,1.9,1

Hope that this cleared things up!

EDIT: Conclusion, it is not a bug, just the way it is implemented.

Home computers are being called upon to perform many new functions, including the consumption of homework formerly eaten by the dog.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-24 14:36:09
Your offset time is: 2024-11-24 14:36:09