Skip to main content

Questions tagged [webgl]

WebGL is a Javascript API for rendering interactive 3D / 2D graphics on the HTML5 canvas element. It is based on OpenGL ES 2.0.

1 vote
0 answers
42 views

Camera is skipping frames after turning a little bit

I'm observing that when I move the camera a little bit it works normally, but if I move more then I'll skip chunks of the screen. I enabled "press CTRL twice to show cursor" with Powertoys ...
BrunoLM's user avatar
  • 111
0 votes
0 answers
28 views

Is it impossible to do an XMLHttpRequest from Facebook Instant Games?

I'm trying to store/fetch data from my own backend in my Unity WebGL build. I want to host this build on Facebook Instant games. Content-Security-Policy: The page’s settings blocked the loading of a ...
Zee's user avatar
  • 922
0 votes
0 answers
151 views

Browser memory increasing the longer Unity WebGL build runs

I have an app in Unity WebGL that should run for a long time (a few days) without stopping. One issue I notice is that, the longer the app runs the browser memory usage gets bigger. Is this related to ...
Ivan's user avatar
  • 379
1 vote
1 answer
120 views

Generation of a Voronoi noise normal map using the analytic derivative method

I'm working on a personal moon generation project using Voronoi noise, slightly modified for crater generation. Here's the code: ...
Antoine Portal's user avatar
1 vote
0 answers
213 views

Minimal Content-Security-Policy (CSP) for WebGL Builds

I have a Webgl build created in Unity 2020.3.22f1. The Content Policy looks like this (set to report-only for debugging): Code (htaccess): ...
TheCell's user avatar
  • 103
0 votes
1 answer
70 views

How to minimize cost of drawing 1-2 objects while keeping them bright enough to see?

I have a really simple scene that includes only one or two 3D objects, and the rest of it is UI. My target is WebGL so I am taking every chance to optimize thing as much as possible. The game objects ...
Ivan's user avatar
  • 379
0 votes
1 answer
292 views

The WebGL version of my game does not load the next scene when using an async action

I've just created a WebGL build for my puzzle game in Unity. While the Windows version worked just fine, I encountered a bug on the web: it cannot load the next level when you collide with the goal. ...
Nghia Tran's user avatar
0 votes
0 answers
104 views

`textSubImage2D` inconsistent performance

I have a problem when creating a texture with WebGL. The thing that I do not understand is that the first call with texSubImage2D with a canvas leads to the ...
hoangphatmonter's user avatar
4 votes
1 answer
805 views

What causes some web game engines work in "slow mo" mode instead of reducing FPS but continuing to show the true time/tick state of things?

I used game engines that are capable of cross-platform export: Cocos Creator, Godot, Unity, others. Some game engines have this thing, called "physics update" or "fixed update". ...
idchlife's user avatar
  • 229
0 votes
0 answers
145 views

How to draw a small circle 20px in webgl using JavaScript?

I could use triangles (make them using trigonometry). But the circle I want is small, only 20px diameter. I could also load a model but I need a quick solution. Is there an easy method to draw a small ...
Praveen Kumar's user avatar
0 votes
1 answer
251 views

Unity Mirror Networking Audio Behaves Differently on Host and WebGL Client

I am creating a system in Unity using Mirror Networking which will only require one host/server and one client. It is a WebGL build so the client will connect on a browser. I want to send commands ...
Michael's user avatar
  • 51
0 votes
3 answers
727 views

OVR Lip Sync in Unity WebGL project

I am using the Oculus VR (OVR) Lip Sync Plugin for an avatar in a Unity project which I want to deploy to a browser using WebGL. The issue is that WebGL doesn't support Unity's ...
Michael's user avatar
  • 51
1 vote
1 answer
115 views

Character walks too fast when browser's hardware acceleration is turned off

I have posted a project on itch.io (here). My character walks with the speed I intended when Chrome's hardware acceleration is turned on but walks much faster when it is turned off. First, my friend ...
vmrfreitas's user avatar
0 votes
0 answers
124 views

Export Blender models and (procedural) material to Browser?

Given that Verge3d cannot support Volume input, or volumetric shader property in the material output node. Using WebGl 2, and possibly 3.js, is it possible for me to export my blender models and their ...
Francis Mike Nathan's user avatar
0 votes
1 answer
396 views

WebGL FPS is sometimes higher than max. FPS setting - why?

In lots of WebGL online games (all games I tested were made with Unity), my FPS is sometimes higher than the max, FPS setting of my PC (75), but why?
EarthAndMoon's user avatar

15 30 50 per page
1
2 3 4 5
20