Well, sure. Webgl should be able to tackle it... if only it has the mesh file rather than the gcode file.
- Use the github 3D rendering technology by somehow getting it the mesh file, outsourcing the work to them in the cloud in realtime
- Similarly, use wikifactory's 3D rendering technology in realtime
- Use webgl to render the mesh file on the browser in realtime
- Use the (Cura) slicer to include a nice preview image, uploading this to the
.octoprint/uploadsarea before the print has even started
Personally, I've just not seen many good-looking results from attempting to render a 3D graphic from the gcode tool paths.