**DRAFT**

The virus model and the animation of the merging into a cell wall can be generated using animation nodes.


[![Virus Merging][1]][1]

----------
**Overview**

 - The virus is formed from 3 meshes for the exterior surface, the interior surface, and the contents. Two additional meshes are used for the lipids and proteins on the surface. Animation nodes are used to place the lipids and proteins on the surfaces. 
 - To animate the merge of the virus and a cell wall, the animation nodes are used to move the lipids and proteins from their initial position to their final position. This is done by moving the location of these items along an interpolated path between the initial and final mesh. 
 - This example was done using Blender 2.79 and Animation Nodes 2.0.


----------
** Creation of the Virus **

 1. Create a lipid model. Once this is created, choose a scale so it can be used for the virus and the cell wall.
 2. Create a model of the surface proteins and liang on the virus body. This should be in proportion to the size of the lipid model. 
 3. Add a small 'Ico Sphere' to represent the contents of the virus.
 4. Add a larger 'Ico Sphere' to model the interior surface of the virus before the merge.
 5. Add another, even larger 'Ico Sphere' to model the exterior surface of the virus. The exterior sphere should be placed so the distance between it and the interior sphere is about equal to twice the length of the tails on the lipids.
 6. Create an animation node tree as shown below. The key concept is that the mesh for the ico sphere has vertices with both location and orientation (normals). This can be used to position the lipids and proteins. By mixing the lipids and proteins randomly on the exterior of the virus, the desired 3D structure is obtained. 


----------
** Animation of the Merge **

  1. To move the lipids/proteins the animation is broken into 4 equivalent parts: the interior of the virus, the exterior of the virus, the top of the cell membrane, and the bottom of the cell membrane. For these 4 parts, the same kind of solution is applied. A source mesh is used to initially place the lipids/proteins. A destination mesh is used to define the location at the end of the animation.
  2. For the sake of brevity, only the exterior of the virus will be explained in detail. A similar approach is used for the interior, top surface, and bottom surface. The ico sphere for the exterior is created. The mesh is duplicated and edited into a flat surface. This surface is made so the lipids/proteins will follow a simple path from the eco-sphere mesh to the flat mesh. 
  3. An animation node network is created to position the lipids and proteins as shown below.
  4. Similar networks are created for the interior, top, and bottom. 
  5. The meshes for the interior and exterior of the virus are animated moving towards and through the cell membrane. This helps make the merge look smoother.
  6. The virus contents are animated moving with the interior and exterior meshes and finally into the cell.


----------
The blend file can be found here: [<img src="https://blend-exchange.giantcowfilms.com/embedImage.png?bid=4359" />](https://blend-exchange.giantcowfilms.com/b/4359/)

----------
The key trick to creating this animation by Jacob Verburgt at Milwaukee School of Engineering, Class of 2018. His original animation is at https://www.youtube.com/watch?v=9cV8KBup7Eo 

Thanks to Brenticus to pointing to his animation on Reddit.


  [1]: https://i.sstatic.net/2AIr2.gif