JS: move getClonesOf, getInstancesOf to Entity

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: change realTime factor handling to avoid reference to DisplayEntity.simulation

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Fix for forced texture conversion

Specifically keep track of textures that were requested uncompressed, but
were forced compressed due to size.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Explicitly track old graphical tags to help caching

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Added some off-by-default logging for collada parsing

Also removed a vestigial XML parser.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Fix for bug when using the XY-plane view button with new controls

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Turn on experimental controls by default

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Modified lighting calculations for more accurate view direction

Now the view direction varies with position in the screen (before it was
constantly the direction of the center of the camera).

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: One more guard to protect against flipping view bug

This can happen sometimes with degenerate user inputs, so let's be a bit
more careful.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Prevent OverlayText from re-enabling depth testing

This messes up any OverlayTexture objects rendered after which assume the
depth test is disabled.

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>