P-152: Virtual World Concept Update 138: Planet-sized Terrain: Part 17: Collision
I have fixed the collision issue that I was having with the terrain. This seems to have been a pre-existing bug that I never noticed before.
It took some time to track down, since some of the collision faces were working.
P152_DEBUG
20/07/2016 , 02:58:41 AM
Torque 3D MIT – P152
I used gnuplot to visualise the collision list and the render list, and they both seemed to be correct:

20/07/2016 , 07:43:19 AM
Gnuplot (window id : 0)

20/07/2016 , 08:32:10 PM
Gnuplot (window id : 0)
But when I plotted both the collision nodes and the renderable nodes on the same graph, I noticed that as the below images shows, the collisionĀ list’s nodesĀ (in green) only contained some of the nodes that they should have.

20/07/2016 , 08:09:29 PM
Gnuplot (window id : 0)
wgnuplot
21/07/2016 , 02:47:51 AM
Gnuplot (window id : 0)
I was then able to get the collision working. For now, I am adding all nodes to the collision list, however when I implement the changes to the Level of Detail system, I will need to cull out most of the rendered nodes.
P152_DEBUG
20/07/2016 , 08:30:17 PM
Torque 3D MIT – P152

21/07/2016 , 03:18:48 AM
Torque 3D MIT – P152

21/07/2016 , 03:19:57 AM
Torque 3D MIT – P152



