Mojo2: Rotate canvas (mid point).

Monkey Forums/Monkey Code/Mojo2: Rotate canvas (mid point).

Richard Betson(Posted 2015) [#1]
Mojo2: Rotate canvas / images (mid point display). May take a sec for background image to load.
http://www.phoenixusc.com/Personal_Post_Data/mojo2/alienrotate/MonkeyGame.html
Also here:
http://www.phoenixusc.com/board/misc.php?page=PUSC_Monkey
'
Edit: On IE all I get is a black screen (app display). Chrome and Firefox are OK. Bug? I do something wrong?
Edit- Works in IE now. :)


This is the 'bouncyaliens' included in mojo2 modified to rotate the images and canvas at the display mid point. I added a background image to help with the effect. Neat stuff mojo2.

Modified 'bouncyaliens' code.



ImmutableOctet(SKNG)(Posted 2015) [#2]
WebGL isn't supported on Internet Explorer versions earlier than 11 from what I recall. That's Microsoft for you. Your example, along with everything else runs fine here. I'm running the newest developer build of Opera, which is just a nice coat of paint on top of Chromium at this point.


Richard Betson(Posted 2015) [#3]
^Actually the rendererdemo and directlight demos both run on IE so I am not sure.


Danilo(Posted 2015) [#4]
Press F12 in IE11 to open developer tools (debugger).

I get an error at line 5531:
gl.uniform1i(t_u.m_location,t_texid);

t_u.m_location is -1