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
0answers
31 views
Unity WebGL error
Created VR simple game. Uploading for WebGL. Facing the problem with WebGl build in Unity.
Getting this kind of error each time and I don't know what it mean at all.
When I open HTML file dropping ...
-1
votes
0answers
48 views
How do I create a multilayer scenario in WebGL
I want to create a map with layers, to use different textures and sprites. I really have no idea of how to do it.
I want to create a tilemap in WebGL, some like this tilemap http://media.tojicode.com/...
0
votes
1answer
18 views
WebGLRenderingContext.texImage2D does not implement interface ArrayBufferViewOrNull
I'm working on a WebGL project and all my textures render fine.
When i wanted to implement a cubemap i started getting this type error.
Argument 9 of WebGLRenderingContext.texImage2D does not ...
0
votes
0answers
33 views
Unity build error: “Could not find file…build.asm.js ”
I made a WebGL game and the first few times it built well, then I continued working on it a bit and when I build it it gives me an error (and does not generate the build files), error: ...
1
vote
1answer
38 views
Offsetting ground texture doesn't work in WebGL
so I've created a 2D sidescroller game, the technique I used is to keep the player on the same place, and move the obstacles towards him. I also offset the ground and backdrop constantly to create the ...
0
votes
0answers
69 views
Best way to render a 2d map?
I can't post more than 2 links (which I use for the images), that's why I have spaces in the links, remove the space between http:// and the link.
Please note this is a different problem than: http://...
0
votes
0answers
27 views
WebGL build LoadScene() doesn't work
So I have made a game, where a user should click a UI button to load a new scene.
At first, it worked in the editor as it always have, in the desktop build and WebGL build.
However because the ...
0
votes
0answers
27 views
How do I rotate images/sprites I am using with webgl? Is this supported?
I would like to import a few sprites the the screen, in the browser using html/webgl. I already know how to do this. Then, once they are on the screen I would like to manipulate them with the keyboard....
1
vote
1answer
31 views
How to keep triangles from connecting across voxel mesh
I am working on a voxel engine and have just started learning webgl. I have generated a list of Vertices and Indices by using Array.concat() on a template array and adding a value based on my position ...
0
votes
1answer
146 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
39 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
34 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
94 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
29 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
66 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
85 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
79 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
98 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
49 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
48 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
55 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
171 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
109 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
122 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
79 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
196 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
98 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);
...
}
...
1
vote
1answer
49 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
51 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
59 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
50 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
309 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
155 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
62 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 ...
2
votes
0answers
150 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
94 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
117 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
119 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
216 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
145 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 ...
1
vote
0answers
49 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, ...
1
vote
1answer
174 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
420 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
84 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
154 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
289 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
331 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
1
vote
0answers
83 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
4k 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 ...