1st Episode of Early WebGL experiments ▪ Server assist mouse-lock.  @InternetOneOS
1st Episode of Early WebGL experiments ▪ Server assist mouse-lock.  @InternetOneOS
Michael Leonard | 1st Episode of Early WebGL experiments ▪ Server assist mouse-lock. @InternetOneOS | Uploaded 12 years ago | Updated May 09 2024
This is an early experiment of my Kenx server solving the first person camera issue. The issue is that your mouse will normally hit the edge of your screen and fail to register any further directional movement in that direction. My server constantly listens to mouse movements, then sends the distances to the web page, then resets the mouse cursor to prevent it from reaching the edge of your screen. What do you guys think?

Here is my function to draw what you see. I wish I could completely show it in its actual form, but youtube will not allow tabs for some reason.

() ` [Draw scene]:
gl.viewport(0, 0, gl.viewportWidth, gl.viewportHeight);
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
mat4.perspective(45, gl.viewportWidth / gl.viewportHeight, 0.1, 10000.0, pMatrix);
mat4.identity(mvMatrix);
mat4.rotate(mvMatrix, degToRad(-cam.Pitch), [1, 0, 0]);
mat4.rotate(mvMatrix, degToRad(-cam.Yaw), [0, 1, 0]);
mat4.translate(mvMatrix, [-cam['at X'], -cam['at Y'], -cam['at Z']]);
glBegin(gl.TRIANGLE_STRIP);
250, -5, -250, 1,0,0,1
-250, -5, -250, 0,0,0,1
250, -5, 250, 0,0,0,1
-250, -5, 250, 0,0,1,1
glEnd();
glBegin(gl.TRIANGLE_STRIP);
250, 5, -250, 1,0,0,1
-250, 5, -250, 1,0,1,1
250, 5, 250, 0,0,1,1
-250, 5, 250, 0,0,1,1
glEnd();
glBegin(gl.TRIANGLE_STRIP);
20, -4.99, -250, 0.5,0.5,0.2,1
-20, -4.99, -250, 0.9,0.1,0.2,1
20, -4.99, 250, 0.5,0.5,0.7,1
-20, -4.99, 250, 0.5,0.5,0.7,1
glEnd();
Loop a 4 times:
Loop b 4 times:
glBegin(gl.TRIANGLE_STRIP);
5, -5, -5, 1,1,1,1
0, -5, -5, 0,0.3,0,1
4, 5, -4, 0,0,0,1
1, 5, -4, 0,0,0,1
glEnd();
glBegin(gl.TRIANGLE_STRIP);
5, -5, 0, 0,0,0,1
0, -5, 0, 0,1,0,1
4, 5, -1, 0,0,0,1
1, 5, -1, 0,0,0,1
glEnd();
mat4.rotate(mvMatrix, degToRad( 90), [0, 1, 0]);
glBegin(gl.TRIANGLE_STRIP);
5, -5, 5, 0,0,0,1
0, -5, 5, 0,0,0,1
4, 5, 4, 0,0.2,0.7,1
1, 5, 4, 0,0.2,0.7,1
glEnd();
glBegin(gl.TRIANGLE_STRIP);
5, -5, 0, 0,0.2,0.3,1
0, -5, 0, 0,1,0,1
4, 5, 1, 0,0,0,1
1, 5, 1, 0,0,0,1
glEnd();
Move to the left 15.
Move to the left 35.

create['GL Canvas'](function()
{
gl.clearColor( 0.0, 0.0, 1.0, 1.0);
});

Recorded March 26th 2012
1st Episode of Early WebGL experiments ▪ Server assist mouse-lock. @InternetOneOS6th Youtube Glitch ▪ List of playlists fails to load.avi @InternetOneOS5th Youtube Glitch ▪ HTML5 video frame fails to load. @InternetOneOSCrysis - From There to Here @InternetOneOS4th Youtube Glitch ▪ Channel description editing failure. @InternetOneOS3rd Youtube Glitch ▪ Subscribers inconsistency. @InternetOneOSHello World, Im proud of you. You got big, 7 777 777 777 people big. @InternetOneOSHow-to Play Videos Shared To The World Chat 2020os Program @InternetOneOSHow-to Video Surf With The 2020os @InternetOneOSHow-to Customize The Colour Scheme For Each Window In The 2020os @InternetOneOS💣Defuser Walkthrough Mission 9 Brown Belt by Super Matti @InternetOneOS💣Defuser Walkthrough Mission 8 Brown Belt by Super Matti @InternetOneOS💣Defuser Walkthrough Mission 6 Yellow Belt by Super Matti @InternetOneOSIntroducing the Super Awesome Blackjack 21 game @InternetOneOS💣Defuser Walkthrough Mission 4 Yellow Belt by Super Matti @InternetOneOS💣Defuser Walkthrough Mission 5 Yellow Belt by Super Matti @InternetOneOS💣Defuser Walkthrough Mission 7 Brown Belt by Super Matti @InternetOneOS💣Defuser Walkthrough Mission 3 White Belt by Super Matti @InternetOneOS💣Defuser Walkthrough Mission 2 White Belt by Super Matti @InternetOneOS💣Defuser Walkthrough Mission 1 White Belt by Super Matti @InternetOneOSIntroducing the 💣Defuser game for the 2020 Operating System @InternetOneOSA Kenxsys graphical benchmark battle against Windows, Facebook and Google @InternetOneOSEpic Kenxsys benchmark battle against Windows, Facebook and Google @InternetOneOSSpirit of the sprite @InternetOneOSA Kenxsys Minute ▪ Into the void @InternetOneOSA Kenxsys Minute ▪ Down The Rabbit Hole @InternetOneOSA Kenxsys Minute ▪ Custom WebGL Font @InternetOneOSThere be dragons! I crossed the border to make some coin, ended up doing a great thing. @InternetOneOSKen Script 2.5 May 17th 2010 p2 @InternetOneOS7th Youtube Glitch ▪ Who eats more, Jaws or Youtube? @InternetOneOS3rd Episode of English Sourcery ▪ Power of the loop. @InternetOneOS4th Episode of English Sourcery ▪ Browser memory. @InternetOneOS2nd Episdoe of Programmers log ▪ Website programming from a website. @InternetOneOSHello World in multiple langagues @InternetOneOSServer side assist for mouse-lock before HTML5 included it natively @InternetOneOS2nd Episode of English Sourcery ▪ Stretching Monkeys. @InternetOneOS1st Episode of English Sourcery ▪ The value of the variable. @InternetOneOS3D CSS ▪ Youtube in orbit around Youtube @InternetOneOSKen Script - Window Programming, Step 2 - Adding a border - RAW / Unedited video. @InternetOneOSKen Script - Window Programming, Step 1 - RAW / Unedited video. @InternetOneOSPart 1 of the 1st Episode of Learing how to program ◄ML►.Script ▪ 2011 ▪ 45 minutes @InternetOneOSPart 2 of the 2nd Episode of Learing how to program ◄ML►.Script ▪ 2011 ▪ 45 minutes @InternetOneOSPart 3 of the 1st Episode of Learing how to program ◄ML►.Script ▪ 2011 ▪ 45 minutes @InternetOneOSLet it be cool @InternetOneOSSol searching @InternetOneOSWhats in a cube? @InternetOneOS05. Early WebGL experiments - May 9th 2012 @InternetOneOS04. Early WebGL experiments - April 6th 2012 @InternetOneOS03. Early WebGL experiments - March 26th 2012 @InternetOneOS02. Early WebGL experiments - March 26th 2012 @InternetOneOS

1st Episode of Early WebGL experiments ▪ Server assist mouse-lock. @InternetOneOS