So I’m not exactly sure where to post this since I’m not sure how it is best done (although it will likely involve a shader of some sort in any case).
Anyways say I have a group of objects (in this specific case they are static particles which i have references too). I want to outline the group respecting the users current perspective. Much as if they were a mesh with an outline shader applied to them.
The only 2 ways i have come up with so far (in theory… i havent taken on the task of actually writing any code for it) are:
a) Generate a semi random mesh (ugh id rather not
) that is constrained to a specific region and place the particles within the volume of the mesh. Apply an outline shader and voila…
b) Another’ method would be to somehow compute the position of the ‘outer’ particles (at that camera position) every frame and then use the line renderer to draw the outline (using iTween to get a curved path)
Both ways seem sloppy… however i just dont know how to do it differently Does anybody have any idea? Also if either of those 2 ways is the best route to take then does anybody have any references or tips?
Im hoping there is just some simple way im overlooking heh.
Im using the free version btw (for now)
edit: A 2D outline btw. So outlining a group of objects in 3d space with a 2d outline (as if you would draw an outline of them on your screen with a pen. Also not a valid solution btw ;))