Page 1 of 1

ConvexHull out of s3dModell

Posted: 18 Sep 2015, 17:01
by PicassoCT

Code: Select all

		case: ColType::CONVEX_HULL
		{
			gpuObject->m_collidableIdx = m_data->m_np->registerConvexHullShape(const float* vertices, 
																					int strideInBytes, 
																					int numVertices, 
																					const float* scaling);
		}
Most ideal approach ?

Walk over pieces, add vertices into one giant array?
Does this allready exist?

Re: ConvexHull out of s3dModell

Posted: 18 Sep 2015, 17:03
by hokomoko
1) No need for an array, there are algorithms for finding a convex hull.
2) Since units move and change, I'm not sure that it's relevant for spring. We may be better off using simpler collision volumes.

Re: ConvexHull out of s3dModell

Posted: 18 Sep 2015, 22:34
by PicassoCT
1) The function i use this on, is one of those ready-made simple functions to calculate the convex hull.
2) Its not for the units. But for static complex objects like cliffs or features this might be good.

Re: ConvexHull out of s3dModell

Posted: 19 Sep 2015, 02:39
by Anarchid
However, the game developer being able to specify a collision mesh would be nice.