works with j8's jhs from update all and chrome on windows8.

A quick in jhs though is that, in jijx, ctrl-shift up and down to scroll 
command history causes some weird flashing highlighting that I don't remember 
occurring before.


----- Original Message -----
From: Eric Iverson <eric.b.iver...@gmail.com>
To: Programming forum <programm...@jsoftware.com>
Cc: 
Sent: Monday, February 10, 2014 5:50:56 PM
Subject: [Jprogramming] JHS webgl

I have followed with interest the JHS webgl  discussions.

I stole a bit of time this weekend and have cobbled together an initial demo.

Webgl is opengl functionality embedded in the browser javascript. It
works well in the latest versions of Firefox and Chrome. Not sure
about Safari.

Prgramming opengl in javascript is straightforward and works well.

The 1st step was to search for a nice example and then get that to
work locally in a temp fodler. That is, put javascript source files
(e.g. glmatrix.js) and the html file in a folder and make sure it
works as expected when everything comes from files directly under your
control.

The 2nd step is to incorporate this info in a new page (ijs script)
that fits in the JHS framework. Now that there is a working example,
it should be fairly straightforward to fit any webgl you want into a
JHS page.

There were two stumbling blocks that I ran into.

The first was that there are different versions of glmatrix.js
(javascript) with quite different apis. I decided to only look at
examples that use the latest version and to avoid examples that used
the earlier version. This was a minor nuisance as many of the simpler
and nicer examples used the older version.

The second was that webgl has some dependencies on where javascript
src files such as glmatrix.js and related javascript stuff is located.
The JHS framework previously added these src inlcudes as part of the
form (that is, in HBS sentences). This worked fine for
codemirror,jquery, and handsontable, but webgl is more complicated and
the html to include stuff has to come earlier in the page. JHS now
supports HEXTRA for stuff like this. This is in addtion to the
traditional CSS, JS, and HBS sections.

Get the latest version of JHS and try:
   jdemogl 1

***
Brain, thanks for getting this ball rolling and I hope jdemogl1 helps.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to