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
5 views

webGL problem: part of the screen dissapears when moving the camera

I'm wondering if someone could help me with this rendering bug that I can't find the cause. I have a webGL webpage that renders some very simple stuff (a 3D maze, but it doesn't really matter), and ...
0
votes
1answer
17 views

How Do I change the color of webgl points?

This is the code I used to try to change the color of WebGL points: I want to change the color of WebGL points when a user clicks the body element. And FYI the shaders are compiling correctly. The ...
0
votes
1answer
17 views

Using gl-transitions in a simple html page

How can I use https://gl-transitions.com/ shaders in a static HTML page? I need a simple example for animating two images.
0
votes
0answers
17 views

How can I place a GLTF model behind a stencil mask in three.js?

I'm using a stencil mask in Three.js to create a portal effect. It works correctly on meshes when I can control the material. However, when I load a gltf model with the model's material I cannot get ...
0
votes
0answers
28 views

OpenLayers WebGLPointsLayer conditional symbol source

I work with the new feature from openLayers: https://openlayers.org/en/latest/examples/webgl-points-layer.html and want to achieve to have some case transform operator like in the color array, but for ...
0
votes
1answer
35 views

How to use data kept on GPU after model inference with tensorflow.js v3.13.0?

I just got aware of a new feature in tfjs v3.13.0 (see https://github.com/tensorflow/tfjs/pull/5953). I am trying to use the new dataToGPU() method of Tensors to keep my model output on the GPU, since ...
-1
votes
0answers
29 views

my game crashes when I try to play it on itch.io

I am using unity 2020.3.25f1, my target platform is WebGL, and I published a demo of my game on itch.io as a ZIP file that will be read by the browser, when I am trying to use it appears this error ...
10
votes
4answers
16k views

How do I include gl-matrix?

What I did: Downloaded master branch from here: https://github.com/toji/gl-matrix Put src folder into my project's folder. Included gl-matrix-manifest.js from there. Tried this: var mvMatrix = mat4....
0
votes
0answers
32 views

How To Set SVG Image In WebGL To Be Used In Javascript?

I'm using the source code in https://codepen.io/at80/pen/tqdmv I want to use the SVG image in place of the objects being animated. Can you please help me to figure out how can I set the SVG image in ...
1
vote
0answers
25 views

threejs change object and animating

My character is wearing glasses and I want to replace them with glasses of a different model. The replacement part was successful, but the animation of the glasses part works strangely. Animation used ...
0
votes
1answer
55 views

"Scan Through" a large texture glsl

I've encoded some data into a 44487x1.0 luminance texture: Now I would like to "scrub" this data across my shader, so that a slice of the texture equal in width to the pixel width of my ...
1
vote
0answers
16 views

Why is rendering non - deterministic when using expo-gl and react-navigation/native-stack libraries together in React Native?

I'm developing an implementation of Conway's Game of Life using React Native through Expo CLI, which is my first attempt at an RN app. The app's main screen includes a GLView component, onto which a ...
4
votes
2answers
3k views

what does instancing do in webgl

I want to know is any way to understand how many times vertex shader will be called in a draw call in webgl? because I want to know what does instancing realy do, is it call every shared vertices for ...
0
votes
2answers
1k views

Model showing up black when using Collada Models with ShaderMaterials in Three.js

I tried to load a collada file (exported from Blender) into a three.js scene and then replace the material with a ShaderMaterial. Since there is only one object in this collada file it is located at ...
0
votes
0answers
20 views

Flatten Sampler2D to 1D WebGL

I'm encoding a large array into a texture that I can reference in my glsl shader. The array is far to long to encode in a 1d array, so I encoded it as a 2d array. Now I would like to reference each ...

15 30 50 per page
1
2 3 4 5
412