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 / What is a cloth Vertex and whats does slerp mean?

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 16th Aug 2006 16:21
Hi

In the cloth commands you have a 'vertex' parameter

eg phy attach cloth vertex to shape


what am I controling when using it.

2.
phy set 6dof joint slerp drive state ID, state

what does slerp - do/mean.

cheers

Dark Physics makes any hot drink go cold.
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 16th Aug 2006 16:40
With the first command you can attach a specific point ( vertex ) of the cloth to a shape or point in space. This can be used if you want to say pick a corner to attach somewhere e.g. vertex 0 is the first corner.

Slerp is short for spherical linear interpolation. It will help if we can set up a demo to show how this works. For now here's some information direct from the SDK documentation that may be useful to you:

The d6joint angular drive has a SLERP option to replace the default drive. The SLERP option decouples twist and swing coordinates with an isotropic drive of all three angular DOFs. This uses rotation vector coordinates in which a rotation vector lies in the single shortest rotation axis so the 3D rotation isn't being decomposed into a sequence of rotations as with twist and swing.

The SLERP drive acts locally between the drive frame and the child frame. The parent frame is not directly involved in the drive behavior; it only acts as a root from which to specify the drive frame offset.

Because it acts locally, the SLERP option is useful when the child object can rotate to any arbitrary orientation relative to the parent without limit.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 16th Aug 2006 16:46
Cheers a lot clearer on the cloth part.

looks like slerp could do the job that the wheels on a mars explorer does.

Dark Physics makes any hot drink go cold.
imekon
18
Years of Service
User Offline
Joined: 3rd Jul 2006
Location:
Posted: 16th Aug 2006 18:10
Quote: "With the first command you can attach a specific point ( vertex ) of the cloth to a shape or point in space. This can be used if you want to say pick a corner to attach somewhere e.g. vertex 0 is the first corner."


How do we work out what other points on the cloth are?

"Reality Bites"
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 17th Aug 2006 06:13
same way we get them when making dbo models.

eg turning a cube into a wedged

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 17th Aug 2006 06:38
found some code by someone on here(if it yours give a shout), added a line that get the vertex count to it showing how many there are.

box, cube cone about 23
sphere 168


Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-11-24 14:51:04
Your offset time is: 2024-11-24 14:51:04