Skip to content

Strange behavior after update rgl package to 0.95.1247 #10

@chermit

Description

@chermit

What doesn't work:
No rendering of the plot but the message "You must enable Javascript to view this page properly." instead on Firefox. The Javascript is enabled and the rgl package works smoothly (writeWebGL(),browseURL()). The console gives the message "Error: Could not find method of starting WebGL scene." that seem to be generated from glbinding.js, more precisely from:

...
setTimeout(function() { 
  // check to see whether we're using the old or new RGL function type.
  oldFun = window[data.prefix + "webGLStart"];
  newObj = window[data.prefix + "WebGL"];
  if(typeof oldFun === 'function'){
    oldFun();     
  } else if(typeof newObj === 'object'){
    newObj.start();
    newObj.onZoom(function(zoom){
      Shiny.onInputChange('.clientdata_gl_output_' + el.id + '_zoom', zoom);
    });
    newObj.onFOV(function(fov){
      Shiny.onInputChange('.clientdata_gl_output_' + el.id + '_fov', fov);
    });
    newObj.onPan(function(pan){
      Shiny.onInputChange('.clientdata_gl_output_' + el.id + '_pan', pan.getAsArray());
    });

  } else{
    throw new Error("Could not find method of starting WebGL scene.");
  }

}, 0);
...

System info:
x86_64, linux-gnu
R version 3.2.0 (2015-04-16)
RStudio 0.98.1103
rgl package 0.95.1247
shinyRGL 1.1.0

How to reproduce:
Run any of the example in the shinyRGL package

Thank you,
Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions