Ideation, Creation & Everything In Between
We need to continue on with tutorial to add our fluid velocity with our particle velocity to make it looks more realistic when the particles are colliding with the landscape,
Were moving the points to the surface and were giving those points the original fluids velocity. If the points are not underneath the surface they are allowed to do whatever they need to.
In the image below you can see in the Geometry file parameter I have included the following expression op:/obj/particle_fluid/OUT_Surface. In the video below you can now see the effect the particles now have on the landscape now that there is collision detection set up.
The next stage was to create another volume sample from file node which I had done previously I then had to click on this new volumesamplefile2 node and navigate to the Geometry File option and promote that parameter by right clicking on the icon at the end of the option.
As I have now promoted the parameter of the new Geometry file in the new volume sample from file node it is now displayed as an option whenever I click on the popvop1 node. What I need to do now is edit the Geometry file from the default text shown below to op:/obj/particle_fluid/OUT_Vel.
The next stage in the process involves me copying and pasting the volume sample files so that there are now three in this part of the network. I then had to organise the nodes into a tidy column so that I could use the nodes more easily.
I then had to connect the filename2 node to the filename values of all of the volumesamplefile nodes visible. The next stage was to edit the primitive number in each volume sample file node starting in order the first one remained at 0, the next one at1 and the last one at 3 as shown in the slideshow below.
I created a Float To Vector node by using the tab menu and typing in float to vector I then connected up this new nodes to the volume value of each of the volumesamplefile nodes as shown in the images. This was done by clicking on the arrow boxes of either of the nodes and dragging the string to the relevant value on another node.
This stage in the process involved me connecting the velocity value of the geometryvopglobal1 node to the velocity value of the if1 node on the opposite side of the network. I was then required to connect the velocity value of the floattovec1 node to the velocity value of the if1 node by dragging the string across and clicking on the relevant part of the node. Now whenever I dive down into the if1 node I can connect the vec value of the subinput1 node to the _v value of the suboutput1. I am now required to pull velocity value of the if1 node over to the geometryvopoutput1 node as shown in the image below this is simply a drag and drop option.