WebGL is a Javascript API for rendering interactive 3D / 2D graphics on the HTML5 canvas element. It is based on OpenGL ES 2.0.
0
votes
1answer
33 views
Javascript game engine that can work 'seamlessly' with react-native
I have previous experience with Unity, but I don't like the fact that Unity compiles your game directly into APK (or IOS equivalent). It's because I want to modify the game to provide chat interface ...
0
votes
1answer
35 views
What's wrong with this camera implementation?
I'm using WebGL and glMatrix and I implemented a camera. When a move backward, no problem. But when I move to the side and particularly forward, the camera becomes all glitchy. I implemented almost ...
1
vote
0answers
31 views
Asymetric Perspectiv View
I am building a addon component that will show synthesized 3D view of the world (kind of FLIR camera simulation). The problem I am facing is that currently I am using Symmetric Perspective View with ...
0
votes
2answers
56 views
How to render many times the same mesh efficiently in WebGL without instancing?
I'm using WebGL and I want to render the same mesh many times at different locations. I know that there is the drawArrayInstanced and drawElementsInstanced in WebGL 2 but I think only Firefox supports ...
0
votes
0answers
13 views
Filtering the target for lights
I'm in process of writing my own 3D engine in WebGL using assets of one popular game. I do not use any existing graphing library(no Three.js or others), I operate with pure WebGL calls. I managed to ...
1
vote
0answers
26 views
WebGL frame rate slows down after triggering javascript event
I am using Unity WebGL to host my game on a flask server and trying to throw a warning to the user whenever he tries to navigate away from the tab or mistakenly click browser's back button. Each time ...
0
votes
0answers
31 views
real time lights and high quality shadows in webgl build
I have a game in which there are a lot of objects constantly moving around and a lot of real time lights with their setting set to highest, I'm building my game as webgl and this is costing me a lot ...
0
votes
0answers
23 views
webgl draw call batching and optimizations
I'm working mostly with three.js and webgl, i have some experience with unity.
I don't consider three.js a game engine, more of a "rendering library" - something that takes care of the GL ...
0
votes
1answer
38 views
Unity3D 5.5b : C# WebGL open email client Win32 exception error
I want to send an email in a WebGL build using C#. My code is as below
try
{
Uri myUri = new Uri("mailto:[email protected]? Subject=Hello%20again&body=TEST");
System.Diagnostics....
1
vote
0answers
93 views
Lighting doesn't work properly in WebGL build only at one place
So I have a 2d game where a player walks around the level (top view) with a flashlight in front of him. Everything works fine in the editor, however whenever I build it for WebGL and test it in my ...
0
votes
1answer
31 views
Reset Camera view - webgl
I have camera rotating by dragging mouse.
Im trying to add reset button that restart the scene to initial view.
The rotating camera works as expected but I can't figure out how to reset it.
The ...
0
votes
0answers
27 views
Stretchable Mesh Generation Techniques in 2D and 3D (Unity)
I wanna to generate such mesh (or smth like) that can be "Stretchable". Yellow objects in the picture are nodes and red ones are edges of my graph. I want to generate "edges mesh" can be stretchable ...
0
votes
1answer
46 views
Default color for 3D scene
I have webgl 3D scene with background image and few shapes with textures.
I want to add some lines and other shapes and apply on them default color which not affect the shapes with textures.
How can I ...
0
votes
0answers
124 views
Drawing a 2D circle in a 3D World
I am trying to draw a 2D circle in 3D world.
I have some spheres in my WebGL scene and am trying to add this code to draw the circle but it is not working. There is no error exception, however.
...
0
votes
1answer
95 views
orbit object around another object
I am building 3D solar system containing (sun > earth > moon).
I have difficult to add the part which the moon rotate around earth.
I separated between "moon" and other stars.
The problem is that the ...
1
vote
1answer
42 views
Adding multiple materials to a single mesh in three.js
I've been doing some reading and can't seem to figure out a good way to do this..
I have a simple globe with a material on it like so:
const earthGeomerty = new THREE.SphereGeometry( 4, 48, 48 );
...
1
vote
0answers
53 views
rotate 3D sphere around itself - webGL
I'm trying to build 3D solar system with webGL.
I have all the stars moving in a circle around the sun as sholud be, and I want them also to spin around their own Y axis.
How can I add it?
I tried :
...
1
vote
0answers
109 views
The importance of WebGL in the future of game development [closed]
I've recently stumbled upon some pretty impressive Babylon.js and PlayCanvas demos.
Babylon.js example
PlayCanvas example
As a reminder: these frameworks allow 3D rendering in any (up to date) web ...
0
votes
1answer
73 views
Object outlining, stencil is not working WebGL
I can't seem to figure out my problem with stencil buffer in object outlining algo.
function init() {
...
gl.enable(gl.STENCIL_TEST);
gl.stencilOp(gl.KEEP, gl.KEEP, gl.REPLACE);
...
}
...
0
votes
0answers
103 views
Load external OGG file into Unity WebGL build at runtime
I am trying to load some sounds in OGG format into my game at runtime in a WebGL build. I use a WWW class to fetch the file which has an ".ogg" extension and then I call www.audioClip to get the ...
1
vote
1answer
44 views
2D World Mouse Coordinates - Matrices
I'm trying to get the world coordinates out of a mouse click. Currently I'm doing the following:
var invertedMatrix = mat4.create();
var viewMatrix = activeCamera.getMatrix();
mat4.invert(...
1
vote
1answer
47 views
How to map control key to a specific angle or orientation?
At the moment, I basically have built out a large hash table of various angles and what direction they map to, if the user would press right, up, down, left. This is needed, in my case, as I have a ...
1
vote
2answers
48 views
OpenGL: Does it make sense to use an Index Buffer With GL_TRIANGLE_FAN?
When trying to draw circles in webGl (You can answer the question even in openGl terms, I'll understand both), I came across the TRIANGLE_FAN flag when calling either glDrawArrays (with only a vertex ...
1
vote
0answers
47 views
how to replace vertex buffer in webGL
I want to replace a vertex buffer with another completely different vertex buffer, different size and values, it will not get replaced every frame.
gl.deleteBuffer(vertexBuffer);
vertexBuffer = gl....
2
votes
1answer
225 views
how to use unity3d webgl content in a asp.net mvc view?
I asked this question in stackoverflow but no answers so I think it would fit here better.
I have a unity webgl project and an asp.net mvc project.
I need to show the webgl content in a view.
The ...
0
votes
1answer
110 views
WebGL Redirecting URL
If player's browser don't support WebGL, I want to redirect Web Player version. I think it's possible in UnityLoader.js file but how?
function CompatibilityCheck(){hasWebGL?mobile?confirm("Please ...
0
votes
1answer
55 views
Webgl: is possible to use one color buffer to unsharp masking the depth buffer?
I'm noob to webgl. After reading the tutorials at webglfundamentals.org and "Introduction to Computer Graphics", i'm able to succesfully draw some stuff and the depth buffer without thirty-party ...
0
votes
0answers
45 views
Emscripten / webgl lazy rendering?
I compiled existing opengl es 2.0 code to webgl using emscripten. In the desktop version there is lazy rendering mechanism that only renders when required which is basically just saying invalidate ...
1
vote
0answers
126 views
Webgl: pixel perfect tilemap rendering?
The problem described below is a follow-up of Seamless tilemap rendering (borderless adjacent images).
I'm not sure to fully understand the rendering issue I have, so I'll try to describe as much as ...
1
vote
0answers
77 views
Unity WebGL responsive
I am trying to embed Unity WebGL to a web page.
I wonder, is it possible to make this responsive, so it will always fit whatever the screen size? How to do that?
Thank you for answering.
1
vote
0answers
107 views
WebGL Primitive Batching unexpected performance
I'm kinda new to WebGL in general, I've started to make some batching experiences on primitives (just drying a bunch of rectangles by using a combination of two triangles repeatedly).
I've started by ...
0
votes
1answer
98 views
Webgl, weird rendering with sprite that has alpha
So I have a webgl application where I render all kinds of objects, but in this specific example, I have two shaders. One that renders sprites and one that renders colored polygons. In this example I ...
0
votes
0answers
173 views
Cannot load native dll in Unity webgl build
I'm trying to use NAudio to get a mp3 (using WWW) into an Audioclip. The thing is NAudio uses Msacm32.dll which I tried adding to the project, but the webgl build still cannot find it. The standalone ...
0
votes
2answers
107 views
Unity WebGL build throws errors
I am working on a multiplayer game for WebGL platform and I am using SocketIo & node.js server for handling the game.
I am facing issues, as shown in the attached image. I have no idea about what ...
0
votes
0answers
52 views
How to implement mesh subtraction with user interaction in real-time?
I am trying to perform a subtraction on 2 mesh files imported from objloader using THREE.js and ThreeCSG but it is not working as long as the objects are too big or not closed or it will be so slow.
...
1
vote
0answers
36 views
Using GLFX.js on a full HTML page
I have a friend who is developing a game for HTML, and wants me to implement GLFX into the site page.
The problem is GLFX was designed specifically for use with the HTML5 Canvas, which he isn't using, ...
0
votes
0answers
105 views
Access Unity Webgl output from browser and vice versa
I receive a package of Unity webgl and put that into a course in Wordpress. The index.html produced form Unity is accessed inside an iframe there. This must be able to count user click when accessing ...
0
votes
0answers
238 views
Unreal Engine - Why is the size of even the most minimal HTML5 project ~ 155 MB?
I created a new project in UE4 (ver 4.10.4) with "no starter content" and "scalable to 2D/3D" settings. Essentially, there are a total of 5 assets in the project 1) floor, 2) light source, 3) sky ...
1
vote
1answer
164 views
Unexpected quaternion rotation behavior
First off let me apologize for the vague title but I really couldn't think of a more descriptive one (maybe after reading this a more advanced user might be able to edit it).
Alright, so I have been ...
0
votes
1answer
343 views
unity webgl not working on server
I own the servers of hokuco.com, I am wondering why my test build(not a development build) is not working in webgl I tried a test run as a .exe and it works fine. here is the url to my webgl project, ...
1
vote
0answers
71 views
How can I center a WebGL window in Unity?
I have a WebGL build for my game, however, I'm getting frequent requests to center the image. Right now it is left justified. How can I center the WebGL game window?
0
votes
1answer
129 views
How to display a lot of small objects using WebGL?
Introduction
The game scene contains a lot of 10x10 pixel elements: for 1980x1200 px. screen the number of elements on the scene can vary from 0 to 23760 (elements cannot intersect).
The live ...
1
vote
0answers
231 views
Unity3D - Upload a image from PC memory to WebGL app
I need user to upload his(her) avatar picture from PC to game
How can I create a file dialog and upload a image to WebGL game?
-1
votes
1answer
278 views
WebGL - Open URL in new tab? [closed]
How to open URL in new tab for WebGL?
Tried Application.OpenURL("url"). But it's opens a tab in same window
Thanks
0
votes
0answers
102 views
Parse RestAPI in Unity WebGL build not working on Google Chrome
I am trying to integrate Parse in Unity Webgl build. As there is no specific SDK for WebGL provided by parse so for parse communication i am using RestAPI to Get the data from parse. As provided in ...
1
vote
0answers
81 views
Cell Based Simulation
I'm working on a cell based simulation in a pixel shader (webgl, shadertoy.com specifically), but am having some challenges trying to make the simulation consistent.
Each cell (pixel) has the ...
0
votes
2answers
3k views
Unity WebGL not loading on chrome
I've made a simple game but when I tried to load this on chrome its not loading.
I am building for WebGL (HTML 5). I am getting these errors when the page loads.
Unity version - 5.3.1f1 Chrome ...
0
votes
1answer
626 views
Unity 3D error when compiling to WebGL: Destination directory not found
When I try to compile my Unity project to WebGL in Development mode on Windows 8.1 (and with the latest version of Unity), I receive the following errors (the first one is truncated because it's ...
1
vote
1answer
120 views
WebGL color quantization
I'm making a WebGL game in a 90s DOS games style. I'm trying to use a shader which would quantize colors to get reduced colors look. I found this solution: Palette reduction to pre-defined palette, ...
3
votes
0answers
64 views
Virtual infinite plane in shadow map
I have a WebGL deferred rendering pipeline, where I'm rendering shadow map with VSM technique. The goal is that the scene, or model, is hovering in space, and in addition to casting shadow on itself, ...