Questions tagged [webgl]

WebGL extends the capability of the HTML canvas element to allow it to render accelerated graphics in any compatible web browser. **DO NOT TAG QUESTIONS ABOUT 3D LIBRARIES (like THREE.js) WITH THIS TAG** unless the question is specifically about a WebGL API feature. **DO NOT TAG QUESTION ABOUT UNITY WEBGL WITH THIS TAG!!**

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Porting a C++ OpenGL4.5 Application to Webassembly WebGL using Emscripten [closed]

I am trying to port a 3d Application that uses OpenGL4.5, written in C++, into WebAssembly using Emscripten. I am trying to search for answers if this is possible, and then what is the best way to do ...
2
votes
0answers
25 views

I need help programming the Heat Equation in REGL (WebGL Library)

I am new to how WEBGL works so I do not understand why the Heat Equation is not working like it is supposed to. In my fragment shader, I used a sampler 2D, prevState, and a texture coordinate, uv. ...
-1
votes
0answers
15 views

Mirror experience with approx. 500 participants in webgl [closed]

I am building a virtual conference with Unity and my approach is to handle around 500 WebGL clients. Mirror is already implemented and it works pretty well with several clients. Now it would be ...
0
votes
0answers
22 views

WebGL instanced drawing without using buffer for vertcies

I want to make a WebGL 2D game with many sprites But I only have two triangles to make a square. And I do not need additional vertices. The following tutorials will help you understand my purpose ...
1
vote
1answer
14 views

Three JS Shadow from tree not cast

Learning Three Js by my own and with some (incredible) stuff found on Internet, I use Script to generate a LowPoly Planet, but trees does not cast Shadow on the ground. I look for help but didn't find ...
0
votes
0answers
16 views

I am Working on Three.js POC work, where i want change camera position and lookAt onclick of sprite element

Below is the code I have prepared, my click event is working properly with a smooth tween effect, but the camera lookAt always at (0,0,0) not looking at a defined position. also, the camera goes to ...
0
votes
0answers
15 views

cameraPosition not updating when panning Mapbox map - or how to use OrbitControls in Mapbox?

I am using ThreeJs to add a THREE.BoxGeometry with a THREE.ShaderMaterial that uses cameraPosition attribute inside its fragmentShader on a MapboxGL map using custom layers. The rotation and panning ...
1
vote
1answer
13 views

Stable values in vertex shader, unstable in fragment when rendered with webgl

I'm working with an unfamiliar scene and trying to render an array of points. In the vertex shader i have this if/else block that resizes every 6th point and the last 3. This works as expected, points ...
0
votes
1answer
26 views

WebGL Shader, modify position according to variable

I'm following the advice in this SO post. I want this blob to turn into other 3D models and back (like this). This set me on the path of Morphing, but I want to use shaders. The SO post (first link) ...
-1
votes
0answers
17 views

Three.js Binding Two Model Bones Each Other

I’m working on CS:GO skins and I need some helps on animations. I have 2 objects which are weapon and hand models. Weapon has all the animations I need and I can play different ones with mixer. ...
0
votes
0answers
22 views

empty screen shot of a div including canvas using html2canvas

I am using html to canvas library to make a screen shot of a div which includes a canvas as the first children node and it returns a white space. The div is holding a panorama image using Panolens ...
-1
votes
0answers
29 views

Is WebGL fast than Canvas API for drawing a bunch of 2D objects❓❓ [closed]

sorry if this is a dumb question. I was trying to build a whiteboard as a side project using HTML canvas, and was wondering what's the best technology for doing that. My goal is to build a Miro like ...
0
votes
0answers
25 views

How to conver an ES2.0 shader into WebGL using ThreeJS

The Goal I'm attempting to convert a shader written in an Android friendly GLES20 syntax to something that will work with the likes of threeJS. Most of the uniforms for the fragment shader are ...
0
votes
1answer
22 views

What are gl.MAX_TEXTURE_SIZE and gl.MAX_RENDERBUFFER_SIZE exacly?

I would like to display a graphic (map) in a canvas. Now this error message appears for large displays: WebGL warning: width/height: Requested size 8316x3141 was too large, but resize to 4158x1570 ...
0
votes
1answer
21 views

Unable to shorten flow field vectors

I have this program where I'm trying to make a flow field. I wanted to use the vectors I use to make the noise to be available for the particles moving through the flow field, so they can use it to ...

15 30 50 per page
1
2 3 4 5
414