Edge vertices?

I’m wondering how I can get the verts around the edge of a object? I think it is something to do with the normal but I don’t see how it works? Also it is not relative to a camera so i can’t use the good o’l pixel change version.

if someone could link some resources it would be great :smile: or give some tips :slight_smile:

what is the edge of a 3D object for you? you mean the outer vertices of an object given for a specific camera angle?

i am currently doing something that extracts polygons out of meshes in the first step.

I gather alle vertices that have their normals pointing down (bottomplane of a mesh) and extract only the boundary vertices to get a polygon out of 3d objects
http://forum.unity3d.com/threads/165283-2D-Dynamic-Shadows?p=1138484&viewfull=1#post1138484

for 3D- maybe you can project all vertices onto a plane, get the convex hull of these points and use that… but it would only work for convex objects then…
[ a convex hull pdf]

to project all vertices this script could be of help:
http://forum.unity3d.com/threads/57994-Simple-Fracture-Script-v-1.01?highlight=cut+gameobject

Or shader based stuff, i think cell shading gets you the outer points somehow, but im a shader-noob